:root {
  --background: #0a0a0f;
  --foreground: #f5f5f7;
  --muted: #1a1a22;
  --muted-foreground: #9ca3af;
  --card: #14141c;
  --border: #2a2a35;
  --primary: #ffb800;
  --primary-foreground: #0a0a0f;
  --destructive: #ef4444;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

.main { min-height: 100vh; display: flex; padding: 40px 16px; }
.center { align-items: center; justify-content: center; flex-direction: column; }
.main--quiz {
  justify-content: flex-start;
  padding-bottom: 112px;
}

.screen {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
.screen--wide { max-width: 1100px; }
.screen--centered { text-align: center; }
.screen--centered .screen__text { margin-left: auto; margin-right: auto; }

.screen__image {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 40px;
  display: block;
}
.screen__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}
.screen__text {
  color: var(--muted-foreground);
  font-size: 18px;
  margin: 0 0 32px;
  max-width: 560px;
}
.screen--wide .screen__title {
  font-size: 24px;
  margin-bottom: 32px;
  max-width: none;
}
.screen__body { margin-bottom: 0; }
.screen__actions { margin-top: 32px; }
.screen--wide .screen__body { margin-bottom: 0; }

@media (min-width: 768px) {
  .screen__title { font-size: 40px; }
  .screen--wide .screen__title { font-size: 36px; margin-bottom: 48px; }
  .screen--wide .screen__image { margin-bottom: 48px; }
}

.btn-primary {
  background: var(--primary); color: var(--primary-foreground);
  font-weight: 600; padding: 16px 48px; border-radius: 8px;
  transition: opacity .2s; font-size: 16px;
}
.btn-primary:hover { opacity: .9; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.options { display: grid; grid-template-columns: 1fr; gap: 16px; width: 100%; }
@media (min-width: 768px) { .options { grid-template-columns: 1fr 1fr; } }

.option {
  display: flex; align-items: center; gap: 16px; text-align: left;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; transition: border-color .2s, background .2s;
  width: 100%;
}
.option:hover { border-color: rgba(255,255,255,.3); }
.option.active { border-color: var(--primary); background: rgba(255, 184, 0, .1); }
.radio {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); display: flex;
  align-items: center; justify-content: center;
}
.option.active .radio { border-color: var(--primary); }
.radio-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); display: none; }
.option.active .radio-dot { display: block; }
.option-text { font-size: 15px; font-weight: 500; }

.quiz-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 16px 16px 24px;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, var(--background) 32%);
  pointer-events: none;
}
.quiz-footer__row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  pointer-events: auto;
}
.progress-wrap { flex: 1; position: relative; padding-top: 24px; }
.progress-label {
  position: absolute; top: -4px; color: var(--primary);
  font-weight: 700; font-size: 14px; transition: left .3s;
}
.progress-bar { height: 6px; width: 100%; background: var(--muted); border-radius: 999px; position: relative; overflow: visible; }
.progress-fill {
  height: 100%; background: var(--primary); border-radius: 999px;
  box-shadow: 0 0 12px var(--primary); transition: width .3s;
}
.progress-dot {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--primary); transition: left .3s;
}
.icon-btn {
  width: 48px; height: 48px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s;
}
.icon-btn:hover { border-color: rgba(255,255,255,.3); }
.next-btn {
  background: var(--primary); color: var(--primary-foreground);
  font-weight: 600; padding: 0 24px; height: 48px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px; transition: opacity .2s;
}
@media (min-width: 768px) { .next-btn { padding: 0 32px; } }
.next-btn:hover { opacity: .9; }
.next-btn:disabled { opacity: .5; cursor: not-allowed; }

.form-wrap { width: 100%; max-width: 420px; margin: auto; }
.form-wrap h1 { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.form-wrap .sub { color: var(--muted-foreground); text-align: center; margin-bottom: 32px; }
.form-field {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px; color: var(--foreground);
  font-size: 16px; outline: none; transition: border-color .2s; margin-bottom: 16px;
}
.form-field:focus { border-color: var(--primary); }

.phone-field {
  position: relative; margin-bottom: 16px;
}
.phone-input-box {
  display: flex; align-items: stretch;
  width: 100%; min-width: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: border-color .2s;
}
.phone-input-box:focus-within { border-color: var(--primary); }
.phone-field.is-invalid .phone-input-box { border-color: var(--destructive); }
.phone-field.is-country-picker-open .phone-input {
  pointer-events: none;
}
.phone-prefix {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 10px 14px 14px; margin: 0;
  border: none; border-right: 1px solid var(--border);
  background: transparent; cursor: pointer;
  line-height: 1; white-space: nowrap; color: inherit;
  font: inherit;
}
.phone-prefix:hover .phone-dial { color: var(--foreground); }
.phone-prefix__caret {
  font-size: 10px; color: var(--muted-foreground); margin-left: 2px;
}
.phone-country-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  width: min(320px, 100%);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  overflow: hidden; z-index: 20;
}
.phone-country-item--hidden {
  display: none !important;
}
.phone-country-search {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; border: none; border-bottom: 1px solid var(--border);
  background: var(--card); color: var(--foreground); font-size: 14px;
  outline: none;
}
.phone-country-list {
  max-height: 220px; overflow-y: auto; padding: 4px 0;
}
.phone-country-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 12px; border: none; background: transparent;
  color: var(--foreground); font-size: 14px; text-align: left;
  cursor: pointer;
}
.phone-country-item:hover,
.phone-country-item.is-active {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.phone-country-item__label { flex: 1; min-width: 0; }
.phone-country-item__dial {
  color: var(--muted-foreground); font-weight: 500; white-space: nowrap;
}
.phone-dial {
  color: var(--muted-foreground);
  font-size: 16px; font-weight: 500; letter-spacing: 0.02em;
}
.phone-input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  border: none; background: transparent;
  padding: 14px 16px; color: var(--foreground); font-size: 16px;
  outline: none;
}
.error { color: var(--destructive); font-size: 14px; margin-top: 8px; }
.link-btn { display: block; width: 100%; text-align: center; color: var(--muted-foreground); font-size: 14px; margin-top: 12px; padding: 8px; transition: color .2s; }
.link-btn:hover { color: var(--foreground); }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }