:root {
  --bg: #101317;
  --panel: #1b1f25;
  --panel-strong: #21262e;
  --border: #2d323b;
  --text: #eef0f3;
  --muted: #9aa3ad;
  --accent: #ffcc33;
  --accent-dark: #e0a800;
  --accent-soft: rgba(255, 204, 51, 0.14);
  --on-accent: #1a1508;
  --success: #ffcc33;
  --progress-green: #ffcc33;
  --progress-green-dark: #e0a800;
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(1000px 420px at 90% -5%, rgba(255, 204, 51, 0.1), transparent 62%),
    radial-gradient(800px 420px at 0% 15%, rgba(255, 204, 51, 0.05), transparent 62%),
    linear-gradient(180deg, #0d0f12 0%, #101317 48%, #14171b 100%);
}

button, input, select, textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 14px 40px;
}

.intake-card {
  width: min(760px, 100%);
  background: rgba(27, 31, 37, 0.97);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 18px 42px var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.12;
  color: var(--text);
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}

.trust-badges {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 6px 14px var(--shadow);
}

.trust-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.progress-wrap {
  margin-top: 20px;
  margin-bottom: 24px;
}

.progress-bar {
  height: 8px;
  width: 100%;
  background: #2a2f37;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent) 50%, #fff3b0 75%, var(--accent) 100%);
  background-size: 220% 100%;
  animation: progressShimmer 2.6s linear infinite;
  border-radius: inherit;
  transition: width 0.25s ease;
}

@keyframes progressShimmer {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 220% 0%;
  }
}

.progress-label {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

.slide {
  display: none;
  animation: fadeIn 0.25s ease;
}

.slide.active {
  display: block;
}

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

.question {
  margin: 0 0 18px;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 700;
  color: var(--text);
}

.research-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 204, 51, 0.3);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}

.urgency-note {
  margin: 8px 0 16px;
}

.urgency-grid {
  gap: 14px;
}

.slide[data-step="4"] .choice-option span {
  min-height: 90px;
  border-width: 2px;
}

.slide[data-step="4"] .choice-option:nth-child(1) span {
  background: linear-gradient(145deg, #2b2410 0%, #3a2f12 100%);
  border-color: #6b551c;
}

.slide[data-step="4"] .choice-option:nth-child(2) span {
  background: linear-gradient(145deg, #12241c 0%, #163223 100%);
  border-color: #2a5a3e;
}

.slide[data-step="4"] .choice-option:nth-child(3) span {
  background: linear-gradient(145deg, #101e2b 0%, #142a3a 100%);
  border-color: #234a6b;
}

.slide[data-step="4"] .choice-option:nth-child(4) span {
  background: linear-gradient(145deg, #1e1730 0%, #251c3a 100%);
  border-color: #4a3a6b;
}

.slide[data-step="4"] .choice-option span:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px var(--shadow);
}

.slide[data-step="4"] .choice-option input:checked + span {
  border-color: var(--accent);
  background: linear-gradient(145deg, #362a10 0%, #4a3a14 100%);
  box-shadow: 0 14px 24px rgba(255, 204, 51, 0.22);
}

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

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-number input {
  max-width: 120px;
  padding: 8px 10px;
  border-radius: 10px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.full-width {
  grid-column: 1 / -1;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #14171b;
  padding: 12px 14px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 204, 51, 0.18);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-list-combined {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-option span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-strong);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
}

.choice-option span small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

.choice-option input:checked + span {
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(255, 204, 51, 0.03) 100%);
  border-color: var(--accent);
  box-shadow: 0 12px 22px rgba(255, 204, 51, 0.16);
}

.followup-fields {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.other-reason-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-strong);
  padding: 10px 12px;
}

.other-reason-text {
  min-height: 78px;
}

.value-goal-card {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(165deg, var(--panel) 0%, var(--panel-strong) 100%);
  padding: 16px;
  text-align: center;
}

.value-goal-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
}

.address-card {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(165deg, var(--panel) 0%, var(--panel-strong) 100%);
  padding: 18px 16px;
}

.address-card-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.address-card input {
  font-size: 1.05rem;
  padding: 14px 16px;
}

.hidden {
  display: none !important;
}

.address-validation {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-strong);
  padding: 12px 14px;
}

.address-validation-header {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.address-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #14171b;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.address-suggestion:last-child {
  margin-bottom: 0;
}

.address-suggestion span {
  color: var(--accent-dark);
  font-weight: 800;
  margin-right: 4px;
}

.address-suggestion:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.address-suggestion.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 8px 16px rgba(255, 204, 51, 0.16);
}

.value-goal-input-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: min(460px, 100%);
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #14171b;
  padding: 8px 12px;
}

.value-goal-prefix {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  align-self: center;
}

#desiredPrice {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  caret-color: var(--accent);
}

#desiredPrice:focus {
  box-shadow: none;
  border: none;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

#nextBtn {
  min-width: 168px;
  padding: 10px 20px;
}

.btn-main,
.btn-sub {
  display: block;
  text-align: center;
  line-height: 1.15;
}

.btn-main {
  font-size: 0.95rem;
  font-weight: 800;
}

.btn-sub {
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.92;
  letter-spacing: 0.01em;
}

button:hover {
  transform: translateY(-1px);
}

button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--on-accent);
}

#nextBtn {
  background: linear-gradient(120deg, var(--accent-dark) 0%, var(--accent) 40%, #fff3b0 60%, var(--accent) 100%);
  background-size: 220% 220%;
  animation: ctaShimmer 3.6s ease-in-out infinite;
  color: var(--on-accent);
  box-shadow: 0 10px 22px rgba(255, 204, 51, 0.35);
}

#submitBtn {
  background: linear-gradient(120deg, var(--accent-dark) 0%, var(--accent) 40%, #fff3b0 60%, var(--accent) 100%);
  background-size: 220% 220%;
  animation: ctaShimmer 3.6s ease-in-out infinite;
  color: var(--on-accent);
  box-shadow: 0 10px 22px rgba(255, 204, 51, 0.35);
}

@keyframes ctaShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#nextBtn:hover {
  box-shadow: 0 12px 26px rgba(255, 204, 51, 0.45);
}

button.secondary {
  background: #262b33;
  color: var(--text);
}

.status-message {
  min-height: 24px;
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .intake-card {
    padding: 20px 16px 18px;
    border-radius: 20px;
  }

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

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

  .compact-number input {
    max-width: 100%;
  }

  .value-goal-input-wrap {
    width: 100%;
  }

  .actions {
    flex-direction: column-reverse;
    width: 100%;
  }

  .actions button {
    width: 100%;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .status-message {
    font-size: 0.9rem;
  }
}

.thank-you-panel {
  text-align: center;
  padding: 12px 4px 4px;
  animation: fadeIn 0.3s ease;
}

.thank-you-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  margin: 0 0 14px;
}

.thank-you-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  color: var(--text);
}

.thank-you-copy {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--muted);
}

.thank-you-contact {
  margin: 22px auto 0;
  width: min(420px, 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(165deg, var(--panel) 0%, var(--panel-strong) 100%);
  padding: 16px;
}

.thank-you-contact-label {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--text);
}

.thank-you-contact-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.thank-you-contact-link:hover {
  text-decoration: underline;
}
