:root {
  color-scheme: light;
  --navy: #102c53;
  --navy-light: #1e477a;
  --red: #b32025;
  --gold: #d5a63c;
  --ink: #172033;
  --muted: #5d6878;
  --line: #d7dce4;
  --surface: #ffffff;
  --background: #f3f5f8;
  --warning: #fff5d6;
  --warning-border: #d7a82f;
  --error: #a61920;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.hero {
  padding: 36px clamp(24px, 5vw, 56px);
  border-top: 7px solid var(--red);
  background: var(--navy);
  color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: #dbe8f7;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.intro {
  max-width: 720px;
  margin-bottom: 0;
  color: #e8eef6;
}

.form-warning {
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid var(--warning-border);
  border-left: 6px solid var(--warning-border);
  background: var(--warning);
}

.form-warning h2 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.form-warning p:last-of-type {
  margin-bottom: 16px;
}

code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 44, 83, 0.09);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

form {
  display: grid;
  gap: 24px;
}

.form-section,
.submission-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(16, 44, 83, 0.06);
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
}

.section-heading > span {
  display: grid;
  flex: 0 0 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.section-heading h2,
.submission-panel h2 {
  margin-bottom: 3px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.field-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.address-columns {
  grid-template-columns: 1.5fr 1fr 0.8fr;
}

label,
legend {
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea,
button {
  font: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #aab3c0;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(30, 71, 122, 0.25);
  outline-offset: 2px;
  border-color: var(--navy-light);
}

textarea {
  resize: vertical;
}

.required,
.field-error {
  color: var(--error);
}

.help-text {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
}

.choice-group {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
}

.choice-group legend {
  padding: 0 7px;
}

.choice-group > .help-text {
  margin: 0 0 12px;
}

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

.choice-grid label,
.inline-choices label,
.standalone-checkbox label,
.confirmation {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-weight: 500;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--navy-light);
}

.compact-choice-group {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1fr;
  align-items: center;
}

.inline-choices {
  display: flex;
  gap: 28px;
}

.standalone-checkbox {
  display: flex;
  align-items: center;
  padding-top: 28px;
}

.field-error {
  margin: 10px 0 0;
  font-weight: 700;
}

.submission-panel {
  border-top: 5px solid var(--gold);
}

.confirmation {
  margin: 18px 0;
}

.consent-explainer {
  margin-bottom: 8px;
  color: var(--muted);
}

.confirmation a {
  color: var(--navy-light);
}

.recaptcha-container {
  margin: 22px 0;
}

.recaptcha-label {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
}

.submission-success {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 44, 83, 0.72);
}

.submission-success-card {
  width: min(500px, 100%);
  padding: 34px;
  border-top: 6px solid var(--gold);
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.submission-success-card h2 {
  margin-bottom: 8px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
}

.submission-success-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.submission-success-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
}

.primary-button,
.secondary-button {
  cursor: pointer;
  border: 0;
  border-radius: 4px;
  font-weight: 800;
}

.primary-button {
  padding: 13px 22px;
  background: var(--red);
  color: #fff;
}

.primary-button:hover {
  background: #8f171b;
}

.primary-button:disabled {
  cursor: not-allowed;
  background: #858c96;
}

.secondary-button {
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
}

.secondary-button:hover {
  background: var(--navy-light);
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 960px);
    margin-top: 10px;
  }

  .two-columns,
  .three-columns,
  .address-columns,
  .choice-grid,
  .compact-choice-group {
    grid-template-columns: 1fr;
  }

  .inline-choices {
    margin-top: 10px;
  }
}