/* Heroes Program page.
   Follows the site design system: flag red eyebrows (#CC0C23), blue section
   titles (#1d4ed8), flag navy card headings (#032350), and the pricing-card
   hover treatment (lift + dark navy #0d1526 + antique gold #C5A76C).
   Dark-mode overrides live in theme.css. */

.heroes-page {
    margin-top: 80px; /* clear the fixed navbar */
    background-color: #ffffff; /* same white as the index.ejs sections */
    color: #0d1526;
}

/* ── Banner ─────────────────────────────────────────────────────────── */

.heroes-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Same height treatment as the homepage midPageBanners; the 30%
       vertical position crops from the bottom (feet) before the top */
    min-height: 360px;
    height: 60vh;
    background: url("/images/Heroes-Index.png?v=5c653e9f76") center 30% / cover no-repeat;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.heroes-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 21, 38, 0.72) 0%, rgba(13, 21, 38, 0.55) 55%, rgba(13, 21, 38, 0.78) 100%);
}

.heroes-banner__inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 72px 20px 56px;
}

.heroes-banner__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
}

.heroes-banner h1 {
    margin: 0 0 14px;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.heroes-banner p {
    margin: 0 auto;
    max-width: 54ch;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
}

/* ── Content ────────────────────────────────────────────────────────── */

.heroes-content {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 20px 72px;
}

.heroes-form-intro {
    text-align: center;
    margin-bottom: 36px;
}

.heroes-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #CC0C23; /* flag red (stripes) */
    margin-bottom: 6px;
}

.heroes-form-intro h2 {
    margin: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d4ed8;
}

.heroes-form-intro p {
    margin: 0 auto;
    max-width: 64ch;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #6b7280;
}

/* ── Category picker — pricing-card hover & selection treatment ────── */

.heroes-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    margin-bottom: 34px;
}

.heroes-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px 20px;
    background-color: #f9f9f9;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.heroes-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background: #0d1526;
    border-color: #0d1526;
}

.heroes-category-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Selected state mirrors the hover look and pins it with a gold outline */
.heroes-category-card:has(input:checked) {
    background: #0d1526;
    border-color: #C5A76C;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.heroes-category-card img {
    width: 64px;
    height: 48px;
}

.heroes-category-card__label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #032350; /* flag navy (canton) */
    transition: color 0.2s ease;
}

.heroes-category-card__desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #6b7280;
    transition: color 0.2s ease;
}

.heroes-category-card:hover .heroes-category-card__label,
.heroes-category-card:has(input:checked) .heroes-category-card__label {
    color: #C5A76C; /* antique gold on the dark background */
}

.heroes-category-card:hover .heroes-category-card__desc,
.heroes-category-card:has(input:checked) .heroes-category-card__desc {
    color: rgba(255, 255, 255, 0.75);
}

/* No focus ring on mouse selection — the dark/gold selected state is the
   indicator. Keyboard navigation still gets an outline via :focus-visible. */
.heroes-category-card:has(input:focus-visible) {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
}

/* ── Question form ──────────────────────────────────────────────────── */

.heroes-questions {
    margin: 0 0 30px;
    padding: 30px 32px 28px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.heroes-questions legend {
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #032350;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
}

.heroes-questions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px 26px;
    padding-top: 6px;
}

.heroes-question {
    display: flex;
    flex-direction: column;
}

/* Reserve two label lines and bottom-align the text so every select in a
   row starts at the same height — no jumping between short/long questions.
   38px = two lines at 0.85rem x 1.35 line-height. */
.heroes-question label {
    display: flex;
    align-items: flex-end;
    min-height: 38px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    color: #032350;
}

.heroes-question select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #0d1526;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.heroes-question select:hover {
    border-color: #9ca3af;
}

.heroes-question select:focus,
.heroes-question select:focus-visible {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* ── Attestation + submit ───────────────────────────────────────────── */

.heroes-submit {
    text-align: center;
}

.heroes-attestation {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto 24px;
    padding: 16px 18px;
    background-color: #f9f9f9;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #6b7280;
    text-align: left;
    cursor: pointer;
}

.heroes-attestation input {
    margin-top: 3px;
    accent-color: #1d4ed8;
    flex-shrink: 0;
}

.heroes-cta {
    display: inline-block;
    background-color: #1d4ed8;
    color: #ffffff;
    border: 1px solid rgba(0, 86, 179, 0.35);
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.heroes-cta:hover {
    background-color: #1e40af;
    color: #ffffff;
}

.heroes-cta:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
}

/* ── Verified status card ───────────────────────────────────────────── */

.heroes-status-card {
    max-width: 660px;
    margin: 0 auto;
    padding: 42px 30px 38px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.heroes-status-card__emblem {
    width: 84px;
    height: 84px;
    margin-bottom: 14px;
}

.heroes-status-card h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #032350;
}

.heroes-status-card__category {
    margin: 0 0 26px;
    font-size: 0.88rem;
    color: #6b7280;
}

.heroes-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.heroes-benefit {
    background-color: #f9f9f9;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.heroes-benefit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background: #0d1526;
    border-color: #0d1526;
}

.heroes-benefit__value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #032350;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.heroes-benefit__label {
    font-size: 0.82rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.heroes-benefit:hover .heroes-benefit__value {
    color: #C5A76C;
}

.heroes-benefit:hover .heroes-benefit__label {
    color: rgba(255, 255, 255, 0.75);
}

.heroes-status-card__note {
    margin: 0 0 26px;
    font-size: 0.85rem;
    color: #9ca3af;
}

.heroes-status-card__note a {
    color: #1d4ed8;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 560px) {
    .heroes-banner h1 {
        font-size: 1.8rem;
    }
    .heroes-content {
        padding: 36px 16px 52px;
    }
    .heroes-questions {
        padding: 24px 18px 20px;
    }
    .heroes-question label {
        min-height: 0; /* single column — no cross-row alignment needed */
    }
}
