:root {
  --navy: #082e5c;
  --navy-dark: #031a36;
  --navy-soft: #174d83;
  --orange: #f49a17;
  --orange-dark: #d97d00;
  --cream: #0b3768;
  --cream-2: #0e447d;
  --white: #ffffff;
  --ink: #f7fbff;
  --muted: #c6d5e5;
  --line: rgba(255, 255, 255, 0.18);
  --field-bg: #e9f2fb;
  --field-ink: #0a2f59;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.13);
  --danger: #ffb4ab;
  --success: #64dfc7;
  --shadow: 0 24px 70px rgba(1, 18, 38, 0.45);
  --soft-shadow: 0 14px 34px rgba(1, 18, 38, 0.28);
  --radius: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(244, 154, 23, 0.22), transparent 32%),
    linear-gradient(145deg, #02172f 0%, var(--navy-dark) 42%, var(--navy) 100%);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 4px solid rgba(244, 154, 23, 0.32);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.form-app {
  position: relative;
  width: min(100%, 760px);
  min-height: min(900px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 76% 0%, rgba(244, 154, 23, 0.16), transparent 30%),
    linear-gradient(155deg, #10477f 0%, var(--navy) 54%, var(--navy-dark) 100%);
  box-shadow: var(--shadow);
}

.form-app::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 32px 0;
}

.brand-logo {
  width: 250px;
  max-width: 48%;
  height: 78px;
  object-fit: contain;
  object-position: left center;
  border-radius: 12px;
  background: transparent;
}

.progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-track {
  flex: 1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  transition: width 0.35s ease;
}

.progress-text {
  min-width: 42px;
  color: #f4a62f;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.screen {
  min-height: 735px;
  padding: 46px 46px 38px;
  animation: screen-in 0.34s ease both;
}

.screen.active {
  display: block;
}

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

.hero-mark,
.question-icon,
.success-check,
.blocked-icon {
  display: grid;
  place-items: center;
  margin: 4px auto 28px;
  color: var(--orange);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--soft-shadow);
}

.hero-mark {
  width: 138px;
  height: 138px;
  border-radius: 36px;
}

.hero-mark svg {
  width: 76px;
  height: 76px;
}

.question-icon {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  color: var(--orange);
}

.question-icon svg {
  width: 72px;
  height: 72px;
}

.eyebrow,
.step-label {
  display: table;
  margin: 0 auto 22px;
  padding: 10px 18px;
  border: 2px solid rgba(244, 154, 23, 0.8);
  border-radius: 999px;
  color: #f6fbff;
  font-size: 0.87rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.step-label {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--orange-dark);
}

.eyebrow-left {
  margin-left: 0;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  max-width: 620px;
  margin-inline: auto;
  font-size: clamp(2.55rem, 6vw, 4.8rem);
  text-align: center;
}

h2 {
  max-width: 660px;
  margin-inline: auto;
  font-size: clamp(2rem, 4.5vw, 3.45rem);
  text-align: center;
}

.lead,
.question-help,
.result-copy {
  color: var(--muted);
  line-height: 1.58;
}

.lead {
  max-width: 590px;
  margin: 25px auto 28px;
  font-size: 1.16rem;
  text-align: center;
}

.question-help {
  max-width: 620px;
  margin: 15px auto 32px;
  font-size: 1.06rem;
  text-align: center;
}

.question-help-left {
  margin-left: 0;
  text-align: left;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px 22px;
  margin: 0 auto 31px;
  color: #edf6ff;
  font-size: 0.96rem;
  font-weight: 600;
}

.primary-button,
.secondary-button,
.outline-button,
.dark-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 17px 24px;
  border-radius: 18px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-button {
  border: 0;
  color: var(--white);
  background: linear-gradient(105deg, var(--orange), var(--orange-dark));
  box-shadow: 0 16px 32px rgba(217, 125, 0, 0.24);
}

.primary-button:hover,
.secondary-button:hover,
.outline-button:hover,
.dark-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.service-line {
  margin: 28px 0 0;
  color: #f4a62f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.options {
  display: grid;
  gap: 16px;
}

.option-button {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 82px;
  padding: 18px 24px;
  border: 2px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(1, 18, 38, 0.18);
  font-size: 1.08rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.option-button:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 154, 23, 0.72);
  background: var(--surface-hover);
  box-shadow: 0 14px 34px rgba(1, 18, 38, 0.24);
}

.option-button.selected {
  border-color: var(--orange);
  background: rgba(244, 154, 23, 0.18);
}

.radio-dot {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(4, 31, 64, 0.55);
  box-shadow: inset 0 0 0 6px rgba(4, 31, 64, 0.55);
}

.option-button.selected .radio-dot {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: inset 0 0 0 6px var(--orange);
}

.back-button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-top: 24px;
  border: 2px solid var(--line);
  border-radius: 17px;
  color: var(--white);
  background: var(--surface);
  font-size: 1.7rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.back-button:hover {
  transform: translateX(-3px);
  border-color: var(--orange);
}

.text-screen h2 {
  margin-left: 0;
  text-align: left;
}

.text-screen form {
  margin-top: 34px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: #f6a62f;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-input {
  width: 100%;
  min-height: 72px;
  padding: 17px 20px;
  border: 2px solid rgba(167, 196, 224, 0.78);
  border-radius: 18px;
  color: var(--field-ink);
  background: var(--field-bg);
  box-shadow: 0 10px 28px rgba(1, 18, 38, 0.18);
  font-size: 1.08rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input::placeholder {
  color: #7892aa;
}

.text-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 5px rgba(244, 154, 23, 0.12);
}

.text-input.invalid {
  border-color: var(--danger);
}

.text-screen .primary-button {
  margin-top: 22px;
}

.field-note,
.privacy-copy {
  color: var(--muted);
  line-height: 1.5;
}

.field-note {
  margin: 10px 4px 0;
  font-size: 0.87rem;
}

.privacy-copy {
  margin: 18px auto 0;
  max-width: 580px;
  font-size: 0.82rem;
  text-align: center;
}

.field-error {
  min-height: 22px;
  margin: 7px 4px 0;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 700;
}

.result-screen {
  padding-top: 56px;
  text-align: center;
}

.success-check,
.blocked-icon {
  width: 132px;
  height: 132px;
  border: 4px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font-size: 4rem;
  font-weight: 700;
  box-shadow: 0 20px 44px rgba(1, 18, 38, 0.28);
}

.success-check {
  color: var(--success);
}

.blocked-icon {
  color: var(--orange-dark);
  font-family: Georgia, serif;
  font-style: italic;
}

.result-copy {
  max-width: 610px;
  margin: 22px auto 30px;
  font-size: 1.08rem;
  text-align: center;
}

.result-actions {
  display: grid;
  gap: 13px;
  max-width: 600px;
  margin: 0 auto;
}

.outline-button {
  border: 2px solid var(--success);
  color: #073d39;
  background: #dcfff8;
}

.secondary-button {
  border: 2px solid var(--orange);
  color: var(--white);
  background: rgba(244, 154, 23, 0.14);
}

.dark-button {
  border: 0;
  color: var(--white);
  background: #021b38;
}

.toast {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 10;
  padding: 14px 18px;
  border-radius: 14px;
  color: var(--white);
  background: #021b38;
  box-shadow: var(--soft-shadow);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  body {
    background:
      radial-gradient(circle at 18% 0%, rgba(244, 154, 23, 0.18), transparent 34%),
      linear-gradient(160deg, #10477f 0%, var(--navy) 58%, var(--navy-dark) 100%);
  }

  .page-shell {
    display: block;
    padding: 0;
  }

  .form-app {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .form-app::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}

.app-header {
    gap: 14px;
    padding: calc(16px + env(safe-area-inset-top)) 20px 0;
  }

  .brand-logo {
    width: 190px;
    max-width: 53%;
    height: 64px;
    border-radius: 13px;
  }

  .progress-wrap {
    gap: 7px;
  }

  .progress-text {
    display: none;
  }

  .screen {
    min-height: calc(100dvh - 82px);
    padding: 34px 20px calc(28px + env(safe-area-inset-bottom));
  }

  .hero-mark {
    width: 116px;
    height: 116px;
    margin-bottom: 22px;
  }

  .hero-mark svg {
    width: 64px;
    height: 64px;
  }

  .question-icon {
    width: 104px;
    height: 104px;
    margin-bottom: 22px;
  }

  .question-icon svg {
    width: 61px;
    height: 61px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .lead,
  .question-help,
  .result-copy {
    font-size: 1rem;
  }

  .eyebrow,
  .step-label {
    font-size: 0.76rem;
    letter-spacing: 0.11em;
  }

  .benefits {
    gap: 10px 14px;
    font-size: 0.86rem;
  }

  .option-button {
    min-height: 76px;
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 1rem;
  }

  .radio-dot {
    width: 27px;
    height: 27px;
  }

  .primary-button,
  .secondary-button,
  .outline-button,
  .dark-button {
    min-height: 64px;
    border-radius: 17px;
  }

  .success-check,
  .blocked-icon {
    width: 112px;
    height: 112px;
    font-size: 3.4rem;
  }
}

@media (max-width: 430px) {
  .form-app::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}

.app-header {
    align-items: center;
  }

  .brand-logo {
    width: 172px;
    height: 58px;
  }

  .screen {
    padding-inline: 17px;
  }

  .option-button {
    gap: 14px;
    padding-inline: 16px;
  }

  .service-line {
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
