:root {
  --ink: #102a43;
  --muted: #5b7083;
  --navy: #082f49;
  --navy-deep: #05263b;
  --blue: #087eaf;
  --blue-bright: #14b8d4;
  --aqua: #b8f1ef;
  --paper: #ffffff;
  --surface: #f5f9fb;
  --line: #d7e3e9;
  --danger: #b42318;
  --danger-bg: #fff2f0;
  --success: #087a68;
  --shadow: 0 24px 70px rgba(3, 34, 54, 0.16);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(20, 184, 212, 0.18), transparent 28rem),
    linear-gradient(135deg, #edf8fa 0%, #f7fafb 46%, #eef5f8 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.32;
  background-image: linear-gradient(rgba(8, 47, 73, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 47, 73, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a { color: var(--blue); }

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue), var(--navy));
  box-shadow: 0 10px 24px rgba(8, 126, 175, 0.24);
}

.brand-mark svg { width: 27px; fill: currentColor; }
.brand strong { display: block; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 0.73rem; }

.human-review-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  color: #31546a;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(8, 126, 175, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.human-review-badge span { color: var(--success); font-size: 0.65rem; }

.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding: 36px 0 54px;
}

.welcome-panel { padding: 12px 0; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.welcome-panel h1 {
  max-width: 620px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.8rem, 5vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.welcome-copy {
  max-width: 590px;
  margin: 28px 0 34px;
  color: #456176;
  font-size: 1.04rem;
  line-height: 1.72;
}

.process-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li { display: flex; gap: 15px; align-items: flex-start; }

.process-number {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid rgba(8, 126, 175, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.process-list strong { display: block; margin: 1px 0 4px; color: var(--navy); font-size: 0.95rem; }
.process-list small { display: block; color: var(--muted); font-size: 0.83rem; line-height: 1.5; }

.boundary-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 34px;
  padding: 17px 18px;
  color: #32566b;
  border: 1px solid rgba(8, 126, 175, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.boundary-note svg { flex: 0 0 22px; width: 22px; fill: var(--success); }
.boundary-note p { margin: 0; font-size: 0.8rem; line-height: 1.55; }

.form-card,
.state-card {
  border: 1px solid rgba(215, 227, 233, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.form-card { padding: clamp(28px, 4vw, 46px); }
.form-card-header { margin-bottom: 30px; }
.form-card-header h2,
.state-card h1 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.35rem); letter-spacing: -0.04em; }
.form-card-header > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }

.error-summary {
  display: flex;
  gap: 13px;
  margin: 0 0 26px;
  padding: 16px;
  color: #7a271a;
  border: 1px solid #f1b7ad;
  border-radius: 14px;
  background: var(--danger-bg);
}

.error-icon {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  color: white;
  font-weight: 900;
  border-radius: 50%;
  background: var(--danger);
}

.error-summary h3 { margin: 1px 0 3px; font-size: 0.92rem; }
.error-summary p { margin: 0; font-size: 0.8rem; }
.error-summary ul { margin: 8px 0 0; padding-left: 18px; font-size: 0.8rem; }
.error-summary a { color: inherit; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px 18px;
}

.form-field--wide { grid-column: 1 / -1; }

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #223f54;
  font-size: 0.79rem;
  font-weight: 750;
}

.required-mark { color: var(--blue); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  border: 1px solid #c9d8e0;
  border-radius: 11px;
  outline: none;
  background: #fbfdfe;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.form-field textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.form-field select { cursor: pointer; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #91a3af; }

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: #9bb7c5; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(8, 126, 175, 0.11);
}

.form-field--error input,
.form-field--error select,
.form-field--error textarea { border-color: var(--danger); }

.help-text { margin: 6px 2px 0; color: #708494; font-size: 0.72rem; line-height: 1.4; }
.field-errors { margin: 6px 0 0; padding: 0; color: var(--danger); font-size: 0.74rem; list-style: none; }

.form-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e4ecef;
}

.form-actions p { max-width: 220px; margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }

button,
.secondary-action {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 0 22px;
  color: white;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), #05648d);
  box-shadow: 0 10px 22px rgba(8, 126, 175, 0.22);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

button:hover,
.secondary-action:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(8, 126, 175, 0.28); }
button:focus-visible,
.secondary-action:focus-visible,
.brand:focus-visible { outline: 3px solid rgba(20, 184, 212, 0.45); outline-offset: 3px; }

.site-footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 0 30px;
  color: #6e8391;
  font-size: 0.7rem;
  border-top: 1px solid rgba(8, 47, 73, 0.09);
}

.site-footer p { margin: 0; }

.state-layout { display: grid; min-height: calc(100vh - 190px); padding: 48px 0 80px; place-items: center; }
.state-card { width: min(610px, 100%); padding: clamp(34px, 6vw, 58px); text-align: center; }
.state-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 24px; place-items: center; color: var(--blue); font-size: 1.35rem; font-weight: 900; border-radius: 18px; background: #e3f6fa; }
.state-icon--success { color: var(--success); background: #e4f7f2; }
.state-icon--muted { color: #6b7d89; background: #edf2f4; }
.state-message { margin: 16px auto 25px; color: var(--muted); line-height: 1.65; }

.status-details { margin: 28px 0; text-align: left; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.status-details div { display: grid; grid-template-columns: 120px minmax(0, 1fr); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.status-details div:last-child { border-bottom: 0; }
.status-details dt { color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.status-details dd { min-width: 0; margin: 0; color: var(--ink); font-size: 0.82rem; overflow-wrap: anywhere; }
.status-details code { font-size: 0.75rem; }
.status-pill { display: inline-flex; padding: 4px 9px; color: var(--success); font-weight: 800; border-radius: 999px; background: #e4f7f2; }

.privacy-callout { padding: 15px 17px; color: #476275; font-size: 0.78rem; line-height: 1.55; border-radius: 13px; background: var(--surface); }
.confirmation-form { margin-top: 24px; }
.secondary-action { margin-top: 4px; }

@media (max-width: 900px) {
  .registration-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 18px; }
  .welcome-panel { max-width: 680px; }
  .welcome-panel h1 br { display: none; }
  .process-list { grid-template-columns: repeat(3, 1fr); }
  .process-list li { display: block; }
  .process-number { margin-bottom: 10px; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 78px; }
  .brand small,
  .human-review-badge { display: none; }
  .registration-layout { padding-bottom: 34px; }
  .welcome-panel h1 { font-size: 2.55rem; }
  .welcome-copy { margin: 22px 0 28px; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { display: flex; }
  .process-number { margin-bottom: 0; }
  .boundary-note { display: none; }
  .form-card { padding: 27px 20px; border-radius: 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field { grid-column: 1; }
  .form-actions { display: grid; }
  .form-actions p { max-width: none; }
  .form-actions button { width: 100%; }
  .site-footer { display: block; line-height: 1.6; }
  .site-footer p + p { margin-top: 6px; }
  .state-layout { min-height: calc(100vh - 150px); padding: 28px 0 50px; }
  .state-card { padding: 34px 22px; border-radius: 21px; }
  .status-details div { grid-template-columns: 1fr; gap: 5px; }
}

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