:root {
  --bg: #F4F7FB;
  --card: #FFFFFF;
  --ink: #0F1E3D;
  --muted: #5B6B85;
  --accent: #1D4ED8;
  --accent-soft: rgba(29, 78, 216, 0.07);
  --line: #DDE4EE;
  --danger: #DC2626;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  color: var(--ink);
}

.progress-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--line);
  z-index: 20;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.35s ease;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
  padding: 26px 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.brand .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.secure-badge {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.page {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.motion-track {
  position: relative;
  max-width: 220px;
  height: 1px;
  margin: 38px auto 0;
  border-top: 1.5px dashed var(--line);
}
.motion-dot {
  position: absolute;
  top: -5px;
  left: 0%;
  width: 11px; height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
  transition: left 0.4s ease;
}
.step-copy {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 8px 0 26px;
}

.badge {
  display: block;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
}
.hero .sub {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
}
.q-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}
.q-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.35;
}
.q-helper {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 15px 18px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
  background: #fff;
  width: 100%;
}
.option:hover { border-color: var(--accent); }
.option.selected { border-color: var(--accent); background: var(--accent-soft); }
.option-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.option-text span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 1px;
}

.field-step input[type="text"],
.field-step input[type="tel"],
.field-step input[type="email"] {
  width: 100%;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--ink);
  padding: 14px 15px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  outline: none;
  margin-bottom: 6px;
}
.field-step input:focus { border-color: var(--accent); }
.field-step label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 8px;
}
.field-step label:first-of-type { margin-top: 0; }
.field-error {
  font-size: 12.5px;
  color: var(--danger);
  margin: -2px 0 10px;
  display: none;
}
.field-error.show { display: block; }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  width: 100%;
  text-align: center;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-back {
  background: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  padding: 14px 6px;
  flex-shrink: 0;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 22px;
}
.consent-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px; height: 16px;
  accent-color: var(--accent);
}
.consent-row label {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.consent-row a { color: var(--ink); text-decoration: underline; }

.consent-note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 16px 0 22px;
}
.consent-note a { color: var(--ink); text-decoration: underline; }

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.legal-footer {
  max-width: 560px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.6;
  color: #A3AFC4;
}
.legal-footer .links {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.legal-footer .links a { color: var(--muted); text-decoration: underline; margin: 0 6px; }

.analyzing-wrap { text-align: center; }
.progress-ring-wrap {
  position: relative;
  width: 108px; height: 108px;
  margin: 0 auto 22px;
}
.progress-ring-wrap svg { transform: rotate(-90deg); }
.progress-ring-bg { fill: none; stroke: var(--line); stroke-width: 7; }
.progress-ring-fg {
  fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round;
  transition: stroke-dashoffset 0.2s linear;
}
.progress-ring-pct {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: var(--ink);
}
.analyzing-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 18px;
}
.check-list { text-align: left; display: flex; flex-direction: column; gap: 12px; }
.check-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.check-item.done { color: var(--ink); font-weight: 600; }
.check-dot {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: #fff;
}
.check-item.done .check-dot { background: var(--accent); border-color: var(--accent); }
.check-dot::after { content: ''; }
.check-item.done .check-dot::after { content: '\2713'; }

.cal-title { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 16px; }
.cal-info-box {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.cal-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  padding: 4px 0;
}
.cal-info-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.cal-tz-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 20px 0 8px;
}
.cal-tz-select {
  width: 100%;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
}
.cal-back-btn {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--accent);
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 14px;
}
.cal-date-heading { font-size: 19px; font-weight: 800; color: var(--ink); margin: 0 0 18px; }
.cal-choose-label { font-size: 16px; font-weight: 800; color: var(--ink); text-align: center; margin: 0 0 4px; }
.cal-duration { font-size: 13px; color: var(--muted); text-align: center; margin: 0 0 18px; }
.cal-time-list { display: flex; flex-direction: column; gap: 10px; }
.cal-time-row {
  display: block;
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  background: #fff;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
}
.cal-time-row:hover { border-color: var(--accent); background: var(--accent-soft); }
.cal-time-row:disabled { opacity: 0.5; cursor: default; }

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 16px;
}
.cal-nav button {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  font-family: 'Manrope', sans-serif;
}
.cal-nav button:disabled { opacity: 0.3; cursor: default; }
.cal-month-label { font-weight: 800; font-size: 16px; color: var(--ink); }
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 6px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Manrope', sans-serif;
}
.cal-day.empty { visibility: hidden; cursor: default; }
.cal-day.unavailable { color: #C7CEDB; cursor: default; }
.cal-day.available:hover { background: var(--accent-soft); }
.cal-day.selected { background: var(--accent); color: #fff; }
.cal-tz {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin: 16px 0 0;
}

.confirm-wrap { text-align: center; }
.confirm-wrap h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.confirm-wrap p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0; }

.step { display: none; }
.step.active { display: block; }

@media (max-width: 480px) {
  .card { padding: 26px 20px; }
  .hero h1 { font-size: 25px; }
}
