:root {
  --ink: #f7f1e8;
  --muted: #b8b4ad;
  --paper: #0b1218;
  --paper-warm: #111a22;
  --line: rgba(247, 241, 232, 0.22);
  --accent: #f7f1e8;
  --accent-hover: #ffffff;
  --accent-soft: rgba(247, 241, 232, 0.1);
  --warning: #ffb4a8;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

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

body {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(247, 241, 232, 0.12), transparent 34%),
    linear-gradient(180deg, #0b1218 0%, #070b10 100%),
    var(--paper);
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 38px 16px 48px;
  position: relative;
  overflow-x: hidden;
}

.page-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-texture span {
  position: absolute;
  width: min(720px, 86vw);
  height: min(720px, 86vw);
  right: -260px;
  top: -320px;
  border: 1px solid rgba(247, 241, 232, 0.09);
  border-radius: 50%;
}

.quiz-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 590px;
}

.quiz-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0d141b;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.15;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

/* Progress */
.progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.progress__track {
  flex: 1;
  height: 6px;
  background: rgba(247, 241, 232, 0.14);
  border-radius: 100px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 33%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.28s ease;
}

.progress__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* Card */
.card {
  background: rgba(13, 20, 27, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.step {
  animation: fade 0.24s ease;
}

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

.step__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 11px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.step__title {
  max-width: 460px;
  font-size: 26px;
  line-height: 1.22;
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-bottom: 9px;
}

.step__subtitle {
  max-width: 490px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Options */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 520;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.option:hover {
  border-color: rgba(247, 241, 232, 0.5);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.option__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(247, 241, 232, 0.44);
  flex-shrink: 0;
  position: relative;
  transition: all 0.16s ease;
}

.option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(247, 241, 232, 0.18);
}

.option.selected .option__dot {
  border-color: var(--accent);
  background: transparent;
}

.option.selected .option__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Form (step 3) */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input {
  width: 100%;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-group input::placeholder {
  color: #8f8b85;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(247, 241, 232, 0.12);
}

.form-group input.invalid {
  border-color: var(--warning);
}

.field-error {
  font-size: 12.5px;
  color: var(--warning);
  min-height: 16px;
}

/* Navigation */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  font-family: inherit;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn-back {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 13px 18px;
  font-size: 14px;
}

.btn-back:hover {
  color: var(--ink);
  border-color: rgba(247, 241, 232, 0.5);
}

.btn-back[hidden] {
  visibility: hidden;
}

.btn-next {
  background: var(--accent);
  color: #0b1218;
  padding: 14px 30px;
  font-size: 15px;
  margin-left: auto;
  box-shadow: 0 12px 26px rgba(247, 241, 232, 0.16);
}

.btn-next:hover {
  background: var(--accent-hover);
  box-shadow: 0 14px 30px rgba(247, 241, 232, 0.2);
}

.btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.trust-note {
  text-align: center;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Success screen */
.success {
  text-align: center;
  padding: 12px 4px;
  animation: fade 0.4s ease;
}

.success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(247, 241, 232, 0.16);
}

.success__icon svg {
  width: 40px;
  height: 40px;
  color: #0b1218;
}

.success__title {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.success__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 380px;
  margin: 0 auto;
}

.success__summary {
  margin-top: 22px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.success__summary strong {
  color: var(--ink);
}

@media (max-width: 480px) {
  body {
    padding-top: 24px;
  }
  .step__title {
    font-size: 22px;
  }
  .card {
    padding: 24px 18px;
  }
  .progress {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .progress__track {
    width: 100%;
  }
}

/* ===== Phone field ===== */
.pf {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.pf:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(247, 241, 232, 0.12);
}
.pf__country-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 12px 14px 14px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease;
  border-radius: 14px 0 0 14px;
  flex-shrink: 0;
}
.pf__country-btn:hover { background: rgba(255,255,255,0.06); }
.pf__flag { font-size: 20px; line-height: 1; flex-shrink: 0; }
.pf__code { font-size: 14px; color: var(--muted); }
.pf__arrow { width: 10px; height: 6px; color: var(--muted); flex-shrink: 0; }
.pf__input {
  flex: 1;
  min-width: 0;
  padding: 15px 14px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  letter-spacing: 0.04em;
}
.pf__input:focus { outline: none; }
.pf__input::placeholder { color: #8f8b85; letter-spacing: 0; }

.pf__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 100;
  background: #111a24;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  overflow: hidden;
  animation: fade 0.16s ease;
}
.pf__search {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
}
.pf__search:focus { outline: none; }
.pf__search::placeholder { color: var(--muted); }

.pf__list {
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(247,241,232,0.2) transparent;
}
.pf__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.12s ease;
}
.pf__item:hover { background: rgba(255,255,255,0.06); }
.pf__item--active { background: rgba(247,241,232,0.08); }
.pf__item-name { flex: 1; color: var(--ink); }
.pf__item-dial { color: var(--muted); font-size: 13px; }

.pf--manual { border-radius: 14px; }

/* ===== Intro screen ===== */
.intro-step {
  padding-bottom: 4px;
}

.intro-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(247, 241, 232, 0.07);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.intro-title {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.intro-highlight {
  background: linear-gradient(90deg, #f7f1e8 0%, #b8b4ad 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.intro-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 28px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.intro-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

.intro-bullet-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.intro-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-intro-start {
  width: 100%;
  font-size: 16px;
  padding: 17px 24px;
  text-align: center;
  letter-spacing: -0.01em;
}

.intro-note {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 480px) {
  .intro-title {
    font-size: 22px;
  }
}
