:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f6f7f9;
  --text: #090915;
  --muted: #5b6370;
  --border: rgba(9, 9, 21, 0.08);
  --brand-green: #179D49;
  --brand-green-deep: #117a38;
  --brand-ink: #090915;
  --brand-ink-2: #0f2419;
  --brand-blue: #322BE1;
  --brand-blue-deep: #2320b6;
  --success: #1d6b47;
  --star: #f5a623;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --content-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Inter", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.noscript-banner {
  padding: 0.85rem 1rem;
  background: var(--brand-ink);
  color: #fff;
  text-align: center;
}

/* Site header — matches lendaloanmortgage.com white top bar */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.brand-logo-link {
  display: inline-flex;
}

.brand-logo {
  width: clamp(140px, 15vw, 180px);
  height: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-ink);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.brand-phone svg {
  flex: none;
  color: var(--brand-green);
}

/* Hero band — green → dark gradient (matches site hero) */
.hero {
  position: relative;
  padding: clamp(2.25rem, 6vw, 4.5rem) 1.25rem clamp(6rem, 11vw, 9rem);
  background:
    radial-gradient(circle at 88% 30%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(115deg, #0e7a38 0%, #0c5a2c 42%, #091d15 78%, #090915 100%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2.1rem, 5.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 1rem auto 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
}

.hero-review-feed {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  width: min(100%, var(--content-max));
  min-height: 54px;
  margin: 1.25rem auto 0;
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.hero-review-source {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  min-height: 40px;
  padding: 0 0.72rem 0 0.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.hero-review-source:hover,
.hero-review-source:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.google-mark {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.hero-review-source .stars {
  color: var(--star);
  font-size: 0.8rem;
}

.hero-review-source strong {
  font-weight: 800;
}

.hero-review-carousel {
  position: relative;
  min-width: 0;
  padding-right: 0.35rem;
  overflow: hidden;
}

.hero-review {
  display: none;
  margin: 0;
}

.hero-review.is-active {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  animation: reviewFade 420ms ease;
}

.hero-review blockquote {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-review figcaption {
  flex: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero-review figcaption::before {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.42rem;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 5px rgba(23, 157, 73, 0.18);
  vertical-align: 0.08rem;
}

@keyframes reviewFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Two-column layout: form on left, sticky compact quote rail on right */
.main-layout {
  display: grid;
  grid-template-areas: "form quote";
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.75rem;
  width: min(100%, 1180px);
  margin: -4rem auto 0;
  padding: 0 1.25rem 2.5rem;
  position: relative;
  z-index: 3;
  align-items: start;
}

.main-layout .form-panel {
  grid-area: form;
}

.quote-rail {
  grid-area: quote;
  position: sticky;
  top: 1rem;
  align-self: start;
}

.quote-card {
  position: relative;
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(9, 9, 21, 0.14);
  overflow: hidden;
}

.quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-green) 55%, var(--brand-blue) 100%);
}

.quote-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding-bottom: 0.95rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.quote-card-kicker {
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.quote-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.quote-card-meta-separator {
  color: rgba(97, 103, 122, 0.75);
}

.quote-card-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(23, 157, 73, 0.1);
  color: var(--brand-green-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}

.quote-card-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(23, 157, 73, 0.18);
  animation: quotePulse 1.6s ease-in-out infinite;
}

@keyframes quotePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.quote-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin-bottom: 1rem;
}

.quote-card-label,
.quote-stat-label {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-card-name,
.quote-card-address,
.quote-card-address-line2 {
  margin: 0;
  color: var(--brand-ink);
  line-height: 1.35;
}

.quote-card-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.quote-card-address {
  font-size: 1rem;
  font-weight: 600;
}

.quote-card-address-line2 {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.quote-card-name.is-placeholder,
.quote-card-address.is-placeholder,
.quote-card-address-line2.is-placeholder {
  color: #a7adb8;
  font-style: italic;
  font-weight: 500;
}

.quote-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
}

.quote-stat-value {
  margin: 0;
  color: var(--brand-ink);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.quote-card-ltv {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: #f1faf4;
  border: 1px solid rgba(23, 157, 73, 0.18);
  opacity: 0.55;
  transition: opacity 260ms ease;
}

.quote-card-ltv.is-revealed {
  opacity: 1;
  animation: ltvPop 520ms ease;
}

@keyframes ltvPop {
  0%   { transform: scale(0.985); box-shadow: 0 0 0 0 rgba(23, 157, 73, 0); }
  45%  { transform: scale(1.01); box-shadow: 0 0 0 8px rgba(23, 157, 73, 0.15); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(23, 157, 73, 0); }
}

.quote-card-ltv-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.55rem;
}

.quote-card-ltv-pct {
  margin: 0;
  color: var(--brand-green-deep);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.quote-card-ltv-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 157, 73, 0.15);
  overflow: hidden;
}

.quote-card-ltv-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-green), #2ecc71);
  border-radius: inherit;
  transition: width 450ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.quote-card-ltv-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.quote-card-ltv.is-revealed .quote-card-ltv-note {
  display: none;
}

.quote-card-locked-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.quote-locked {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}

.quote-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(9, 9, 21, 0.02), rgba(9, 9, 21, 0) 60%);
}

.quote-locked-value {
  margin: 0.3rem 0 0.65rem;
  color: var(--brand-ink);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  filter: blur(8px);
  user-select: none;
  -webkit-user-select: none;
}

.quote-locked-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(9, 9, 21, 0.06);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-phone-banner {
  display: none;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, #322BE1 0%, #5a4bff 100%);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(50, 43, 225, 0.28);
}

.quote-phone-banner.is-active {
  display: flex;
  animation: bannerSlide 380ms ease;
}

@keyframes bannerSlide {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.quote-phone-banner-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.quote-phone-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}

.quote-phone-banner strong {
  font-weight: 800;
}

.quote-card-foot {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.5;
}

/* Inline "one more step" banner shown at top of phone step */
.step-inline-banner {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, #322BE1 0%, #5a4bff 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(50, 43, 225, 0.22);
}

.step-inline-banner.is-active {
  display: flex;
  animation: bannerSlide 380ms ease;
}

.step-inline-banner-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.step-inline-banner p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.step-inline-banner strong {
  font-weight: 800;
}

.form-panel {
  padding: 0;
}

/* Compact variant: tightens the quote card so it fits beside the form */
.quote-card--compact {
  padding: 1.1rem 1.1rem 1rem;
  border-radius: 22px;
}

.quote-card--compact .quote-card-top {
  margin-bottom: 0.85rem;
}

.quote-card--compact .quote-card-kicker {
  font-size: 1rem;
}

.quote-card--compact .quote-card-meta {
  font-size: 0.72rem;
}

.quote-card--compact .quote-card-live {
  padding: 0.22rem 0.55rem;
  font-size: 0.62rem;
}

.quote-card--compact .quote-card-body {
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.quote-card--compact .quote-card-label,
.quote-card--compact .quote-stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  margin-bottom: 0.18rem;
}

.quote-card--compact .quote-card-name {
  font-size: 0.98rem;
}

.quote-card--compact .quote-card-address {
  font-size: 0.88rem;
}

.quote-card--compact .quote-card-address-line2 {
  font-size: 0.82rem;
}

.quote-card--compact .quote-card-row {
  padding: 0.7rem 0.8rem;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.quote-card--compact .quote-stat-value {
  font-size: 1.1rem;
}

.quote-card--compact .quote-card-ltv {
  padding: 0.75rem 0.8rem;
  margin-bottom: 0.75rem;
}

.quote-card--compact .quote-card-ltv-pct {
  font-size: 1rem;
}

.quote-card--compact .quote-card-ltv-track {
  height: 8px;
}

.quote-card--compact .quote-card-ltv-note {
  font-size: 0.72rem;
  margin-top: 0.45rem;
}

.quote-card--compact .quote-card-locked-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.quote-card--compact .quote-locked {
  padding: 0.7rem 0.7rem 0.8rem;
}

.quote-card--compact .quote-locked-value {
  font-size: 1.1rem;
  margin: 0.2rem 0 0;
  filter: blur(6px);
}

.quote-card--compact .quote-locked-lock {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.2rem 0.35rem;
  font-size: 0;
  background: rgba(9, 9, 21, 0.05);
}

.quote-card--compact .quote-phone-banner {
  padding: 0.65rem 0.75rem;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.quote-card--compact .quote-phone-banner-icon {
  width: 28px;
  height: 28px;
}

.quote-card--compact .quote-phone-banner p {
  font-size: 0.82rem;
  line-height: 1.35;
}

.quote-card--compact .quote-card-foot {
  padding-top: 0.7rem;
  font-size: 0.7rem;
}

.form-panel-inner {
  position: relative;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(9, 9, 21, 0.12);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.panel-kicker {
  margin: 0;
  color: var(--brand-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-title {
  margin: 0.15rem 0 0;
  color: var(--brand-ink);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.progress-shell {
  padding: 0.2rem 0 1rem;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(9, 9, 21, 0.08);
}

.progress-bar {
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-green), #2ecc71);
  transition: width 220ms ease;
}

.refi-form {
  margin-top: 0.25rem;
}

.steps {
  position: relative;
  min-height: 330px;
}

.step {
  display: none;
}

.step.is-active {
  display: block;
}

.step-body {
  padding: 0.25rem 0 0;
}

.step-body h3 {
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.step-copy {
  margin: 0.55rem 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0;
  margin: 1rem 0 0;
  border: 0;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(9, 9, 21, 0.1);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.choice-card:hover {
  border-color: rgba(23, 157, 73, 0.45);
  box-shadow: 0 10px 22px rgba(23, 157, 73, 0.1);
}

.choice-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-card span {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.choice-card.is-selected {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-deep));
  box-shadow: 0 14px 28px rgba(23, 157, 73, 0.28);
}

.choice-card.is-selected span {
  color: #fff;
}

.field {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.field-row .field {
  margin-top: 1rem;
}

.field-row-address {
  grid-template-columns: 1.4fr 0.9fr 0.8fr;
}

.field span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 0 1rem;
  border: 1.5px solid rgba(9, 9, 21, 0.12);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--brand-ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input::placeholder {
  color: #9aa1ad;
}

.field input:focus,
.field select:focus {
  outline: 0;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(23, 157, 73, 0.14);
}

.field-error {
  min-height: 1.4rem;
  margin: 0.55rem 0 0;
  color: #c53030;
  font-size: 0.9rem;
  font-weight: 500;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.step-actions.is-choice-step {
  justify-content: flex-start;
}

.step-actions.is-choice-step #nextButton {
  display: none;
}

.button[hidden] {
  display: none !important;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 10px;
  border: 0;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  background: var(--brand-blue);
  color: #fff;
  font-style: italic;
  box-shadow: 0 14px 26px rgba(50, 43, 225, 0.24);
}

.button-primary:hover:not([disabled]) {
  background: var(--brand-blue-deep);
  transform: translateY(-1px);
}

.button-secondary {
  background: #f1f2f5;
  color: var(--brand-ink);
}

.button-secondary:hover:not([disabled]) {
  background: #e5e7ec;
}

.submit-status {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--brand-green-deep);
}

.submit-status.is-success {
  color: var(--success);
}

.debug-panel {
  margin-top: 0.9rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: #f6f7f9;
  border: 1px solid var(--border);
}

.debug-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.debug-copy {
  min-height: 40px;
  padding: 0 0.95rem;
}

.debug-output {
  margin: 0;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--brand-ink);
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.thank-you-step .step-body h3 {
  max-width: none;
}

.thank-you-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0.25rem 0.25rem;
  gap: 0.85rem;
}

.thank-you-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(23, 157, 73, 0.1);
  color: var(--brand-green-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.thank-you-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 0 rgba(23, 157, 73, 0.4);
  animation: thankPulse 1.6s ease-out infinite;
}

@keyframes thankPulse {
  0%   { box-shadow: 0 0 0 0 rgba(23, 157, 73, 0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(23, 157, 73, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 157, 73, 0); }
}

.thank-you-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  margin: 0.25rem 0 0.35rem;
  background: linear-gradient(135deg, var(--brand-green) 0%, #14b25a 100%);
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(23, 157, 73, 0.32);
}

.thank-you-icon svg {
  position: relative;
  z-index: 2;
  animation: thankShake 1.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes thankShake {
  0%, 100% { transform: rotate(0deg); }
  20%      { transform: rotate(-12deg); }
  40%      { transform: rotate(10deg); }
  60%      { transform: rotate(-6deg); }
  80%      { transform: rotate(4deg); }
}

.thank-you-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(23, 157, 73, 0.45);
  animation: thankRing 1.8s cubic-bezier(0.22, 0.8, 0.28, 1) infinite;
  pointer-events: none;
}

.thank-you-ring-2 {
  animation-delay: 0.6s;
}

@keyframes thankRing {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.thank-you-headline {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
  line-height: 1.2;
  max-width: 30ch;
}

.thank-you-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 42ch;
}

.thank-you-sub strong {
  color: var(--brand-ink);
  font-weight: 700;
}

.thank-you-checklist {
  list-style: none;
  padding: 1rem 1.1rem;
  margin: 0.25rem 0 0;
  width: 100%;
  max-width: 420px;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.thank-you-checklist li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--brand-ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

.thank-you-check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #ffffff;
}

.thank-you-check-live {
  background: var(--brand-blue);
  animation: thankCheckPulse 1.6s ease-in-out infinite;
}

@keyframes thankCheckPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(50, 43, 225, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(50, 43, 225, 0); }
}

.thank-you-callcard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  width: 100%;
  max-width: 420px;
  padding: 0.9rem 1.1rem;
  border: 1px dashed rgba(9, 9, 21, 0.15);
  border-radius: var(--radius-md);
  text-align: left;
}

.thank-you-callcard-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.thank-you-callcard-number {
  display: inline-block;
  margin-top: 0.15rem;
  color: var(--brand-ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.thank-you-callcard-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.thank-you-body .success-actions {
  justify-content: center;
  margin-top: 0.5rem;
}

/* Site footer — dark with trust badges, mirrors lendaloanmortgage.com */
.site-footer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--brand-ink);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  width: 150px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-meta {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-meta strong {
  color: #fff;
  font-weight: 700;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-badges img {
  height: 44px;
  width: auto;
  opacity: 0.9;
}

.footer-legal {
  width: 100%;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  line-height: 1.55;
}

.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .site-header-inner {
    padding: 0.75rem 1rem;
  }

  .brand-phone {
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {
  .main-layout {
    grid-template-areas:
      "quote"
      "form";
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: -3.5rem;
    padding: 0 1rem 2rem;
    width: min(100%, 820px);
  }

  .quote-rail {
    position: static;
    top: auto;
  }
}

@media (max-width: 720px) {
  .hero-review-feed {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    min-height: 74px;
    margin-top: 1rem;
    padding: 0.55rem 0.7rem;
  }

  .hero-review-source {
    justify-content: center;
    min-height: auto;
    padding: 0;
    border-right: 0;
    font-size: 0.82rem;
  }

  .hero-review-source .stars {
    font-size: 0.72rem;
  }

  .hero-review-source span:last-child {
    display: none;
  }

  .hero-review.is-active {
    justify-content: center;
    gap: 0;
  }

  .hero-review blockquote {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .hero-review figcaption {
    display: none;
  }

  .main-layout {
    margin-top: -2.75rem;
    padding: 0 0.8rem 1.5rem;
    gap: 1rem;
  }

  .quote-card--compact .quote-card-row,
  .quote-card--compact .quote-card-locked-grid {
    grid-template-columns: 1fr 1fr;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .field-row,
  .field-row-address {
    grid-template-columns: 1fr;
  }

  .steps {
    min-height: 360px;
  }

  .form-panel-inner {
    padding: 1.1rem;
    border-radius: 20px;
  }

  .field input,
  .field select,
  .button {
    min-height: 52px;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-badges {
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
