/* ============================================================
   VESKON BUILDERS — Calculator Stylesheet  v2.0
   ============================================================ */

/* --- Calculator Hero --- */
.calc-hero {
  background: var(--navy);
  padding: 360px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.calc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217,193,31,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,193,31,0.05) 1px, transparent 1px);
  background-size: 70px 70px;
}
.calc-hero__content { position: relative; z-index: 1; }
.calc-hero h1 { color: var(--white); margin-bottom: 1rem; }
.calc-hero p  { color: rgba(255,255,255,0.68); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* --- Calculator Wrapper --- */
.calculator-section {
  padding: var(--pad-sec) 0;
  background: var(--off-white);
  min-height: 60vh;
}
.calculator-wrap {
  max-width: 860px;
  margin: 0 auto;
}

/* ============================================================
   STEP INDICATORS
   ============================================================ */
.calc-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  gap: 0;
}
.calc-step-item {
  display: flex;
  align-items: center;
  gap: 0;
}
.calc-step-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}
.calc-step-item.active .calc-step-bubble {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(217,193,31,0.42);
  transform: scale(1.1);
}
.calc-step-item.done .calc-step-bubble {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
/* Done bubble shows checkmark */
.calc-step-item.done .calc-step-bubble::before {
  content: '✓';
  font-size: 0.9rem;
}
.calc-step-item.done .calc-step-bubble { font-size: 0; }
.calc-step-item.done .calc-step-bubble::before { font-size: 0.8rem; }

.calc-step-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-light);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.calc-step-item.active .calc-step-label { color: var(--gold); }
.calc-step-item.done .calc-step-label   { color: var(--navy); }

.calc-step-connector {
  height: 2px;
  width: 60px;
  background: var(--light-gray);
  transition: background 0.4s ease, width 0.3s ease;
}
.calc-step-connector.done { background: var(--navy); }

/* ============================================================
   CALCULATOR CARD
   ============================================================ */
.calc-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-top: 3rem;
}
.calc-card__title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  transition: opacity 0.2s ease;
}
.calc-card__subtitle {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  line-height: 1.55;
}
.calc-step-content { display: none; }
.calc-step-content.active { display: block; }

/* ============================================================
   CALC BODY ANIMATIONS
   ============================================================ */
.calc-body {
  transition: opacity 0.18s ease;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0);    }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0);     }
}
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0);     }
  to   { opacity: 0; transform: translateX(-28px); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0);    }
  to   { opacity: 0; transform: translateX(28px); }
}

.calc-body.anim-enter-right { animation: slideInRight 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
.calc-body.anim-enter-left  { animation: slideInLeft  0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
.calc-body.anim-exit-left   { animation: slideOutLeft  0.16s ease both; }
.calc-body.anim-exit-right  { animation: slideOutRight 0.16s ease both; }

/* ============================================================
   SERVICE TYPE GRID (Step 0)
   ============================================================ */
.service-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.service-type-card {
  border: 2px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 1.4rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
}
.service-type-card:hover {
  border-color: var(--gold);
  background: rgba(217,193,31,0.04);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}
.service-type-card.selected {
  border-color: var(--gold);
  background: rgba(217,193,31,0.06);
  box-shadow: 0 0 0 3px rgba(217,193,31,0.18);
  transform: translateY(-1px);
}
.service-type-card__icon {
  width: 52px;
  height: 52px;
  background: var(--off-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.service-type-card.selected .service-type-card__icon,
.service-type-card:hover    .service-type-card__icon {
  background: rgba(217,193,31,0.14);
}
.service-type-card__icon svg { color: var(--text-light); transition: color 0.25s ease; }
.service-type-card.selected .service-type-card__icon svg,
.service-type-card:hover    .service-type-card__icon svg { color: var(--gold); }
.service-type-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.service-type-card__sub { font-size: 0.82rem; color: var(--text-mid); }

/* ============================================================
   OPTION CARDS — standard (pill style)
   ============================================================ */
.option-group    { margin-bottom: 2rem; }
.option-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.option-card {
  border: 2px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--white);
  user-select: none;
}
.option-card:hover {
  border-color: var(--gold);
  color: var(--text-dark);
  transform: translateY(-1px);
}
.option-card.selected {
  border-color: var(--gold);
  background: rgba(217,193,31,0.08);
  color: var(--navy);
  font-weight: 600;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(217,193,31,0.18);
}

/* ============================================================
   OPTION CARDS — rich (with description + badge)
   ============================================================ */
.option-cards--rich {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.option-card--rich {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  position: relative;
  text-align: left;
}
.option-card-label {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  line-height: 1.25;
}
.option-card-desc {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.45;
  font-weight: 400;
}
.option-card--rich.selected .option-card-label { color: var(--navy); }
.option-card--rich.selected .option-card-desc  { color: var(--navy); opacity: 0.7; }

/* Badge (Most Popular, Budget, etc.) */
.option-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.option-card--rich:not(.selected) .option-badge {
  background: var(--navy);
  opacity: 0.75;
}
.option-card-illus {
  width: calc(100% + 2.5rem);
  margin: -1rem -1.25rem 0.85rem -1.25rem;
  height: 100px;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  overflow: hidden;
  flex-shrink: 0;
}
.option-card-illus svg {
  width: 100%;
  height: 100%;
  display: block;
}
.option-card--rich:not(.selected) .option-card-illus {
  opacity: 0.88;
  transition: opacity 0.25s ease;
}
.option-card--rich:hover .option-card-illus,
.option-card--rich.selected .option-card-illus {
  opacity: 1;
}

/* ============================================================
   SLIDER INPUT
   ============================================================ */
.slider-group { margin-bottom: 1.5rem; }
.slider-group-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.slider-group-label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.slider-value {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
}
.slider-value span { font-size: 0.8rem; font-weight: 500; color: var(--text-light); margin-left: 2px; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--light-gray);
  outline: none;
  border: none;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(217,193,31,0.45);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 14px rgba(217,193,31,0.55);
}
input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.1);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}

/* Ref markers under slider */
.slider-refs {
  position: relative;
  height: 28px;
  margin-top: 4px;
}
.slider-ref {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slider-ref::before {
  content: '';
  display: block;
  width: 1px;
  height: 6px;
  background: var(--light-gray);
  margin-bottom: 3px;
}
.slider-ref span {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.2rem;
  font-family: var(--font-head);
}

/* Hint box */
.calc-hint {
  margin-top: 1rem;
  background: rgba(217,193,31,0.07);
  border: 1px solid rgba(217,193,31,0.25);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ============================================================
   NUMBER STEPPER
   ============================================================ */
.number-input-group { margin-bottom: 2rem; }
.number-input-group label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: block;
}
.number-stepper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: fit-content;
}
.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--light-gray);
  background: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-mid);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1;
}
.stepper-btn:hover {
  border-color: var(--gold);
  color: var(--white);
  background: var(--gold);
  transform: scale(1.1);
}
.stepper-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  min-width: 60px;
  text-align: center;
}

/* ============================================================
   TOGGLE ITEMS
   ============================================================ */
.toggle-group { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.22s ease;
  background: var(--white);
}
.toggle-item:hover { border-color: var(--gold); background: rgba(217,193,31,0.02); }
.toggle-item.active {
  border-color: var(--gold);
  background: rgba(217,193,31,0.06);
}
.toggle-item-left { display: flex; align-items: center; gap: 0.85rem; }
.toggle-item-icon { color: var(--gold); flex-shrink: 0; }
.toggle-item-title {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.toggle-item-sub { font-size: 0.8rem; color: var(--text-mid); line-height: 1.4; }

/* Toggle switch */
.toggle-switch {
  width: 46px;
  height: 26px;
  background: var(--light-gray);
  border-radius: 13px;
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  top: 3px;
  left: 3px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-item.active .toggle-switch         { background: var(--gold); }
.toggle-item.active .toggle-switch::after  { transform: translateX(20px); }

/* ============================================================
   NAV BUTTONS
   ============================================================ */
.calc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--light-gray);
}
.calc-back {
  background: transparent;
  border: 1.5px solid var(--light-gray);
  color: var(--text-mid);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-back:hover { border-color: var(--navy); color: var(--navy); }

.calc-next {
  background: var(--gold);
  border: 2px solid var(--gold);
  color: var(--white);
  padding: 0.78rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-next:hover {
  background: #c9b41a;
  border-color: #c9b41a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,193,31,0.38);
}
.calc-next:active { transform: translateY(0); }
.calc-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.calc-progress {
  height: 4px;
  background: var(--light-gray);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.calc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESULTS PANEL
   ============================================================ */
.results-panel { display: none; }
.results-panel.show { display: block; }

.results-header { text-align: center; margin-bottom: 2.5rem; }
.results-header h2 { margin-bottom: 0.5rem; }
.results-header p { max-width: 540px; margin: 0 auto; color: var(--text-mid); }

/* Tier cards animate in */
@keyframes tierIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
.tier-animate-in { animation: tierIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }

.results-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.result-tier {
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.result-tier:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.result-tier.featured {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(217,193,31,0.22);
}
.result-tier.featured:hover {
  box-shadow: 0 12px 40px rgba(217,193,31,0.3);
}
.result-tier.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
}
.result-tier__name {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.result-tier.featured .result-tier__name { color: var(--gold); }
.result-tier__price {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.result-tier__range {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.result-tier__features { text-align: left; }
.result-tier__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.result-tier__feature svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   RESULTS SUMMARY
   ============================================================ */
.results-summary {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.results-summary h4 {
  font-size: 0.78rem;
  font-family: var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.results-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 2rem;
}
.results-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.87rem;
  color: var(--text-mid);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--light-gray);
}
.results-summary-item:last-child { border-bottom: none; }
.results-summary-item strong {
  color: var(--text-dark);
  font-family: var(--font-head);
  font-weight: 600;
  text-align: right;
  max-width: 55%;
}

/* ============================================================
   DISCLAIMER + CTA
   ============================================================ */
.results-disclaimer {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.results-disclaimer strong { color: var(--text-dark); }

.results-cta {
  background: linear-gradient(140deg, var(--navy) 0%, #0d2068 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.results-cta h3 { color: var(--white); margin-bottom: 0.75rem; }
.results-cta p  { color: rgba(255,255,255,0.68); margin-bottom: 1.75rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.results-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.results-restart { text-align: center; margin-top: 1.5rem; }
.results-restart button {
  background: none;
  border: none;
  color: var(--text-light);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: underline;
}
.results-restart button:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .service-type-grid      { grid-template-columns: 1fr; }
  .option-cards--rich     { grid-template-columns: 1fr; }
  .results-tiers          { grid-template-columns: 1fr; }
  .calc-card              { padding: 1.75rem; }
  .calc-step-connector    { width: 36px; }
  .results-summary-grid   { grid-template-columns: 1fr; }
  .results-cta            { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .calc-steps             { gap: 0; }
  .calc-step-connector    { width: 20px; }
  .calc-step-label        { display: none; }
  .option-cards           { flex-direction: column; }
}
