:root {
  --background: #faf9f6;
  --card: #ffffff;
  --foreground: #1f2933;
  --muted: #667085;
  --muted-soft: #98a2b3;
  --border: #e6e1d8;
  --border-strong: #d7cfc2;
  --primary: #0f5b46;
  --primary-hover: #0b4938;
  --accent: #f3bd41;
  --accent-soft: #fff4d4;
  --footer: #1e1e1e;
  --shadow: rgba(20, 30, 60, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--foreground);
  background: var(--background);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  background: var(--background);
}

.wash,
.paper-lines {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.wash {
  opacity: 0.35;
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(222, 220, 235, 0.65), transparent);
}

.paper-lines {
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 47px,
    rgba(222, 220, 235, 0.35) 47px,
    rgba(222, 220, 235, 0.35) 48px
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent 5%, black 40%, transparent 95%);
  mask-image: linear-gradient(to bottom, transparent 5%, black 40%, transparent 95%);
}

.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(216, 210, 200, 0.6);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  height: 64px;
  max-width: 1024px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin: 0 auto;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: auto;
  height: 36px;
}

.product-name {
  padding-left: 16px;
  border-left: 1px solid var(--border);
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.advisor-note {
  color: var(--muted);
  font-size: 12px;
}

.form-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px 80px;
}

.lead-form {
  width: 100%;
  max-width: 576px;
}

.progress-wrap {
  width: 100%;
}

.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe7df;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 260ms ease;
}

.question-shell {
  min-height: 380px;
  margin-top: 40px;
}

.question {
  animation: questionIn 260ms ease both;
}

.question.is-back {
  animation-name: questionBack;
}

.question-step {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  color: var(--foreground);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.question-subtitle {
  max-width: 480px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.option-button {
  width: 100%;
  min-height: 76px;
  padding: 18px 20px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(20, 30, 60, 0.05);
  color: var(--foreground);
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.option-button:hover,
.option-button.selected {
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-1px);
}

.option-label {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.option-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.field-wrap {
  position: relative;
  display: block;
  margin-top: 28px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.text-input {
  width: 100%;
  height: 64px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(20, 30, 60, 0.05);
  color: var(--foreground);
  font-size: 24px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.currency-control {
  position: relative;
  display: block;
}

.currency-control .text-input {
  padding-left: 44px;
}

.currency-symbol {
  position: absolute;
  left: 20px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--muted-soft);
  font-size: 24px;
  pointer-events: none;
}

.text-input::placeholder {
  color: rgba(102, 112, 133, 0.4);
}

.text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(20, 30, 60, 0.08);
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 40px;
  margin-top: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  background: var(--primary-hover);
}

.primary-button:active,
.back-button:active {
  transform: scale(0.98);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin-top: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease, transform 160ms ease;
}

.back-button:hover {
  color: var(--foreground);
}

.interstitial,
.success {
  text-align: center;
}

.interstitial .question-subtitle {
  margin: 12px auto 0;
}

.interstitial .primary-button {
  padding: 0 32px;
}

.primary-button[data-submit] {
  width: 100%;
}

.back-center {
  justify-content: center;
  width: 100%;
}

.icon-circle {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #3f2f00;
}

.icon-circle.large {
  width: 64px;
  height: 64px;
}

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(20, 30, 60, 0.05);
  cursor: pointer;
}

.consent-box input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.consent-box span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.fine-print {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.success {
  max-width: 576px;
  margin: 0 auto;
  animation: questionIn 260ms ease both;
}

.success p {
  max-width: 448px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 24px 0;
  background: var(--footer);
}

.footer-inner {
  display: flex;
  max-width: 1024px;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  margin: 0 auto;
}

.housing-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  opacity: 0.8;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.55;
}

.footer-copy .footer-strong {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.footer-copy a {
  color: inherit;
  text-underline-offset: 2px;
}

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

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 5;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #242424;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes questionIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes questionBack {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .product-name {
    display: none;
  }

  .form-stage {
    padding-top: 34px;
    padding-bottom: 56px;
  }

  .question-shell {
    min-height: 340px;
    margin-top: 32px;
  }

  h1 {
    font-size: 28px;
  }

  .text-input {
    font-size: 22px;
  }

  .primary-button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .header-inner {
    padding: 0 16px;
  }

  .advisor-note {
    max-width: 90px;
    text-align: right;
  }

  .form-stage {
    padding-right: 16px;
    padding-left: 16px;
  }

  .question-shell {
    min-height: 320px;
    margin-top: 28px;
  }

  h1 {
    font-size: 26px;
  }

  .text-input {
    height: 58px;
    font-size: 20px;
  }

  .primary-button {
    min-height: 50px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .option-button {
    min-height: 70px;
    padding: 16px;
  }

  .consent-box {
    padding: 14px;
  }
}
