:root {
  --family-blue: #0b3157;
  --family-blue-light: #eaf2f8;
  --family-gold: #f2bd28;
  --family-shadow: 0 18px 45px rgba(7, 29, 54, 0.10);
}

/* National AMVETS Riders officer training request */
.officer-training-callout {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 6px solid var(--gold);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 42px;
  margin: 0 0 28px;
  padding: 30px 34px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.officer-training-callout h3 {
  color: var(--navy);
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.officer-training-callout p:not(.eyebrow) {
  color: var(--muted);
  max-width: 720px;
  margin: 14px 0 0;
  line-height: 1.7;
}

.heart-request-button {
  position: relative;
  width: 280px;
  height: 245px;
  justify-self: center;
  display: grid;
  place-items: center;
  color: var(--white);
  text-decoration: none;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.heart-request-button svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 14px 18px rgba(7, 29, 54, 0.28));
  transition: transform 160ms ease, filter 160ms ease;
}

.heart-request-button span {
  position: relative;
  z-index: 1;
  width: 165px;
  margin-top: -22px;
  font-size: 1.05rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.heart-request-button:hover svg,
.heart-request-button:focus-visible svg {
  transform: translateY(-4px) scale(1.025);
  filter: drop-shadow(0 18px 22px rgba(7, 29, 54, 0.35));
}

.heart-request-button:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 5px;
  border-radius: 45%;
}

.officer-request-page .form-hero {
  border-bottom: 6px solid var(--gold);
}

.officer-request-page .form-hero-grid img {
  background: var(--white);
}

.request-form textarea {
  background: var(--white);
  width: 100%;
  min-height: 112px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #b9c2ce;
  border-radius: 3px;
  padding: 11px 12px;
  font-size: 0.94rem;
}

.request-form textarea:focus {
  border-color: var(--red);
  outline: 3px solid rgba(200, 22, 43, 0.14);
}

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

.support-question {
  border: 1px solid var(--line);
  background: #f8f9fb;
  border-radius: 4px;
  padding: 22px;
}

.support-question legend {
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.45;
  padding: 0 4px;
}

.support-options {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.support-options label {
  cursor: pointer;
}

.support-options input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.support-options span {
  min-height: 46px;
  background: var(--white);
  border: 1px solid #cbd2dc;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.88rem;
}

.support-options span::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #9aa7b6;
  border-radius: 50%;
  flex: 0 0 18px;
}

.support-options input:checked + span {
  border-color: var(--red);
  background: #fff2f4;
  box-shadow: inset 0 0 0 1px var(--red);
}

.support-options input:checked + span::before {
  border: 5px solid var(--red);
  background: var(--white);
}

.support-options input:focus-visible + span {
  outline: 3px solid rgba(200, 22, 43, 0.2);
  outline-offset: 2px;
}

.materials-promise {
  border-left: 5px solid var(--gold);
  background: #fff9e9;
  padding: 20px 24px;
}

.materials-promise strong {
  color: var(--navy);
  display: block;
  margin-bottom: 5px;
}

.materials-promise p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.request-success-card .heart-mark {
  width: 150px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 12px 16px rgba(7, 29, 54, 0.22));
}

@media (max-width: 820px) {
  .officer-training-callout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .officer-training-callout p:not(.eyebrow) {
    margin-inline: auto;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .officer-training-callout {
    padding: 28px 20px;
  }

  .heart-request-button {
    width: 240px;
    height: 210px;
  }

  .heart-request-button span {
    width: 145px;
    font-size: 0.95rem;
  }

  .officer-request-page .form-panel,
  .officer-request-page .submit-panel {
    padding: 26px 22px;
  }
}

.family-page {
  background: #f5f2eb;
}

.family-page .back-link {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.family-page .back-link:hover,
.family-page .back-link:focus-visible {
  color: var(--red);
}

.family-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: 74px 0 70px;
}

.family-hero::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.035), 0 0 0 92px rgba(255, 255, 255, 0.025);
}

.family-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 70px;
  align-items: center;
}

.family-hero .eyebrow {
  color: var(--family-gold);
}

.family-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.family-hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #dce7f2;
  font-size: 1.15rem;
  line-height: 1.75;
}

.family-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.family-hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.6);
}

.family-hero-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 280px;
  height: 280px;
  padding: 14px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.family-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.family-quick-help {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.family-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.family-quick-card {
  min-height: 152px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.family-quick-card:first-child {
  border-left: 1px solid var(--line);
}

.family-quick-card span {
  display: block;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.family-quick-card strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.35;
}

.family-quick-card a,
.family-quick-card p {
  display: inline-block;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.family-quick-card a {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.family-section {
  padding: 82px 0;
}

.family-section-white {
  background: var(--white);
}

.family-section-navy {
  background: var(--navy);
  color: var(--white);
}

.family-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 54px;
  align-items: end;
  margin-bottom: 38px;
}

.family-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.family-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.family-section-navy .family-heading h2 {
  color: var(--white);
}

.family-section-navy .family-heading > p {
  color: #bfcede;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.phase-card {
  position: relative;
  overflow: hidden;
  padding: 34px 30px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: 8px;
  box-shadow: var(--family-shadow);
}

.phase-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

.phase-card h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.phase-card > p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 25px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-weight: 900;
}

.resource-family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.family-resource-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px;
  background: var(--white);
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.family-resource-card .resource-label {
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.family-resource-card h3 {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.35;
}

.family-resource-card p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.family-resource-card a {
  margin-top: auto;
  color: var(--red);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.family-resource-card a:hover,
.family-resource-card a:focus-visible {
  color: var(--red-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.riders-support {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
}

.riders-panel,
.opsec-panel {
  padding: 38px;
  border-radius: 8px;
}

.riders-panel {
  background: var(--family-blue-light);
  border-left: 6px solid var(--red);
}

.opsec-panel {
  background: var(--navy);
  color: var(--white);
}

.riders-panel h2,
.opsec-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.riders-panel h2 {
  color: var(--navy);
}

.riders-panel p,
.opsec-panel p {
  margin: 16px 0 0;
  line-height: 1.7;
}

.riders-panel p {
  color: var(--muted);
}

.opsec-panel p {
  color: #cedbe7;
}

.riders-panel .check-list {
  grid-template-columns: 1fr 1fr;
}

.riders-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.riders-actions .button:not(.button-primary) {
  border: 1px solid var(--navy);
  color: var(--navy);
}

.riders-actions .button:not(.button-primary):hover,
.riders-actions .button:not(.button-primary):focus-visible {
  background: var(--navy);
  color: var(--white);
}

.opsec-panel strong {
  color: var(--family-gold);
}

.family-help-band {
  background: var(--red);
  color: var(--white);
  padding: 46px 0;
}

.family-help-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.family-help-inner h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

.family-help-inner p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #ffe9ec;
  line-height: 1.65;
}

.family-help-inner .button {
  flex: 0 0 auto;
  background: var(--white);
  color: var(--red);
}

.family-page footer {
  background: #041425;
  color: var(--white);
  padding: 44px 0;
}

.deployment-home-feature {
  background: var(--navy);
  color: var(--white);
  padding: 52px 0;
}

.deployment-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
}

.deployment-home-feature .eyebrow {
  color: var(--family-gold);
}

.deployment-home-feature h2 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.deployment-home-feature p:not(.eyebrow) {
  max-width: 820px;
  margin: 16px 0 0;
  color: #c8d5e2;
  line-height: 1.7;
}

@media (max-width: 920px) {
  .family-hero-grid,
  .family-heading,
  .riders-support {
    grid-template-columns: 1fr;
  }

  .family-hero-logo {
    display: none;
  }

  .family-quick-grid {
    grid-template-columns: 1fr 1fr;
  }

  .family-quick-card:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .family-quick-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .phase-grid,
  .resource-family-grid {
    grid-template-columns: 1fr 1fr;
  }

  .deployment-home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .family-page .container {
    width: min(100% - 28px, 1180px);
  }

  .family-page .header-inner {
    min-height: 76px;
  }

  .family-page .brand-lockup img {
    width: 48px;
    height: 46px;
  }

  .family-page .brand-lockup small {
    display: none;
  }

  .family-page .back-link {
    max-width: 130px;
    text-align: right;
    font-size: 0.82rem;
  }

  .family-page .crisis-inner {
    flex-wrap: wrap;
    gap: 7px 12px;
    padding: 10px 0;
  }

  .family-page .crisis-divider {
    display: none;
  }

  .family-hero {
    padding: 58px 0 54px;
  }

  .family-hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.6rem);
  }

  .family-hero-actions .button {
    width: 100%;
  }

  .family-quick-grid,
  .phase-grid,
  .resource-family-grid {
    grid-template-columns: 1fr;
  }

  .family-quick-card,
  .family-quick-card:first-child,
  .family-quick-card:nth-child(3) {
    min-height: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .family-section {
    padding: 62px 0;
  }

  .family-heading {
    gap: 18px;
  }

  .phase-card,
  .family-resource-card,
  .riders-panel,
  .opsec-panel {
    padding: 28px 24px;
  }

  .riders-panel .check-list {
    grid-template-columns: 1fr;
  }

  .family-help-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .family-help-inner .button {
    width: 100%;
  }

  .deployment-home-feature {
    padding: 44px 0;
  }
}
