:root {
  --navy: #071634;
  --navy-soft: #102044;
  --gold: #c89835;
  --gold-light: #f1cf81;
  --lime: #c1ef00;
  --line: #ccd2dc;
  --muted: #6d7484;
  --white: #ffffff;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background: #eaf5ff;
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-height);
  padding: 10px clamp(24px, 5vw, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(7, 22, 52, 0.04);
}

.brand {
  display: block;
  width: 66px;
  height: 52px;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(38px, 5vw, 78px);
}

.site-nav a {
  color: #070f25;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #8d6519;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 3px;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  isolation: isolate;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero-desktop.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0 27%, rgba(239, 248, 255, 0.1) 33%, rgba(239, 248, 255, 0.2) 55%, transparent 75%);
}

.hero-layout {
  width: min(100%, 1780px);
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: 34px clamp(32px, 4vw, 76px) 42px;
  display: grid;
  grid-template-columns: minmax(570px, 1.55fr) minmax(500px, 0.94fr);
  align-items: center;
  gap: clamp(26px, 2.5vw, 52px);
}

.hero-copy {
  width: min(535px, 52%);
  margin-left: auto;
  padding-bottom: 11vh;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.38);
}

.eyebrow {
  display: none;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(44px, 3.45vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-intro {
  margin: 0;
  max-width: 520px;
  font-size: clamp(20px, 1.55vw, 28px);
  line-height: 1.48;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.gold-rule {
  width: 64px;
  height: 4px;
  margin: 22px 0 10px 26px;
  background: linear-gradient(90deg, #e6b550, #a9781f);
}

.risk-note {
  margin: 0 0 0 26px;
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
}

.form-wrap {
  width: 100%;
  max-width: 600px;
  justify-self: end;
}

.info-card {
  position: relative;
  padding: clamp(26px, 2vw, 34px) clamp(28px, 2.2vw, 40px) 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 68px rgba(41, 82, 121, 0.12);
  backdrop-filter: blur(13px);
}

.info-card h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 2.1vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.steps {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 19px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #747b89;
  font-size: 14px;
  white-space: nowrap;
}

.step span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 2px solid #c8ced8;
  border-radius: 50%;
  font-weight: 700;
}

.step.is-active {
  color: var(--navy);
}

.step.is-active span {
  color: white;
  border-color: var(--gold);
  background: var(--gold);
}

.progress-track {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  overflow: hidden;
  border-radius: 10px;
  background: #d9dde5;
}

.progress-fill {
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d9ad55, #be8a29);
  transition: width 300ms ease;
}

.form-step,
.success-state {
  display: none;
}

.form-step.is-active,
.success-state.is-active {
  display: block;
  animation: enter 260ms ease both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

fieldset {
  min-width: 0;
  margin: 0 0 23px;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

legend > span {
  margin-right: 7px;
}

.choice {
  min-height: 42px;
  margin-bottom: 8px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid #cbd0d9;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice:hover {
  border-color: #ad872f;
  background: rgba(255, 250, 236, 0.72);
}

.choice:has(input:checked) {
  border-color: #b17e22;
  background: #fffaf0;
  box-shadow: 0 0 0 2px rgba(200, 152, 53, 0.12);
}

.choice input {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin: 0;
  accent-color: #b68227;
}

.choice span {
  font-size: 15px;
  font-weight: 500;
}

.primary-button,
.secondary-button {
  min-height: 58px;
  border-radius: 15px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-button {
  width: 100%;
  color: var(--navy);
  border: 0;
  background: linear-gradient(110deg, #e8c476 0%, #f3d898 34%, #b98428 100%);
  box-shadow: 0 8px 18px rgba(164, 113, 24, 0.12);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: wait;
  filter: grayscale(0.2);
  opacity: 0.72;
  transform: none;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-message {
  display: none;
  margin: -10px 0 16px;
  padding: 10px 12px;
  color: #8a351e;
  border: 1px solid #efb39f;
  border-radius: 9px;
  background: #fff4f0;
  font-size: 13px;
  font-weight: 700;
}

.form-message.is-visible {
  display: block;
}

.field {
  margin-bottom: 15px;
  display: block;
}

.field > span {
  margin: 0 0 7px 2px;
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.field em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  color: var(--navy);
  border: 1px solid #cbd0d9;
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  border-color: #ad7a21;
  box-shadow: 0 0 0 3px rgba(200, 152, 53, 0.15);
}

.field input.is-invalid {
  border-color: #b44c31;
}

.consent {
  margin: 2px 0 22px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #b68227;
}

.button-row {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 12px;
}

.secondary-button {
  padding: 0 20px;
  color: var(--navy);
  border: 1px solid #b9c0cc;
  background: rgba(255, 255, 255, 0.72);
}

.success-state {
  padding: 38px 10px 24px;
  text-align: center;
}

.success-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9ad55, #a5721e);
  font-size: 34px;
  font-weight: 800;
}

.success-state h3 {
  margin: 0 0 8px;
  font-size: 32px;
}

.success-state p {
  margin: 0 auto 24px;
  max-width: 380px;
  color: #515a6c;
}

@media (max-width: 1320px) {
  .hero-layout {
    grid-template-columns: minmax(520px, 1.35fr) minmax(470px, 0.92fr);
    padding-inline: 26px;
  }

  .hero-copy {
    width: 52%;
    padding-bottom: 4vh;
  }

  h1 {
    font-size: clamp(40px, 3.6vw, 52px);
  }

  .hero-intro {
    font-size: 20px;
  }

  .info-card {
    padding: 25px 28px 28px;
  }

  .info-card h2 {
    font-size: 33px;
  }

  .choice {
    min-height: 39px;
    padding-block: 6px;
  }
}

@media (max-width: 1050px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    padding-inline: 22px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    width: min(280px, calc(100vw - 32px));
    padding: 10px;
    display: grid;
    gap: 2px;
    visibility: hidden;
    opacity: 0;
    border: 1px solid rgba(7, 22, 52, 0.08);
    border-radius: 15px;
    background: white;
    box-shadow: 0 18px 44px rgba(7, 22, 52, 0.14);
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 16px;
  }

  .site-nav a:hover {
    background: #f5f8fb;
  }

  .hero {
    overflow: visible;
    background: #eaf5ff;
  }

  .hero-background {
    inset: 0 0 auto;
    height: min(780px, 145vw);
    background-image: url("assets/hero-mobile.png");
    background-position: top center;
    background-size: 100% auto;
    background-repeat: no-repeat;
  }

  .hero::after {
    height: min(800px, 150vw);
    background: linear-gradient(180deg, rgba(237, 247, 255, 0.62) 0, transparent 20%, transparent 65%, #eaf5ff 96%);
  }

  .hero-layout {
    min-height: 0;
    padding: 24px 20px 46px;
    display: block;
  }

  .hero-copy {
    width: min(560px, 100%);
    min-height: clamp(500px, 105vw, 670px);
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }

  .eyebrow {
    margin: 0 0 5px;
    display: block;
    color: #8a651f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(33px, 8vw, 48px);
    line-height: 1.08;
  }

  .hero-intro {
    display: none;
  }

  .gold-rule,
  .risk-note {
    display: none;
  }

  .form-wrap {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 8px 15px;
  }

  .brand {
    width: 57px;
    height: 46px;
  }

  .hero-layout {
    padding: 19px 12px 32px;
  }

  .hero-copy {
    min-height: clamp(415px, 116vw, 530px);
  }

  .info-card {
    padding: 23px 16px 22px;
    border-radius: 21px;
  }

  .info-card h2 {
    margin-bottom: 16px;
    font-size: 28px;
    text-align: center;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .step {
    gap: 8px;
    font-size: 11px;
  }

  .step span {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    font-size: 12px;
  }

  legend {
    font-size: 15px;
  }

  .choice {
    min-height: 44px;
    padding: 8px 12px;
    gap: 12px;
  }

  .choice span {
    font-size: 14px;
  }

  .primary-button,
  .secondary-button {
    min-height: 52px;
    border-radius: 12px;
    font-size: 17px;
  }
}

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