/* ============================================================
   FUNNEL.CSS â€” Overlay Pricing Funnel
   Retaining Wall Guys
============================================================ */

/* â”€â”€ OVERLAY â”€â”€ */
.funnel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(14,20,28,0.97);
  overflow-y: auto;
}
.funnel-overlay.open { display: flex; flex-direction: column; }

.funnel-overlay__close {
  position: fixed;
  top: 18px; right: 24px;
  background: none;
  border: none;
  color: #4b5563;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
  transition: color var(--transition-fast);
}
.funnel-overlay__close:hover { color: var(--offwhite); }

/* â”€â”€ SHELL â”€â”€ */
.funnel-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 28px 80px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* â”€â”€ PROGRESS â”€â”€ */
.funnel-progress { margin-bottom: 40px; }

.funnel-progress__meta {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}
.funnel-progress__pct { color: var(--gold); }

.funnel-progress__track {
  height: 2px;
  background: rgba(255,255,255,0.08);
}
.funnel-progress__fill {
  height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
}

/* â”€â”€ STEP â”€â”€ */
.funnel-step {
  display: none;
  flex-direction: column;
  animation: stepFadeUp 0.25s ease;
}
.funnel-step.active { display: flex; }

@keyframes stepFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.funnel-step__q {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--offwhite);
  text-transform: uppercase;
  line-height: 1.02;
  margin-bottom: 10px;
}

.funnel-step__sub {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 560px;
}

/* â”€â”€ OPTION CARDS â”€â”€ */
.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.opt-card {
  border: 2px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  padding: 18px 16px;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.opt-card:hover {
  border-color: rgba(201,168,76,0.45);
  background: rgba(201,168,76,0.05);
}
.opt-card.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
}

.opt-card__icon  { font-size: 1.5rem; }
.opt-card__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--offwhite);
}
.opt-card__desc {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

/* â”€â”€ CALLOUT BOX â”€â”€ */
.funnel-callout {
  border-left: 3px solid var(--gold);
  background: rgba(201,168,76,0.07);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.6;
}
.funnel-callout strong { color: var(--gold); }

/* â”€â”€ FACING SUBSECTION â”€â”€ */
.facing-subsection { margin-top: 32px; }
.facing-subsection__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 14px;
}

/* â”€â”€ DIMENSION INPUTS â”€â”€ */
.dim-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.dim-field__label {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  display: block;
  margin-bottom: 8px;
}

.dim-field__input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dim-field__input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.1);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 13px 15px;
  outline: none;
  transition: border-color var(--transition-fast);
  -moz-appearance: textfield;
}
.dim-field__input::-webkit-outer-spin-button,
.dim-field__input::-webkit-inner-spin-button { -webkit-appearance: none; }
.dim-field__input:focus { border-color: var(--gold); }
.dim-field__input::placeholder { color: #374151; }
.dim-field__input:disabled { opacity: 0.3; cursor: not-allowed; }

.dim-field__unit {
  font-size: 0.8rem;
  color: #4b5563;
  white-space: nowrap;
  min-width: 60px;
}

.dim-field__idk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  cursor: pointer;
}
.dim-field__idk input[type="checkbox"] {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.dim-field__idk span {
  font-size: 0.78rem;
  color: #6b7280;
}

/* â”€â”€ CONTACT FIELDS â”€â”€ */
.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-field__label {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  display: block;
  margin-bottom: 7px;
}

.contact-field__input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.1);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 15px;
  outline: none;
  transition: border-color var(--transition-fast);
}
.contact-field__input:focus  { border-color: var(--gold); }
.contact-field__input::placeholder { color: #374151; }

.contact-save-note {
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 20px;
}
.contact-save-note strong { color: #6b7280; }

/* â”€â”€ ZIP FIELD â”€â”€ */
.zip-field-wrap {
  max-width: 240px;
  margin-bottom: 28px;
}

/* â”€â”€ FIELD ERRORS â”€â”€ */
.field-error {
  font-size: 0.73rem;
  color: var(--red);
  margin-top: 5px;
  display: none;
}
.field-error.show { display: block; }

/* â”€â”€ FUNNEL NAV BUTTONS â”€â”€ */
.funnel-nav {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.funnel-nav__back {
  background: none;
  border: 2px solid rgba(255,255,255,0.1);
  color: #6b7280;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 24px;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.funnel-nav__back:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--offwhite);
}

.funnel-nav__next {
  background: var(--gold);
  color: var(--slate);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 32px;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  flex: 1;
}
.funnel-nav__next:hover:not(:disabled) { background: var(--gold-hover); }
.funnel-nav__next:disabled {
  background: #1f2937;
  color: #374151;
  cursor: not-allowed;
}

/* â”€â”€ SENDING STATE â”€â”€ */
.funnel-sending {
  font-size: 0.82rem;
  color: var(--gold);
  margin-top: 12px;
  display: none;
}
.funnel-sending.show { display: block; }

/* â”€â”€ ESTIMATE SCREEN â”€â”€ */
.estimate-screen {
  display: none;
  flex-direction: column;
  animation: stepFadeUp 0.3s ease;
}
.estimate-screen.active { display: flex; }

.estimate-screen__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.estimate-screen__range {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--offwhite);
  line-height: 1;
  margin-bottom: 8px;
}

.estimate-screen__note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 32px;
  line-height: 1.55;
}

/* Summary card */
.estimate-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 22px;
  margin-bottom: 28px;
}

.estimate-summary__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.summary-row:last-child { border-bottom: none; }
.summary-row__key { font-size: 0.82rem; color: #6b7280; }
.summary-row__val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--offwhite);
}

/* CTA buttons */
.estimate-screen__book {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--slate);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 20px;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-bottom: 12px;
  text-align: center;
  text-decoration: none;
}
.estimate-screen__book:hover { background: var(--gold-hover); }

.estimate-screen__restart {
  display: block;
  width: 100%;
  background: none;
  border: 2px solid rgba(255,255,255,0.1);
  color: #6b7280;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  margin-bottom: 36px;
}
.estimate-screen__restart:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--offwhite);
}

/* â”€â”€ DISCLAIMERS â”€â”€ */
.disclaimers {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 22px;
}
.disclaimers p {
  font-size: 0.67rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 6px;
}
.disclaimers p strong { color: #4b5563; }

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 560px) {
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .funnel-shell { padding: 24px 16px 60px; }
}
