:root {
  --navy: #0c1e47;
  --blue-dark: #163780;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --amber: #f59e0b;
  --text: #111827;
  --muted: #4b5563;
  --line: #d1d5db;
  --error: #dc2626;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #fff; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  zoom: 1.1;
}

button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }

.register-layout {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.register-promo {
  position: relative;
  display: flex;
  width: 50%;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0c1e47 0%, #183778 48%, #2448a2 100%);
}

.promo-glow { position: absolute; border-radius: 999px; filter: blur(64px); pointer-events: none; }
.promo-glow-top { width: 24rem; height: 24rem; top: -12rem; right: -6rem; background: rgba(245, 158, 11, .12); }
.promo-glow-bottom { width: 20rem; height: 20rem; bottom: -10rem; left: -5rem; background: rgba(59, 130, 246, .25); }

.promo-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo-logo {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.promo-logo img { width: 36px; height: 36px; display: block; }
.promo-logo strong { color: #fff; }

.promo-copy { padding: 48px 0; }
.promo-copy h2 {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: clamp(40px, 3vw, 56px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
}

.promo-copy h2 span {
  display: block;
  color: #fbbf24;
  background: linear-gradient(90deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-copy > p {
  max-width: 510px;
  margin: 0 0 40px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.7;
}

.promo-list { max-width: 540px; margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.promo-list li { display: flex; align-items: flex-start; gap: 12px; color: #dbeafe; font-size: 14px; line-height: 1.65; }
.promo-list strong { color: #fff; }
.promo-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
}

.promo-icon svg { width: 16px; height: 16px; fill: none; stroke: #fbbf24; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.promo-review { margin: 0; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); max-width: 620px; }
.promo-review blockquote { margin: 0; color: #dbeafe; font-size: 14px; line-height: 1.6; font-style: italic; }
.promo-review figcaption { margin-top: 12px; display: flex; align-items: center; gap: 8px; color: #93c5fd; font-size: 12px; }
.promo-review figcaption strong { color: #dbeafe; }
.promo-review .review-stars { color: #fbbf24; letter-spacing: 1px; }

.register-main {
  width: 50%;
  min-height: 100vh;
  padding: 48px clamp(24px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.register-panel { width: 100%; max-width: 448px; }
.mobile-logo { display: none; }

.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.step { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.step-number {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #9ca3af;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 700;
  transition: .2s ease;
}

.step-label { min-width: 0; color: #9ca3af; font-size: 12px; font-weight: 600; }
.step-line { height: 2px; min-width: 14px; flex: 1; background: #e5e7eb; transition: .2s ease; }
.step.active .step-number, .step.done .step-number { color: #fff; background: var(--blue); }
.step.active .step-number { box-shadow: 0 0 0 4px #dbeafe; }
.step.active .step-label, .step.done .step-label { color: #111827; }
.step-line.done { background: var(--blue); }

.step-heading { margin-bottom: 32px; }
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.free-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.step-heading h1 { margin: 0; color: #111827; font-size: 30px; line-height: 1.2; letter-spacing: -.025em; font-weight: 800; }
.step-heading p { margin: 8px 0 0; color: #4b5563; font-size: 16px; line-height: 1.5; }
.step-heading p a { color: #1d4ed8; font-weight: 650; }

#register-form { display: block; }
.form-step { display: grid; gap: 20px; }
.form-step[hidden] { display: none; }
.field-group { min-width: 0; }
.field-group label, .password-label-row > label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: #374151;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.field-group label svg, .country-summary svg, .security-row svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #6b7280;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

input, select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: #111827;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-size: 16px;
  line-height: 24px;
  transition: border-color .15s, box-shadow .15s;
}

input::placeholder { color: #9ca3af; }
input:focus, select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px #dbeafe; }
input.invalid { border-color: var(--error); }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 44px; padding-left: 48px; appearance: none; cursor: pointer; }
.fr-flag {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 50%;
  width: 23px;
  height: 16px;
  display: flex;
  overflow: hidden;
  transform: translateY(-50%);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .14);
  pointer-events: none;
}
.fr-flag i { width: 33.333%; height: 100%; display: block; }
.fr-flag i:nth-child(1) { background: #002395; }
.fr-flag i:nth-child(2) { background: #fff; }
.fr-flag i:nth-child(3) { background: #ed2939; }
.phone-flag { width: 21px; height: 14px; display: flex; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgba(17, 24, 39, .14); }
.phone-flag i { width: 33.333%; height: 100%; display: block; }
.phone-flag i:nth-child(1) { background: #002395; }
.phone-flag i:nth-child(2) { background: #fff; }
.phone-flag i:nth-child(3) { background: #ed2939; }
.select-arrow { position: absolute; right: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #111827; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

.field-error { display: none; margin-top: 5px; color: var(--error); font-size: 14px; }
.field-error.visible { display: block; }
.field-group small { display: block; margin-top: 5px; color: #6b7280; font-size: 12px; line-height: 1.45; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone-field { display: flex; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.phone-field:focus-within { border-color: #3b82f6; box-shadow: 0 0 0 3px #dbeafe; }
.phone-prefix { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 0 11px; color: #374151; background: #f9fafb; border-right: 1px solid #e5e7eb; font-size: 14px; }
.phone-field input { min-width: 0; border: 0; border-radius: 0; box-shadow: none !important; }

.password-label-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.password-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 0; color: #4b5563; background: transparent; border: 0; cursor: pointer; font-size: 12px; }
.password-toggle:hover { color: #1d4ed8; }
.password-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.strength-bars { display: flex; gap: 4px; margin-top: 9px; }
.strength-bars i { height: 4px; flex: 1; border-radius: 999px; background: #e5e7eb; }
.password-strength[data-score="1"] .strength-bars i:nth-child(-n+1) { background: #ef4444; }
.password-strength[data-score="2"] .strength-bars i:nth-child(-n+2) { background: #f59e0b; }
.password-strength[data-score="3"] .strength-bars i:nth-child(-n+3) { background: #3b82f6; }
.password-strength[data-score="4"] .strength-bars i { background: #22c55e; }

.primary-button, .secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s, opacity .12s, background .12s;
}

.primary-button { flex: 1; color: #fff; border: 0; background: linear-gradient(100deg, #2563eb, #1e40af); box-shadow: 0 8px 24px rgba(37, 99, 235, .2); }
.secondary-button { color: #111827; background: #fff; border: 1px solid #d1d5db; }
.primary-button:hover { opacity: .94; }
.secondary-button:hover { background: #f9fafb; }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.primary-button:disabled { color: #fff; background: #cbd5e1; box-shadow: none; cursor: not-allowed; opacity: 1; transform: none; }
.primary-button svg, .secondary-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.full-button { width: 100%; }
.login-note { margin: 0; color: #4b5563; text-align: center; font-size: 14px; }
.login-note a { color: #1d4ed8; font-weight: 700; }
.form-actions { display: flex; align-items: center; gap: 12px; padding-top: 8px; }
.submit-error {
  margin: 0;
  padding: 11px 13px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}
.submit-error[hidden] { display: none; }
.primary-button.is-loading { cursor: wait; }

.question-progress { display: grid; gap: 8px; }
.question-progress > span { color: #64748b; font-size: 12px; font-weight: 600; }
.question-progress > span strong { color: #1d4ed8; }
.question-progress-track { width: 100%; height: 5px; overflow: hidden; border-radius: 999px; background: #e5e7eb; }
.question-progress-track i { display: block; width: 16.666%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #1d4ed8); transition: width .25s ease; }
.question-panel { min-width: 0; margin: 0; padding: 0; border: 0; }
.question-panel legend {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 750;
}
.question-panel legend > span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  margin-top: -3px;
  color: #fff;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px #dbeafe;
  font-size: 13px;
  line-height: 1;
}
.answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.answer-card {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 14px;
  color: #1f2937;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .06);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .15s;
}
.answer-card:hover { border-color: #93b4f8; box-shadow: 0 5px 16px rgba(37, 99, 235, .11); transform: translateY(-1px); }
.answer-card:has(input:checked) { color: #153d9c; border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 2px #dbeafe; }
.answer-card input {
  width: 21px;
  height: 21px;
  min-height: 21px;
  flex: 0 0 21px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 1.5px solid #94a3b8;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}
.answer-card input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.answer-card input:checked { border-color: #2563eb; box-shadow: inset 0 0 0 5px #fff; background: #2563eb; }
.answer-card > span { font-size: 13px; line-height: 1.4; font-weight: 600; }
.question-actions { margin-top: 2px; }
.country-summary { min-height: 41px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; color: #374151; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 8px; font-size: 14px; }
.country-summary > span { display: inline-flex; align-items: center; gap: 7px; }
.country-summary svg { stroke: #1d4ed8; }
.country-summary button { padding: 0; color: #1d4ed8; background: transparent; border: 0; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.security-row { padding-top: 36px; display: flex; align-items: center; justify-content: center; gap: 20px; color: #6b7280; font-size: 12px; }
.security-row span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.security-row img { width: 14px; height: 14px; object-fit: contain; }
.security-row svg { width: 14px; height: 14px; flex-basis: 14px; }

.register-footer {
  padding: 54px 0 28px;
  color: #d5def1;
  background: linear-gradient(115deg, #10295e, #213f8b);
}

.footer-container { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.15fr 1fr; gap: 70px; }
.register-footer a { color: inherit; text-decoration: none; }
.footer-brand { width: fit-content; display: inline-block; margin-bottom: 20px; color: #fff !important; }
.footer-brand .footer-logo { display: block; width: 201px; height: 36px; }
.footer-grid h3 { margin: 0 0 16px; color: #fff; text-transform: uppercase; letter-spacing: .5px; font-size: 11px; }
.footer-grid h4 { margin: 13px 0 8px; padding-top: 15px; color: #8fb4ff; border-top: 1px solid rgba(255,255,255,.12); text-transform: uppercase; letter-spacing: .4px; font-size: 9px; }
.footer-grid a { display: block; margin-bottom: 9px; font-size: 12px; }
.footer-grid a:hover { color: #fff; }
.footer-grid a strong { display: inline-flex; align-items: center; gap: 3px; }
.footer-grid p { margin: 0 0 13px; color: #c4d0e8; font-size: 12px; line-height: 1.58; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact span { display: flex; align-items: flex-start; gap: 7px; }
.footer-contact img { width: 15px; height: 15px; margin-top: 2px; }
.footer-arrow { width: 13px; height: 13px; }
.footer-column hr { margin: 15px 0; border: 0; border-top: 1px solid rgba(255,255,255,.12); }
.footer-countries { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 18px; }
.footer-bottom { margin-top: 44px; padding-top: 18px; color: #86a5de; border-top: 1px solid rgba(255,255,255,.12); font-size: 9px; }
.footer-bottom > div { display: flex; justify-content: space-between; gap: 20px; }
.footer-bottom > p { margin: 14px 0 0; line-height: 1.6; }
.footer-trust { display: flex; align-items: center; gap: 17px; }
.footer-trust > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.footer-trust img { width: 13px; height: 13px; }

@media (max-width: 1125px) {
  .register-promo { display: none; }
  .register-main { width: 100%; padding: 36px 24px 48px; align-items: flex-start; }
  .mobile-logo { display: inline-block; margin-bottom: 34px; }
  .mobile-logo img { display: block; width: 185px; height: auto; }
}

@media (max-width: 990px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
}

@media (max-width: 715px) {
  body { overflow-x: hidden; }
  .register-footer { padding-top: 67px; padding-bottom: 30px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 31px; }
  .footer-brand { margin-bottom: 25px; }
  .footer-brand .footer-logo { width: 201px; height: 36px; }
  .footer-grid p, .footer-grid a { font-size: 14px; line-height: 1.7; }
  .footer-grid h3 { margin-bottom: 20px; font-size: 14px; }
  .footer-grid h4 { margin-top: 21px; font-size: 11px; }
  .footer-grid a { margin-bottom: 10px; }
  .footer-contact { margin-top: 26px !important; }
  .footer-countries { column-gap: 43px; }
  .footer-bottom { margin-top: 44px; padding-top: 24px; font-size: 11px; }
  .footer-bottom > div { flex-direction: column; }
  .footer-trust { flex-wrap: wrap; gap: 8px 14px; }
  .footer-bottom > p { font-size: 11px; line-height: 1.65; }
}

@media (max-width: 572px) {
  .register-main { padding: 24px 20px 36px; }
  .mobile-logo { margin-bottom: 28px; }
  .mobile-logo img { width: 170px; }
  .steps { gap: 6px; margin-bottom: 28px; }
  .step { gap: 5px; }
  .step-number { width: 30px; height: 30px; flex-basis: 30px; }
  .step-label { font-size: 11px; }
  .step-heading { margin-bottom: 28px; }
  .step-heading h1 { font-size: 27px; }
  .free-badge { font-size: 10px; }
  .two-fields { grid-template-columns: 1fr; gap: 20px; }
  .security-row { gap: 10px; justify-content: space-between; }
  .security-row span { gap: 4px; font-size: 10px; }
  .form-actions .secondary-button { padding-left: 14px; padding-right: 14px; }
  .question-panel legend { gap: 10px; font-size: 17px; }
  .question-panel legend > span { width: 30px; height: 30px; flex-basis: 30px; }
  .answer-grid { grid-template-columns: 1fr; gap: 10px; }
  .answer-card { min-height: 66px; padding: 13px 14px; }
  .step-label { display: none; }
}

@media (max-height: 820px) and (min-width: 1126px) {
  .promo-inner { padding-top: 32px; padding-bottom: 32px; }
  .promo-copy { padding: 28px 0; }
  .promo-copy h2 { font-size: 40px; margin-bottom: 18px; }
  .promo-copy > p { margin-bottom: 24px; font-size: 16px; }
  .promo-list { gap: 10px; }
  .promo-review { padding-top: 20px; }
  .register-main { padding-top: 28px; padding-bottom: 28px; }
  .steps { margin-bottom: 24px; }
  .step-heading { margin-bottom: 24px; }
  .form-step { gap: 14px; }
  .security-row { padding-top: 24px; }
}
