:root {
  --font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --navy: #004b70;
  --navy-dark: #00364f;
  --blue: #006b9f;
  --cyan: #43b4d7;
  --bg: #f2f6f8;
  --bg2: #eaf1f4;
  --text: #405864;
  --header: #00364f;
  --muted: #647783;
  --border: #cbd9e0;
  --focus: #006b9f;
  --success: #117a55;
  --error: #c9263d;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(67,180,215,.12), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(0,107,159,.09), transparent 31%),
    linear-gradient(145deg, #f8fafb 0%, var(--bg) 48%, var(--bg2) 100%);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,75,112,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,75,112,.025) 1px, transparent 1px);
  background-size: 44px 44px;
}
button, input, summary { -webkit-tap-highlight-color: transparent; }
.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(28px + var(--safe-top)) calc(16px + var(--safe-right)) calc(28px + var(--safe-bottom)) calc(16px + var(--safe-left));
}
.card {
  position: relative;
  width: min(100%, 660px);
  padding: 38px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(248,252,253,.72), rgba(255,255,255,0) 130px), #fff;
  border: 1px solid #dce6eb;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,54,79,.10), 0 8px 24px rgba(0,54,79,.07);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--navy-dark), var(--navy) 45%, var(--cyan));
}
.form-header { padding-bottom: 24px; border-bottom: 1px solid #e2eaee; }
.brand-logo { display: block; width: 128px; max-width: 42vw; height: auto; margin: 0 0 20px; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0; color: var(--header); font-size: clamp(26px, 6vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
h1::after { content: ""; display: block; width: 54px; height: 4px; margin-top: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--navy), var(--cyan)); }
.intro { max-width: 580px; margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.inputs-wrapper { display: grid; gap: 20px; padding: 28px 0; }
.form-group { min-width: 0; }
.form-group label, .form-required { display: block; padding-bottom: 7px; color: #243d4a; font-size: 14px; font-weight: 650; }
.form-required::after { content: "*"; margin-left: 4px; color: var(--error); }
.form-input {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: #213844;
  caret-color: var(--focus);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-input:focus, .form-input:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 4px rgba(0,107,159,.12); }
.form-input::placeholder { color: #8a9ca5; opacity: 1; }
.policy-summary { overflow: hidden; color: #4b6570; background: #f5fafc; border: 1px solid #d8e8ee; border-left: 4px solid var(--blue); border-radius: 9px; font-size: 13px; }
.policy-summary summary { padding: 14px 15px; color: var(--header); font-weight: 700; cursor: pointer; list-style-position: inside; }
.policy-summary[open] summary { border-bottom: 1px solid #d8e8ee; }
.policy-content { padding: 2px 15px 13px; }
.policy-content p { margin: 12px 0 0; }
.check-row { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 11px; align-items: start; color: #3d5561; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check-row strong { color: var(--navy-dark); }
.check-row input { appearance: none; position: relative; width: 20px; height: 20px; margin: 1px 0 0; background: #fff; border: 1px solid #aebfc7; border-radius: 5px; cursor: pointer; }
.check-row input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(0,107,159,.12); }
.check-row input:checked { background: linear-gradient(135deg, var(--blue), var(--navy)); border-color: var(--navy); }
.check-row input:checked::after { content: ""; position: absolute; top: 50%; left: 50%; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%,-58%) rotate(45deg); }
#submit-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 54px; padding: 0 20px; color: #fff; background: linear-gradient(115deg, var(--navy-dark), var(--navy) 58%, var(--blue)); border: 1px solid var(--navy-dark); border-radius: 10px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 12px 24px rgba(0,75,112,.20); }
#submit-button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0,107,159,.18), 0 12px 24px rgba(0,75,112,.20); }
#submit-button:disabled { cursor: wait; opacity: .76; }
.button-spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin 800ms linear infinite; }
#submit-button.is-loading .button-spinner { display: block; }
.message { min-height: 22px; margin: 14px 0 0; font-size: 14px; line-height: 1.45; }
.message.success, .message.error { padding: 10px 12px; border-radius: 8px; }
.message.success { color: #0f6849; background: #edf8f3; border: 1px solid #c8e8d9; }
.message.error { color: #a6182e; background: #fff1f3; border: 1px solid #f2c1c9; }
.security-note { margin: 18px 0 0; padding-top: 16px; color: #6c7f88; border-top: 1px solid #e3ebef; font-size: 12px; line-height: 1.5; text-align: center; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.success-card { text-align: center; }
.success-card .brand-logo, .success-card .intro { margin-right: auto; margin-left: auto; }
.success-card h1::after { margin-right: auto; margin-left: auto; }
.success-eyebrow { color: var(--success); }
.success-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 10px auto 20px; color: #fff; background: linear-gradient(135deg, #15976b, #117a55); border-radius: 50%; font-size: 27px; font-weight: 700; box-shadow: 0 12px 24px rgba(17,122,85,.22); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .page-shell { place-items: start center; padding-top: calc(12px + var(--safe-top)); padding-right: calc(10px + var(--safe-right)); padding-bottom: calc(18px + var(--safe-bottom)); padding-left: calc(10px + var(--safe-left)); }
  .card { padding: 24px 20px; border-radius: 14px; }
  .brand-logo { width: 104px; margin-bottom: 16px; }
  .form-header { padding-bottom: 20px; }
  h1 { font-size: 26px; }
  .intro { font-size: 13px; }
  .inputs-wrapper { gap: 18px; padding: 24px 0; }
  .form-input { min-height: 50px; font-size: 16px; }
  #submit-button { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
