﻿/* ============================================================
   APPLY PAGES — apply.css
   File: wwwroot/css/apply.css
   Author: Jessie Martin
   Last Updated: 2026-03
 
   Covers:
     1. Page Shell & Back Link
     2. Active Posting State — Title / Badge
     3. Date Cards
     4. Document Checklist
     5. Primary Apply Button
     6. Closed State
     7. Next-Step Cards (closed state)
     8. Division Picker Cards (Landing.cshtml)
     9. Responsive
    10. Accessibility (reduced motion)
 
   Design System:
     - Background: var(--surface-dark) / var(--surface-raised)
     - Cards: var(--surface-raised) with var(--border-subtle) borders
     - Accents: var(--dps-blue), var(--dps-orange) for urgency
     - Headings: Oswald, uppercase (applied via design-v2.css global rule)
     - Body: Inter (applied via design-v2.css global rule)
     - Text: var(--text-white), var(--text-grey), var(--text-muted)
   ============================================================ */

/* ============================================================
   1. PAGE SHELL & BACK LINK
   ============================================================ */
.apply-landing {
    background: #000;
    min-height: 0;
    padding-bottom: 3rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* Back link wrapper — clearance for fixed navbar (~70px) */
.apply-landing__back-wrap {
    padding-top: 5.5rem;
    padding-bottom: 0.5rem;
}

.apply-landing__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dps-grey, #D7D5CF);
    text-decoration: none;
    transition: color 0.2s ease;
}

.apply-landing__back:hover {
    color: var(--dps-blue, #1F419B);
    text-decoration: none;
}

/* ============================================================
   2. LANDING HERO (Landing.cshtml — division picker)
   ============================================================ */
.apply-landing__hero {
    background: linear-gradient(160deg, var(--dps-navy, #11294B) 0%, #000 65%);
    padding: 6rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid rgba(31, 65, 155, 0.4);
}

.apply-landing__grid {
    padding-top: 2.5rem;
    padding-bottom: 0;
}

/* ============================================================
   3. ACTIVE POSTING STATE — Title / Subtitle / Badge
   ============================================================ */
.apply-landing__active-hero {
    background: linear-gradient(160deg, var(--dps-navy, #11294B) 0%, #000 65%);
    padding: 5rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid rgba(31, 65, 155, 0.4);
    margin-bottom: 3rem;
}

/* Blue badge — only on the active posting hero */
.apply-landing__active-hero .badge.bg-success {
    background-color: var(--dps-blue, #1F419B) !important;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5em 1.1em;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
}

.apply-landing__active {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

/* Shared title — used in both hero bands and closed state */
.apply-landing__title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-family: 'Oswald', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin: 0 0 0.75rem;
    padding-top: 0;
}

.apply-landing__subtitle {
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    color: rgba(215, 213, 207, 0.75);
    max-width: 560px;
    margin-inline: auto;
}

.apply-landing__class-name {
    font-size: 1.5rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dps-grey, #D7D5CF);
    padding-bottom: 2.5rem;
}

/* ============================================================
   4. POSTING BLOCK & DATE ROW
   ============================================================ */

/* Wrapper for each individual posting (Apply.cshtml loops over these) */
.apply-posting-block {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 2.5rem;
}
 
.apply-posting-block:last-of-type {
    border-bottom: none;
}
 
/* Flex row of date cards */
.apply-landing__dates {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* ============================================================
   5. DATE CARDS
   ============================================================ */

.apply-date-card {
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1.1rem 1.75rem;
    text-align: center;
    min-width: 200px;
    transition: border-color 0.2s ease;
}

/* Urgent deadline — orange accent border */
.apply-date-card--urgent {
    border-color: var(--dps-blue, #1F419B);
    background: rgba(31, 65, 155, 0.06);
}

.apply-date-card__label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    color: var(--text-muted, rgba(215, 213, 207, 0.62));
    margin-bottom: 0.35rem;
}

.apply-date-card__value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white, #fff);
    font-family: var(--font-heading, 'Oswald', sans-serif);
    letter-spacing: 0.04em;
}

.apply-date-card__countdown {
    display: block;
    font-size: 0.8rem;
    color: var(--dps-orange, #DB4F30);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ============================================================
   6. DOCUMENT CHECKLIST
   ============================================================ */

.apply-checklist {
    background: #111;
    border: 1px solid rgba(31, 65, 155, 0.4);
    border-top: 3px solid var(--dps-blue, #1F419B); /* blue accent top bar */
    border-radius: 10px;
    padding: 2rem;
}

.apply-checklist__title {
    font-size: 1rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 1.25rem;
}
 
.apply-checklist__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}
 
.apply-checklist__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    color: var(--dps-grey, #D7D5CF);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    line-height: 1.5;
}
 
.apply-checklist__list li:last-child {
    border-bottom: none;
}
 
/* Checkmark icon color */
.apply-checklist__list .bi-check2 {
    color: #3cb872; /* bright green — visible on dark bg */
    flex-shrink: 0;
    margin-top: 2px;
}

.apply-checklist__note {
    font-size: 0.83rem;
    font-family: 'Inter', sans-serif;
    color: rgba(215, 213, 207, 0.62);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 3px solid var(--dps-blue, #1F419B);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin: 0;
}
 
.apply-checklist__note .bi-info-circle {
    color: var(--dps-blue, #1F419B);
}


/* ============================================================
   7. PRIMARY APPLY BUTTON
   ============================================================ */

.apply-landing__btn {
    background: var(--dps-blue, #1F419B);
    color: var(--text-white, #fff);
    border: 2px solid var(--dps-blue, #1F419B);
    padding: 1rem 3rem;
    border-radius: 4px; /* matches .btn-cta-v2 from design-v2.css */
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 8px 24px rgba(31, 65, 155, 0.40);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
 
.apply-landing__btn:hover {
    background: #3457C0; /* --accent-light */
    border-color: #3457C0;
    color: var(--text-white, #fff);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(31, 65, 155, 0.55);
}
 
.apply-landing__external-note {
    font-size: 0.8rem;
    color: var(--text-muted, rgba(215, 213, 207, 0.62));
}
 
.apply-landing__external-note .bi-lock-fill {
    color: var(--text-muted);
}

/* Download / outline button — scoped replacement for btn-outline-secondary.
   WCAG fix: Bootstrap btn-outline-secondary #6c757d = 4.17:1 FAIL on dark bg.
   #D7D5CF on transparent = 10.6:1 PASS. */
.apply-landing__btn--outline {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-condensed, 'Oswald', sans-serif);
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(215, 213, 207, 0.40);
    border-radius: 4px;
    color: #D7D5CF;
    background: transparent;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.apply-landing__btn--outline:hover,
.apply-landing__btn--outline:focus-visible {
    color: #ffffff;
    border-color: rgba(215, 213, 207, 0.80);
    background: rgba(255, 255, 255, 0.05);
}

.apply-landing__btn--outline:focus-visible {
    outline: 2px solid #D7D5CF;
    outline-offset: 3px;
}

/* ============================================================
   8. CLOSED STATE
   ============================================================ */

.apply-landing__closed {
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.apply-closed-icon {
    font-size: 4rem;
    color: var(--text-muted, rgba(215, 213, 207, 0.62));
    display: block;
}

.apply-landing__closed .apply-landing__title {
    color: var(--text-white, #fff);
}

.apply-landing__closed .apply-landing__subtitle {
    color: var(--text-muted, rgba(215, 213, 207, 0.62));
    font-size: 1.05rem;
}

/* "Back to career page" button */
.apply-landing__closed .btn-secondary {
    background: transparent;
    border: 2px solid rgba(215, 213, 207, 0.28);
    color: var(--dps-grey, #D7D5CF);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.apply-landing__closed .btn-secondary:hover {
    border-color: var(--dps-grey, #D7D5CF);
    color: #fff;
    background: rgba(215, 213, 207, 0.08);
}

/* ============================================================
   9. NEXT-STEP CARDS (closed state)
   ============================================================ */

.apply-next-step {
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: border-color 0.22s ease, transform 0.22s ease;
}
 
.apply-next-step:hover {
    border-color: rgba(31, 65, 155, 0.5);
    transform: translateY(-3px);
}
 
.apply-next-step i {
    font-size: 2rem;
    color: var(--dps-blue, #1F419B);
    margin-bottom: 0.75rem;
    display: block;
}
 
.apply-next-step h3 {
    font-size: 0.95rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 0.5rem;
}
 
.apply-next-step p {
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    color: rgba(215, 213, 207, 0.62);
    margin-bottom: 1rem;
    line-height: 1.55;
}
 
/* Outline buttons inside next-step cards */
.apply-next-step .btn-outline-primary {
    border-color: #6482C8;
    color: #6482C8;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}
 
.apply-next-step .btn-outline-primary:hover {
    background: var(--dps-blue, #1F419B);
    border-color: var(--dps-blue, #1F419B);
    color: #fff;
}

/* ============================================================
   10. DIVISION PICKER CARDS (Landing.cshtml)
   ============================================================ */

.apply-division-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid transparent;
    color: var(--text-white, #fff);
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
 
.apply-division-card:hover {
    transform: translateY(-5px);
    box-shadow: #161616;
    text-decoration: none;
    color: var(--text-white, #fff);
}
 
.apply-division-card--active:hover {
    border-color: var(--dps-blue, #1F419B);
    box-shadow: 0 12px 40px rgba(31, 65, 155, 0.30);
}
 
.apply-division-card--closed {
    opacity: 0.65;
}
 
.apply-division-card--closed:hover {
    border-color: var(--border-grey, rgba(215, 213, 207, 0.28));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}

/* Patch image inside the icon wrapper */
.apply-division-card__patch {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
    transition: transform 0.22s ease, filter 0.22s ease;
}

/* Muted patch for closed divisions */
.apply-division-card--closed .apply-division-card__patch {
    filter: grayscale(60%) opacity(0.55);
}
 
.apply-division-card__icon {
    font-size: 2.5rem;
    color: var(--dps-blue, #1F419B);
    margin-bottom: 1rem;
}
 
.apply-division-card--closed .apply-division-card__icon {
    color: var(--text-muted, rgba(215, 213, 207, 0.62));
}
 
.apply-division-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white, #fff);
    margin-bottom: 0.75rem;
    /* Oswald + uppercase from global heading rule */
}
 
.apply-division-card__status {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    margin-bottom: 0.5rem;
    display: block;
}
 
.apply-division-card__status--open {
    color: #3cb872; /* bright green on dark bg */
}

.apply-division-card__status--closed {
    color: rgba(215, 213, 207, 0.85); /* was 0.62 — too faint */
}

.apply-division-card__count {
    font-size: 0.82rem;
    color: rgba(215, 213, 207, 0.80); /* was 0.62 */
    margin-bottom: 0.5rem;
}

.apply-division-card__cta {
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5B82D4; /* was #1F419B — too dark on #111 */
    margin-top: auto;
    padding-top: 1rem;
    transition: color 0.2s ease;
}

.apply-division-card--active:hover .apply-division-card__cta {
    color: #7B9CE0;
}

.apply-division-card--closed .apply-division-card__cta {
    color: rgba(215, 213, 207, 0.80); /* was 0.62 */
}

/* CVE applicant type description */
.apply-cve-desc {
    background: rgba(31, 65, 155, 0.10);
    border: 1px solid rgba(31, 65, 155, 0.30) !important;
    border-radius: 6px;
    color: var(--text-white, #fff);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.6;
}

.apply-cve-desc strong {
    color: var(--dps-blue, #1F419B);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.82rem;
}

/* ============================================================
   11. RESPONSIVE
   ============================================================ */
 
/* ── sm: max-width 575px ── */
@media (max-width: 575.98px) {

    /* Mobile navbar is not fixed — reduce top padding to just breathing room */
    .apply-landing__back-wrap {
        padding-top: 8rem; /* was 6rem — that was for fixed navbar clearance */
        padding-bottom: 0.25rem;
    }

    /* Hero starts right after back link — pull up to close the gap */
    .apply-landing__active-hero {
        padding: 5rem 1rem 2.5rem; /* was 6rem top — no navbar to clear */
    }

    .apply-landing__hero {
        padding: 10rem 1rem 2.5rem; /* same for landing page hero */
    }

    .apply-landing__title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
 
    .apply-landing__btn {
        width: 100%;
        text-align: center;
    }
 
    .apply-date-card {
        min-width: unset;
        width: 100%;
    }
 
    .apply-checklist {
        padding: 1.5rem 1.25rem;
    }
 
    .apply-next-step {
        padding: 1.5rem 1rem;
    }
}
 
/* ── md: max-width 767px ── */
@media (max-width: 767.98px) {

    .apply-landing__back-wrap {
        padding-top: 5.5rem;
    }

    .apply-landing__active {
        padding-bottom: 3rem;
    }

    .apply-landing__closed {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .apply-date-card {
        padding: 0.9rem 1.25rem;
    }

    .apply-landing__grid {
        padding-top: 2rem;
    }
}
 
 
/* ============================================================
   10. ACCESSIBILITY — WCAG 2.2 AA / REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
 
    .apply-landing__btn,
    .apply-division-card,
    .apply-next-step {
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
    }
 
    .apply-landing__btn:hover,
    .apply-division-card:hover,
    .apply-next-step:hover {
        transform: none !important;
    }
}