/* Lead qualification modal — scoped to the home page so existing sections stay untouched. */
.lead-form-dialog {
  --lead-wine: #3A1619;
  --lead-wine-soft: #6B2D32;
  --lead-cream: #F3E8DB;
  --lead-champagne: #E5C9AB;
  --lead-surface: #FCF8F3;
  --lead-text: #2B2122;
  --lead-muted: #5C4A4C;
  width: min(660px, calc(100vw - 28px));
  max-width: none;
  max-height: min(90dvh, 860px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 201, 171, .72);
  border-radius: 20px;
  background: var(--lead-surface);
  color: var(--lead-text);
  box-shadow: 0 28px 100px rgba(22, 7, 9, .32);
  font-family: var(--font-body, 'Rubik', Arial, sans-serif);
  line-height: 1.5;
}
.lead-form-dialog::backdrop {
  background: rgba(24, 8, 10, .72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.lead-form-dialog[open] { animation: lead-dialog-enter .22s ease-out both; }
@keyframes lead-dialog-enter {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lead-form-shell {
  display: flex;
  flex-direction: column;
  max-height: min(90dvh, 860px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(107,45,50,.35) transparent;
  scrollbar-width: thin;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.15rem, 5vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
}
.lead-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.lead-form-brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  color: var(--lead-wine);
  font: 700 .68rem/1.2 var(--font-secondary, 'Exo', Arial, sans-serif);
  letter-spacing: .15em;
}
.lead-form-brand-mark {
    display: inline-grid;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(107,45,50,.25);
    border-radius: 50%;
}

.lead-form-brand-mark img {
    display: block;
    width: 25px !important;
    height: 25px !important;
    max-width: 25px !important;
    max-height: 25px !important;
    object-fit: contain;
}
.lead-form-close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(58,22,25,.14);
  border-radius: 50%;
  background: transparent;
  color: var(--lead-wine);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
}
.lead-form-close:hover { background: #F0E2D3; border-color: rgba(58,22,25,.3); transform: rotate(4deg); }
.lead-form-close svg, .lead-form-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lead-form-progress-wrap { margin-bottom: 1.55rem; }
.lead-form-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .65rem;
  color: var(--lead-muted);
  font: 600 .63rem/1.3 var(--font-secondary, 'Exo', Arial, sans-serif);
  letter-spacing: .1em;
}
.lead-form-progress-meta span:last-child { color: #8A7470; text-align: right; }
.lead-form-progress { height: 4px; overflow: hidden; border-radius: 99px; background: #E9DCD0; }
.lead-form-progress span { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--lead-wine-soft); transition: width .25s ease; }
.lead-form-intro { margin-bottom: 1.65rem; }
.lead-form-intro .eyebrow { margin-bottom: .55rem; color: var(--lead-wine-soft); font-size: .65rem; letter-spacing: .13em; }
.lead-form-intro h2 {
  max-width: 16ch;
  margin: 0 0 .65rem;
  color: var(--lead-wine);
  font: 650 clamp(1.65rem, 4vw, 2.25rem)/1.12 var(--font-heading, 'Rubik', Arial, sans-serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.lead-form-intro > p:last-child { max-width: 54ch; color: var(--lead-muted); font-size: .92rem; line-height: 1.65; }
.lead-form-step { animation: lead-step-enter .2s ease both; }
.lead-form-step[hidden] { display: none !important; }
@keyframes lead-step-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.lead-question {
  display: block;
  width: 100%;
  margin: 0 0 .45rem;
  padding: 0;
  color: var(--lead-wine);
  font: 650 clamp(1.08rem, 2.5vw, 1.35rem)/1.3 var(--font-heading, 'Rubik', Arial, sans-serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.lead-question-help { margin: 0 0 1rem; color: var(--lead-muted); font-size: .85rem; line-height: 1.55; }
.lead-text-input {
  width: 100%;
  min-height: 54px;
  padding: .9rem 1rem;
  border: 1px solid rgba(107,45,50,.27);
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--lead-text);
  font: 400 1rem/1.4 var(--font-body, 'Rubik', Arial, sans-serif);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.lead-text-input::placeholder { color: #988783; }
.lead-text-input:focus { border-color: var(--lead-wine-soft); box-shadow: 0 0 0 3px rgba(107,45,50,.1); }
.lead-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.lead-choice-list { display: grid; grid-template-columns: 1fr; gap: .55rem; }
.lead-choice {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: .75rem;
  min-width: 0;
  padding: .82rem .9rem;
  border: 1px solid rgba(107,45,50,.16);
  border-radius: 9px;
  background: rgba(255,255,255,.7);
  color: var(--lead-text);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.lead-choice:hover { border-color: rgba(107,45,50,.48); background: #fff; }
.lead-choice:has(input:checked) { border-color: var(--lead-wine-soft); background: #F6ECE2; box-shadow: inset 0 0 0 1px rgba(107,45,50,.13); }
.lead-choice:has(input:focus-visible) { outline: 3px solid rgba(107,45,50,.24); outline-offset: 2px; }
.lead-choice input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.lead-choice-indicator {
  display: block;
  position: relative;
  width: 17px;
  height: 17px;
  margin-top: .1rem;
  border: 1px solid #B9A5A0;
  border-radius: 50%;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.lead-choice input:checked + .lead-choice-indicator { border: 5px solid var(--lead-wine-soft); box-shadow: 0 0 0 2px rgba(107,45,50,.08); }
.lead-choice-copy { display: block; min-width: 0; }
.lead-choice-copy strong { display: block; color: var(--lead-wine); font-size: .88rem; font-weight: 600; line-height: 1.4; }
.lead-choice-copy small { display: block; margin-top: .2rem; color: var(--lead-muted); font-size: .76rem; line-height: 1.45; }
.lead-choice-list-compact { gap: .6rem; }
.lead-choice-list-compact .lead-choice { align-items: center; min-height: 49px; padding-block: .75rem; }
.lead-choice-list-compact .lead-choice-indicator { margin-top: 0; }
.lead-choice-list-compact .lead-choice-copy strong { font-size: .9rem; }
.lead-form-error { min-height: 1.35rem; margin-top: .55rem; color: #9C2E32; font-size: .8rem; line-height: 1.4; }
.lead-form-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .4rem; }
.lead-form-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 49px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .8rem 1.1rem;
  font: 650 .9rem/1.25 var(--font-body, 'Rubik', Arial, sans-serif);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}
.lead-form-next, .lead-form-submit { min-width: 170px; margin-left: auto; background: var(--lead-wine); color: #fff; }
.lead-form-next:hover, .lead-form-submit:hover { background: #572329; transform: translateY(-1px); }
.lead-form-back { background: transparent; border-color: rgba(107,45,50,.22) !important; color: var(--lead-wine); }
.lead-form-back:hover { background: #F0E2D3; border-color: rgba(107,45,50,.42) !important; }
.lead-form-actions button[hidden] { display: none !important; }
.lead-form-privacy { margin: 1.25rem 0 0; color: #7E6A67; font-size: .7rem; line-height: 1.55; text-align: center; }
.lead-form-privacy a { color: var(--lead-wine-soft); text-decoration: underline; text-underline-offset: 2px; }
.lead-form-privacy a:hover { color: var(--lead-wine); }
.lead-form-dialog button:focus-visible, .lead-form-dialog a:focus-visible { outline: 3px solid rgba(107,45,50,.28); outline-offset: 3px; }

@media (max-width: 640px) {
  .lead-form-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .lead-form-shell {
    height: 100%;
    max-height: 100dvh;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  }
  .lead-form-header { margin-bottom: 1.1rem; }
  .lead-form-progress-wrap { margin-bottom: 1.25rem; }
  .lead-form-intro { margin-bottom: 1.25rem; }
  .lead-form-intro h2 { max-width: 19ch; font-size: clamp(1.6rem, 7.5vw, 2rem); }
  .lead-form-intro > p:last-child { font-size: .86rem; }
  .lead-question { font-size: 1.12rem; }
  .lead-question-help { margin-bottom: .85rem; font-size: .8rem; }
  .lead-choice-list { gap: .45rem; }
  .lead-choice { gap: .6rem; padding: .72rem .72rem; }
  .lead-choice-copy strong { font-size: .83rem; }
  .lead-choice-copy small { font-size: .72rem; }
  .lead-form-actions { margin-top: .25rem; }
  .lead-form-actions button { min-height: 47px; padding: .72rem .9rem; font-size: .85rem; }
  .lead-form-next, .lead-form-submit { min-width: 0; }
  .lead-form-privacy { margin-top: .95rem; font-size: .67rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-form-dialog[open], .lead-form-step { animation: none; }
  .lead-form-progress span, .lead-form-close, .lead-choice, .lead-form-actions button { transition: none; }
}


/* Luxury dark palette — form UI only; form flow and dimensions remain unchanged. */
.lead-form-dialog {
  --lead-wine: #0B0807;
  --lead-wine-soft: #BC9573;
  --lead-cream: #F1E7DD;
  --lead-champagne: #D7B18C;
  --lead-surface: #130E0B;
  --lead-text: #F1E7DD;
  --lead-muted: #C8B8A8;
  background: var(--lead-surface);
  color: var(--lead-text);
  border-color: rgba(215, 177, 140, .42);
}
.lead-form-dialog::backdrop { background: rgba(5, 4, 3, .82); }
.lead-form-brand,
.lead-form-brand-mark,
.lead-form-intro h2,
.lead-question,
.lead-choice-copy strong { color: var(--lead-cream); }
.lead-form-brand-mark,
.lead-form-close,
.lead-choice { border-color: rgba(215, 177, 140, .28); }
.lead-form-close { color: var(--lead-champagne); }
.lead-form-close:hover,
.lead-form-back:hover { background: #2D2119; border-color: rgba(215, 177, 140, .55); }
.lead-form-progress-meta,
.lead-form-intro > p:last-child,
.lead-question-help,
.lead-choice-copy small,
.lead-form-privacy { color: var(--lead-muted); }
.lead-form-progress { background: #463428; }
.lead-form-progress span { background: #BC9573; }
.lead-text-input {
  background: #0B0807;
  color: #F1E7DD;
  border-color: rgba(215, 177, 140, .34);
}
.lead-text-input::placeholder { color: #A99787; }
.lead-text-input:focus { border-color: #D7B18C; box-shadow: 0 0 0 3px rgba(215, 177, 140, .14); }
.lead-choice { background: #211913; color: #F1E7DD; }
.lead-choice:hover { background: #2D2119; border-color: rgba(215, 177, 140, .58); }
.lead-choice:has(input:checked) { background: #2D2119; border-color: #BC9573; box-shadow: inset 0 0 0 1px rgba(215, 177, 140, .24); }
.lead-choice:has(input:focus-visible) { outline-color: rgba(215, 177, 140, .45); }
.lead-choice-indicator { border-color: rgba(215, 177, 140, .56); }
.lead-choice input:checked + .lead-choice-indicator { border-color: #BC9573; box-shadow: 0 0 0 2px rgba(215, 177, 140, .12); }
.lead-form-next, .lead-form-submit { background: #BC9573; color: #0B0807; }
.lead-form-next:hover, .lead-form-submit:hover { background: #D7B18C; }
.lead-form-back { border-color: rgba(215, 177, 140, .32) !important; color: #F1E7DD; }
.lead-form-privacy a { color: #D7B18C; }
.lead-form-dialog button:focus-visible, .lead-form-dialog a:focus-visible { outline-color: rgba(215, 177, 140, .52); }

/* Luxury Dark Editorial palette — form-only colour adaptation. */
.lead-form-dialog {
  --lead-wine: #D7B18C;
  --lead-wine-soft: #BC9573;
  --lead-cream: #F1E7DD;
  --lead-champagne: #D7B18C;
  --lead-surface: #130E0B;
  --lead-text: #F1E7DD;
  --lead-muted: #C8B8A8;
  border-color: rgba(215,177,140,.34);
  background: #130E0B;
  color: #F1E7DD;
  box-shadow: 0 28px 100px rgba(0,0,0,.55);
}
.lead-form-dialog::backdrop { background: rgba(0,0,0,.78); }
.lead-form-shell { scrollbar-color: rgba(188,149,115,.5) transparent; }
.lead-form-brand { color: #D7B18C; }
.lead-form-brand-mark { border-color: rgba(215,177,140,.38); }
.lead-form-close { color:#D7B18C; border-color:rgba(215,177,140,.3); }
.lead-form-close:hover { background:#211913; border-color:#BC9573; }
.lead-form-progress-meta { color:#C8B8A8; }
.lead-form-progress-meta span:last-child { color:#D7B18C; }
.lead-form-progress { background:#2D2119; }
.lead-form-progress span { background:#BC9573; }
.lead-form-intro .eyebrow { color:#D7B18C; }
.lead-form-intro h2, .lead-question { color:#F1E7DD; }
.lead-form-intro > p:last-child, .lead-question-help { color:#C8B8A8; }
.lead-text-input { background:#211913; color:#F1E7DD; border-color:rgba(188,149,115,.42); }
.lead-text-input::placeholder { color:#A99787; }
.lead-text-input:focus { border-color:#D7B18C; box-shadow:0 0 0 3px rgba(215,177,140,.16); }
.lead-choice { background:#211913; color:#F1E7DD; border-color:rgba(188,149,115,.28); }
.lead-choice:hover { background:#2D2119; border-color:#BC9573; }
.lead-choice:has(input:checked) { background:#2D2119; border-color:#D7B18C; box-shadow:inset 0 0 0 1px rgba(215,177,140,.22); }
.lead-choice:has(input:focus-visible) { outline-color:rgba(215,177,140,.35); }
.lead-choice-indicator { background:#130E0B; border-color:#8F7967; }
.lead-choice input:checked + .lead-choice-indicator { border-color:#BC9573; box-shadow:0 0 0 2px rgba(215,177,140,.12); }
.lead-choice-copy strong { color:#F1E7DD; }
.lead-choice-copy span, .lead-form-error { color:#C8B8A8; }
.lead-form-actions button, .lead-form-actions .btn { background:#BC9573; border-color:#BC9573; color:#0B0807; }
.lead-form-actions button:hover, .lead-form-actions .btn:hover { background:#D7B18C; border-color:#D7B18C; }
.lead-form-dialog a { color:#D7B18C; }

/* Final palette harmony — form controls follow the same coffee/bronze hierarchy. */
.lead-form-dialog {
  --lead-wine: #BC9573;
  --lead-wine-soft: #BC9573;
  --lead-cream: #F1E7DD;
  --lead-champagne: #D7B18C;
  --lead-surface: #15100D;
  --lead-text: #F1E7DD;
  --lead-muted: #C8B8A8;
  background: #15100D;
  color: #F1E7DD;
  border-color: rgba(215, 177, 140, .38);
}
.lead-form-dialog::backdrop { background: rgba(0, 0, 0, .82); }
.lead-form-brand,
.lead-form-intro h2,
.lead-question,
.lead-choice-copy strong { color: #F1E7DD; }
.lead-form-brand-mark,
.lead-form-close,
.lead-choice { border-color: rgba(215, 177, 140, .30); }
.lead-form-close { color: #D7B18C; }
.lead-form-close:hover { color: #080706; background: #D7B18C; border-color: #D7B18C; }
.lead-form-progress-meta { color: #C8B8A8; }
.lead-form-progress-meta span:last-child,
.lead-form-intro .eyebrow { color: #D7B18C; }
.lead-form-progress { background: #32251B; }
.lead-form-progress span { background: linear-gradient(90deg, #BC9573, #D7B18C); }
.lead-form-intro > p:last-child,
.lead-question-help,
.lead-choice-copy small,
.lead-form-privacy { color: #C8B8A8; }
.lead-text-input { background: #241A14; color: #F1E7DD; border-color: rgba(188, 149, 115, .42); }
.lead-text-input::placeholder { color: #A99787; }
.lead-text-input:focus { border-color: #D7B18C; box-shadow: 0 0 0 3px rgba(215, 177, 140, .16); }
.lead-choice { background: #241A14; color: #F1E7DD; border-color: rgba(188, 149, 115, .28); }
.lead-choice:hover { background: #32251B; border-color: #BC9573; }
.lead-choice:has(input:checked) { background: #32251B; border-color: #D7B18C; box-shadow: inset 0 0 0 1px rgba(215, 177, 140, .22); }
.lead-choice:has(input:focus-visible) { outline-color: rgba(215, 177, 140, .45); }
.lead-choice-indicator { background: #15100D; border-color: rgba(215, 177, 140, .58); }
.lead-choice input:checked + .lead-choice-indicator { border-color: #D7B18C; box-shadow: 0 0 0 2px rgba(215, 177, 140, .14); }
.lead-form-error { color: #D7B18C; }
.lead-form-actions button,
.lead-form-actions .btn { background: #BC9573; border-color: #BC9573; color: #080706; }
.lead-form-actions button:hover,
.lead-form-actions .btn:hover { background: #D7B18C; border-color: #D7B18C; color: #080706; }
.lead-form-back { background: transparent; border-color: rgba(215, 177, 140, .36) !important; color: #F1E7DD; }
.lead-form-back:hover { background: #241A14; border-color: #BC9573 !important; color: #F1E7DD; }
.lead-form-privacy a,
.lead-form-dialog a { color: #D7B18C; }
.lead-form-dialog button:focus-visible,
.lead-form-dialog a:focus-visible { outline-color: rgba(215, 177, 140, .58); }


/* Hide the introductory block after the first, name-identification step. */
.lead-form-intro[hidden] { display: none !important; }
