.lead-page {
  padding: 42px 0 72px;
  overflow: clip;
}

.lead-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 36px;
  align-items: stretch;
  min-height: 430px;
  overflow: hidden;
  padding: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(100deg, rgba(7, 9, 11, 0.96) 0%, rgba(7, 9, 11, 0.86) 58%, rgba(18, 14, 8, 0.88) 100%),
    url("assets/portfolio-estate.png") center 44% / cover;
  box-shadow: var(--shadow);
}

.lead-hero::before,
.lead-workspace::before {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 50%;
}

.lead-hero::before {
  width: 560px;
  height: 560px;
  top: -320px;
  right: 18%;
  box-shadow:
    0 0 0 46px rgba(212, 175, 55, 0.025),
    0 0 0 92px rgba(212, 175, 55, 0.018);
}

.lead-hero-copy,
.lead-hero-seal {
  position: relative;
  z-index: 1;
}

.lead-hero-copy {
  align-self: center;
  max-width: 760px;
}

.lead-hero-copy h1 {
  max-width: 740px;
  margin: 14px 0 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.035em;
}

.lead-hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.lead-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.lead-trust-row span {
  padding: 10px 13px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 999px;
  color: var(--sandstone);
  background: rgba(8, 10, 12, 0.72);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead-hero-seal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  padding: 34px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 50% 50% 24px 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.16), transparent 42%),
    rgba(7, 9, 11, 0.88);
  text-align: center;
  backdrop-filter: blur(12px);
}

.lead-hero-seal img {
  width: 72px;
  margin: 0 auto 18px;
}

.lead-hero-seal small,
.lead-hero-seal span {
  color: var(--sandstone);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
}

.lead-hero-seal strong {
  margin: 12px 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 0.95;
}

.lead-workspace {
  position: relative;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.lead-workspace::before {
  width: 420px;
  height: 420px;
  right: -250px;
  bottom: 8%;
  box-shadow:
    0 0 0 42px rgba(212, 175, 55, 0.018),
    0 0 0 84px rgba(212, 175, 55, 0.012);
}

.lead-rail,
.lead-intake {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(14, 16, 19, 0.99), rgba(8, 10, 12, 0.99));
  box-shadow: var(--shadow);
}

.lead-rail {
  align-self: start;
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: 30px;
  border-radius: var(--radius-lg);
}

.lead-rail-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.lead-rail-head > strong {
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
}

.lead-step-list {
  display: grid;
  gap: 2px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.lead-step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 11px 8px;
  color: #746e63;
  transition: color 180ms ease, transform 180ms ease;
}

.lead-step-list li::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 56px;
  width: 1px;
  height: 40px;
  background: rgba(212, 175, 55, 0.14);
}

.lead-step-list li:last-child::before {
  display: none;
}

.lead-step-list li > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 50%;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
}

.lead-step-list li div {
  display: grid;
  gap: 4px;
}

.lead-step-list li strong {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead-step-list li small {
  font-size: 0.69rem;
  line-height: 1.45;
}

.lead-step-list li.is-active {
  color: var(--limestone);
  transform: translateX(4px);
}

.lead-step-list li.is-active > span {
  border-color: rgba(212, 175, 55, 0.66);
  color: #080b0d;
  background: linear-gradient(135deg, #f1ce75, #ad7f29);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.16);
}

.lead-step-list li.is-complete {
  color: var(--sandstone);
}

.lead-step-list li.is-complete > span {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.07);
}

.lead-rail-note {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}

.lead-rail-note > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
}

.lead-rail-note p {
  margin: 0;
  color: #968d7d;
  font-size: 0.68rem;
  line-height: 1.65;
}

.lead-intake {
  min-height: 730px;
  overflow: hidden;
  padding: 52px;
  border-radius: var(--radius-lg);
}

.lead-progress {
  --lead-progress: 25%;
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: rgba(255, 255, 255, 0.035);
}

.lead-progress::after {
  content: "";
  display: block;
  width: var(--lead-progress);
  height: 100%;
  background: linear-gradient(90deg, #9c7227, #f1ce75);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.42);
  transition: width 260ms ease;
}

.lead-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  animation: lead-step-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lead-step[hidden],
.lead-confirmation[hidden],
.lead-consultation-fields[hidden] {
  display: none;
}

@keyframes lead-step-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lead-step > legend {
  display: grid;
  width: 100%;
  gap: 8px;
  margin-bottom: 34px;
}

.lead-step > legend strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 0.92;
}

.lead-step > legend small {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.7;
}

.lead-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lead-field {
  display: grid;
  align-content: start;
  gap: 9px;
  margin: 0;
}

.lead-field-wide {
  grid-column: 1 / -1;
}

.lead-field > span,
.lead-contact-method > legend {
  color: var(--sandstone);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead-field > small {
  color: #8e8678;
  font-size: 0.67rem;
  line-height: 1.55;
}

.lead-intake select,
.lead-intake input[type="text"],
.lead-intake input[type="email"],
.lead-intake input[type="tel"],
.lead-intake input[type="date"],
.lead-intake input[type="datetime-local"],
.lead-intake textarea {
  width: 100%;
  min-height: 54px;
  padding: 15px 16px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  color-scheme: dark;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.lead-intake textarea {
  min-height: 150px;
  resize: vertical;
}

.lead-intake select:focus,
.lead-intake input:focus,
.lead-intake textarea:focus {
  border-color: rgba(212, 175, 55, 0.68);
  background: rgba(212, 175, 55, 0.045);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.07);
}

.lead-upload-zone {
  position: relative;
  margin-top: 22px;
  border: 1px dashed rgba(212, 175, 55, 0.42);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.06), transparent 65%),
    rgba(255, 255, 255, 0.018);
}

.lead-upload-zone label {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 22px;
  text-align: center;
  cursor: pointer;
}

.lead-upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.lead-upload-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
}

.lead-upload-zone strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
}

.lead-upload-zone small {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.55;
}

.lead-file-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.lead-file-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 12px;
  color: var(--sandstone);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.7rem;
}

.lead-file-list li small {
  color: #80796e;
}

.lead-file-list li.is-empty {
  border-style: dashed;
  color: #80796e;
}

.lead-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-choice {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.022);
  cursor: pointer;
}

.lead-choice-featured {
  margin: 4px 0 22px;
  padding: 22px;
  border-color: rgba(212, 175, 55, 0.32);
  background:
    linear-gradient(120deg, rgba(212, 175, 55, 0.075), transparent),
    rgba(255, 255, 255, 0.022);
}

.lead-choice input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.lead-choice > span {
  display: grid;
  gap: 6px;
}

.lead-choice strong {
  color: var(--sandstone);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead-choice small {
  color: #91897b;
  font-size: 0.68rem;
  line-height: 1.6;
}

.lead-consultation-fields {
  padding: 22px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
}

.lead-contact-method {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  border: 0;
}

.lead-contact-method > legend {
  width: 100%;
  margin-bottom: 8px;
}

.lead-contact-method label {
  position: relative;
  cursor: pointer;
}

.lead-contact-method input {
  position: absolute;
  opacity: 0;
}

.lead-contact-method span {
  display: block;
  padding: 11px 16px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead-contact-method input:checked + span {
  border-color: rgba(212, 175, 55, 0.64);
  color: #0a0c0e;
  background: linear-gradient(135deg, #f0ce79, #b88a30);
}

.lead-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.lead-step-actions-end {
  justify-content: flex-end;
}

.lead-step-actions .button {
  min-width: 190px;
}

.lead-intake .form-status[data-state="working"] {
  color: #e2c477;
}

.lead-intake .form-status[data-state="success"] {
  color: #9fca9e;
}

.lead-intake .form-status[data-state="error"] {
  color: #ef9c91;
}

.lead-intake .form-status[data-state="warning"],
.lead-form .form-status[data-state="warning"] {
  color: #e2c477;
}

.lead-confirmation {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: 64px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 14%, rgba(212, 175, 55, 0.17), transparent 28%),
    linear-gradient(135deg, #101317, #080a0c);
  box-shadow: var(--shadow);
  text-align: center;
}

.lead-confirmation-mark {
  display: grid;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.055);
}

.lead-confirmation-mark img {
  width: 66px;
}

.lead-confirmation h2 {
  max-width: 820px;
  margin: 14px auto 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 0.94;
}

.lead-confirmation h2 strong {
  display: block;
  color: var(--gold);
}

.lead-confirmation p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
}

.lead-confirmation .hero-actions {
  justify-content: center;
  margin-top: 26px;
}

.lead-boundary {
  margin-top: 20px;
  padding: 26px 30px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.018);
}

.lead-boundary p {
  margin: 10px 0 0;
  color: #91897b;
  font-size: 0.72rem;
  line-height: 1.75;
}

.lead-form .lead-quick-consent {
  margin-top: 4px;
}

.lead-form .form-status[data-state="working"] {
  color: #e2c477;
}

.lead-form .form-status[data-state="success"] {
  color: #9fca9e;
}

.lead-form .form-status[data-state="error"] {
  color: #ef9c91;
}

@media (max-width: 1020px) {
  .lead-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-hero-seal {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 8px 20px;
    min-height: auto;
    align-items: center;
    border-radius: 24px;
    text-align: left;
  }

  .lead-hero-seal img {
    grid-row: 1 / 4;
    width: 64px;
    margin: 0;
  }

  .lead-hero-seal strong {
    margin: 0;
  }

  .lead-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-rail {
    position: static;
  }

  .lead-step-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lead-step-list li {
    grid-template-columns: 42px 1fr;
  }

  .lead-step-list li::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .lead-page {
    padding-top: 18px;
  }

  .lead-workspace {
    min-width: 0;
    overflow: hidden;
  }

  .lead-hero,
  .lead-intake,
  .lead-confirmation {
    padding: 28px 22px;
  }

  .lead-hero-copy h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .lead-hero-seal {
    grid-template-columns: 48px 1fr;
    padding: 22px;
  }

  .lead-hero-seal img {
    width: 48px;
  }

  .lead-hero-seal strong {
    font-size: 1.45rem;
  }

  .lead-rail {
    overflow: hidden;
    padding: 22px;
  }

  .lead-step-list {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }

  .lead-step-list li {
    flex: 0 0 180px;
    scroll-snap-align: start;
  }

  .lead-rail-note {
    display: none;
  }

  .lead-intake {
    min-height: 680px;
  }

  .lead-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-field-wide {
    grid-column: auto;
  }

  .lead-step-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-step-actions .button {
    width: 100%;
    min-width: 0;
  }

  .lead-step-actions .button-ghost {
    order: 2;
  }

  .lead-confirmation h2 {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-step,
  .lead-progress::after,
  .lead-step-list li {
    animation: none;
    transition: none;
  }
}
