:root {
  --green: #1e5a45;
  --green-dark: #17493a;
  --gold: #c9a959;
  --gold-dark: #b3924a;
  --ink: #1c2530;
  --muted: #6b7480;
  --line: #e6e2d8;
  --bg: #ffffff;
  --error: #c0392b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: var(--green);
  padding: 14px 16px;
  display: flex;
  justify-content: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-icon { width: 26px; height: 26px; }
.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}
.logo-accent { color: var(--gold); }

/* Layout */
.main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px 8px;
}

/* Progress */
.progress {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 18px;
}
.progress .seg {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.25s;
}
.progress .seg.done { background: var(--gold); }

/* Steps */
.step { display: none; animation: fadeIn 0.28s ease; }
.step.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.q-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 8px;
}
.q-sub {
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.q-sub.strong { font-weight: 600; margin-top: 10px; }
.q-hint {
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
  margin: 12px 0 14px;
  line-height: 1.45;
}

/* Option cards */
.cards {
  display: grid;
  gap: 10px;
  justify-content: center;
  margin-bottom: 4px;
}
.cards-2 { grid-template-columns: repeat(2, minmax(0, 150px)); }
.cards-3 { grid-template-columns: repeat(2, minmax(0, 150px)); }
.cards-3 .card:last-child { grid-column: 1 / -1; justify-self: center; width: 150px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 10px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.card:hover, .card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 2px 10px rgba(201, 169, 89, 0.25);
  outline: none;
}
.card:active { transform: scale(0.98); }
.card.selected { border-color: var(--gold); background: #fdfaf2; }
.card-icon { width: 44px; height: 44px; color: var(--gold); }
.card-icon svg { width: 100%; height: 100%; }
.card-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.35;
}

/* Radio list */
.radio-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 340px;
  margin: 16px auto 4px;
}
.radio-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.radio-item:hover, .radio-item:focus-visible {
  border-color: var(--gold);
  outline: none;
}
.radio-item.selected { border-color: var(--gold); background: #fdfaf2; }
.radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.radio-item.selected .radio-dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: inset 0 0 0 3px #fdfaf2;
}

/* Forms */
.form { max-width: 340px; margin: 14px auto 4px; }
.field-label {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: "\2304";
  position: absolute;
  right: 14px;
  top: 42%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 0.9rem;
}
select, input {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #f5f4f0;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 14px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s, background 0.15s;
}
select:focus, input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
input::placeholder { color: #9aa1ab; }
input.invalid, select.invalid { border-color: var(--error); }

.form-row { display: flex; gap: 10px; }
.form-row input { min-width: 0; }

.input-icon-wrap { position: relative; margin-top: 10px; }
.input-icon-wrap input { padding-left: 42px; }
.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #9aa1ab;
  display: flex;
  align-items: center;
}
.input-icon svg { width: 100%; height: 100%; }
.input-icon.flag { font-size: 1rem; width: auto; }

.field-error {
  display: none;
  color: var(--error);
  font-size: 0.76rem;
  margin-top: 6px;
}
.field-error.show { display: block; }

.btn-primary {
  width: 100%;
  margin-top: 16px;
  background: var(--gold);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 13px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { background: var(--gold-dark); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.7; cursor: wait; }
.btn-arrow { font-size: 1.1rem; }

/* Advisor note */
.advisor-note {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
  margin: 20px auto 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.advisor-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #f0d9c0 0 26%, transparent 27%),
    radial-gradient(ellipse 60% 42% at 50% 88%, #2a6b52 0 100%, transparent 100%),
    radial-gradient(circle at 50% 30%, #7a5a3a 0 32%, transparent 33%),
    linear-gradient(180deg, #e8e4da, #d8d2c4);
}
.advisor-avatar::after {
  content: "\2713";
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 16px;
  height: 16px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.advisor-note p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Value badge */
.value-badge {
  display: table;
  margin: 0 auto 10px;
  background: #e7f2e0;
  color: #3f7a34;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Check list */
.check-list {
  list-style: none;
  max-width: 340px;
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.check-list li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.check-list .check {
  color: #3f9d4e;
  font-weight: 700;
  flex-shrink: 0;
}

.fine-print {
  font-size: 0.64rem;
  color: #a3a9b1;
  line-height: 1.5;
  max-width: 420px;
  margin: 18px auto 0;
}
.fine-print.center { text-align: center; }

/* Loader */
.step-loader .q-title { margin-bottom: 26px; }
.loader-list {
  list-style: none;
  max-width: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.loader-item {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.35;
  transition: opacity 0.3s;
}
.loader-item.active, .loader-item.done { opacity: 1; }
.loader-icon {
  position: relative;
  width: 40px;
  height: 40px;
  color: var(--gold);
  flex-shrink: 0;
}
.loader-icon svg { width: 100%; height: 100%; }
.loader-spin {
  display: none;
  position: absolute;
  inset: -6px;
  border: 3px solid rgba(201, 169, 89, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader-item.active .loader-spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-check {
  display: none;
  position: absolute;
  right: -8px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  background: #3f9d4e;
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  align-items: center;
  justify-content: center;
}
.loader-item.done .loader-check { display: flex; }
.loader-label { font-size: 0.95rem; color: var(--ink); }

/* Trust row */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 16px;
  font-size: 0.74rem;
  color: var(--muted);
}
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row svg { width: 15px; height: 15px; color: var(--green); }

/* Thank-you */
.ty-box {
  max-width: 380px;
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fcfbf8;
}
.ty-box-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}
.ty-availability {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* Custom scheduler */
.scheduler,
.booking-confirmation {
  max-width: 420px;
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(28, 37, 48, 0.07);
}
.scheduler-head { text-align: center; }
.scheduler-kicker {
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.scheduler-head h2,
.booking-confirmation h2 {
  font-size: 1.08rem;
  margin: 4px 0;
}
.scheduler-head p {
  color: var(--muted);
  font-size: 0.7rem;
}
.date-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.date-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 6px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
.date-tab span { display: block; font-size: 0.68rem; color: var(--muted); }
.date-tab strong { display: block; font-size: 0.82rem; margin-top: 2px; }
.date-tab.active {
  border-color: var(--green);
  background: #edf5f1;
  color: var(--green);
}
.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.time-slot {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 9px 4px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.time-slot:hover,
.time-slot:focus-visible {
  border-color: var(--gold);
  outline: none;
}
.time-slot.selected {
  border-color: var(--gold);
  background: #fdf8e9;
  color: #765e20;
}
.booking-button { margin-top: 14px; }
.booking-status {
  min-height: 18px;
  margin-top: 8px;
  text-align: center;
  color: var(--error);
  font-size: 0.72rem;
}
.booking-confirmation { text-align: center; background: #f6fbf8; }
.booking-confirmation p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.booking-check {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Carriers */
.carriers { margin: 18px auto 10px; text-align: center; }
.carriers-title {
  font-size: 0.62rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #b0b6be;
  margin-bottom: 10px;
}
.carriers-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}
.carriers-row span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #c3c8ce;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  background: var(--green);
  padding: 14px 16px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: 18px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.74rem;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* Legal pages */
.legal {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}
.legal h1 { font-size: 1.5rem; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 0.8rem; margin-bottom: 20px; }
.legal h2 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 0.88rem; line-height: 1.65; color: #3a4450; }
.legal ul { padding-left: 20px; margin: 8px 0; }

/* Mobile */
@media (max-width: 480px) {
  .main { padding: 14px 14px 6px; }
  .q-title { font-size: 1.18rem; }
  .q-sub { font-size: 0.88rem; }
  .progress { margin-bottom: 14px; }
  .progress .seg { width: 20px; }
  .cards-2, .cards-3 { grid-template-columns: repeat(2, 1fr); max-width: 320px; margin-left: auto; margin-right: auto; }
  .cards-3 .card:last-child { width: calc(50% - 5px); }
  .card { padding: 13px 8px 12px; gap: 8px; }
  .card-icon { width: 38px; height: 38px; }
  .card-label { font-size: 0.78rem; }
  .radio-item { padding: 10px 13px; font-size: 0.88rem; }
  .radio-list { gap: 8px; margin-top: 12px; }
  .btn-primary { font-size: 0.95rem; padding: 12px 16px; }
  .advisor-note { margin-top: 16px; padding-bottom: 12px; }
  .check-list li { font-size: 0.84rem; }
  .loader-list { gap: 18px; }
  .carriers-row span { font-size: 0.68rem; }
  .scheduler { padding: 14px; }
  .time-slots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 350px) {
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .cards-3 .card:last-child { width: 100%; }
  .card { flex-direction: row; justify-content: flex-start; padding: 10px 14px; }
  .card-icon { width: 30px; height: 30px; }
}
