:root {
  --navy: #1B3A6B;
  --navy-dark: #0f2040;
  --blue: #2E75B6;
  --green: #5DBB46;
  --light-bg: #eaf6ff;
  --medium-bg: #cde7ff;
  --dark-text: #202124;
  --gray-text: #6b6b6b;
  --border: #dbe3ee;
  --white: #fff;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-weight-heading: 700;
  --font-weight-display: 800;
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: -0.01em;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(27, 58, 107, 0.12);
  --transition: 0.2s ease;
  --max-width: 1200px;
  --section-pad: 112px 24px;
  --section-pad-sm: 64px 24px;
  --card-pad: 36px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body { font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; }
input, select, textarea, button, a { font-family: inherit; }
* { font-family: inherit; }
body { font-family: var(--font-body); }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--dark-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--blue);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(46, 117, 182, 0.35);
  outline-offset: 2px;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
}

.section-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-eyebrow,
.eyebrow {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 16px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--letter-spacing-tight);
}

.section-heading--light {
  color: var(--white);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--gray-text);
  font-size: 18px;
}

.section-header .section-intro {
  margin-right: auto;
  margin-left: auto;
}

.section-intro--light {
  color: rgba(255, 255, 255, 0.82);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn:hover,
.btn:focus-visible {
  color: var(--white);
  transform: translateY(-1px);
}

.btn-blue {
  background: var(--navy);
  color: var(--white);
}

.btn-blue:hover,
.btn-blue:focus-visible {
  background: var(--blue);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover,
.btn-green:focus-visible {
  background: #4ea73a;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  background: transparent;
  color: var(--white);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--green);
  background: var(--green);
}

.btn-sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 50px;
  padding: 16px 36px;
  font-size: 16px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  background: transparent;
  color: white;
  font-size: 15px;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: white;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  opacity: 1;
}

.text-link-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.text-link-light:hover,
.text-link-light:focus-visible {
  color: white;
  text-decoration: none;
}

.btn-full {
  width: 100%;
}

.req {
  color: var(--green);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.ap3-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label,
fieldset legend {
  margin: 0;
  color: var(--dark-text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

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

fieldset legend {
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  color: var(--dark-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.1);
  outline: 0;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--dark-text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.checkbox-label input {
  flex: 0 0 auto;
  width: auto;
  margin-top: 4px;
  accent-color: var(--navy);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 9px 16px;
}

.form-status {
  min-height: 1.4em;
  color: var(--gray-text);
  font-size: 0.9rem;
}

.form-status.success {
  color: #2f8a26;
}

.form-status.error {
  color: #b3261e;
}

.form-footnote {
  margin: 0;
  color: var(--gray-text);
  font-size: 0.78rem;
  line-height: 1.4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 540px) {
  :root {
    --section-pad: 56px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 36px;
  }
}