﻿/* ================================================================
   APPLICATION PROCESS PAGE — SCOPED STYLES
   File: wwwroot/css/application-process.css
   Mirrors Design V2 dark aesthetic used across Resources pages.
   No variables added to global files (design-v2.css / dps.css).
   ================================================================ */

/* ── Page wrapper ── */
.ap-page {
    background-color: #000;
    min-height: 100vh;
    padding-bottom: 0;
}

/* ================================================================
   SECTION 1 — HERO
   ================================================================ */
.ap-hero {
    background: linear-gradient(160deg, var(--dps-navy, #11294B) 0%, #000 65%);
    padding: 5rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ap-hero__eyebrow {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.75rem;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: rgba(215, 213, 207, 0.55);
    margin-bottom: 0.6rem;
}

.ap-hero__title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #fff;
    margin-bottom: 0.5rem;
}

.ap-hero__subtitle {
    font-family: var(--font-modern, 'Inter', sans-serif);
    font-size: 0.88rem;
    color: rgba(215, 213, 207, 0.55);
    max-width: 460px;
    margin: 0 auto 1rem;
    line-height: 1.5;
}

.ap-hero__toggle-label {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    color: rgba(215, 213, 207, 0.75);
    margin-bottom: 0.5rem;
}

/* ── Division toggle pills ── */
.ap-toggle {
    display: inline-flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px;
}

.ap-toggle__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 6px;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: rgba(215, 213, 207, 0.45);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    min-height: 38px;
}

.ap-toggle__pill:focus-visible {
    outline: 2px solid #3B66E0;
    outline-offset: 2px;
}

/* GSP active — solid orange, white text */
.ap-toggle__pill--gsp.is-active {
    background: #B83D22; /* was #DB4F30 — darkened to pass 4.5:1 with white text */
    color: #fff;
    border-color: #B83D22;
}

/* CVE active — subtle yellow tint */
.ap-toggle__pill--cve.is-active {
    background: var(--dps-yellow, #EADC75);
    color: #000;
    border-color: var(--dps-yellow, #EADC75);
}

/* CPD active — subtle grey tint, clearly distinct from CVE yellow */
.ap-toggle__pill--cpd.is-active {
    background: rgba(59, 102, 224, 0.9);
    color: #FFF;
    border-color: rgba(59, 102, 224, 0.9);
}

/* DISP active */
.ap-toggle__pill--disp.is-active {
    background: #B83D22;
    border-color: #B83D22;
    color: #fff;
}

/* Toggle hover colors */
.ap-toggle__pill--gsp:hover:not(.is-active) {
    border-color: var(--dps-orange, #DB4F30);
    color: var(--dps-orange, #DB4F30);
}

.ap-toggle__pill--cve:hover:not(.is-active) {
    border-color: var(--dps-yellow, #EADC75);
    color: var(--dps-yellow, #EADC75);
}

.ap-toggle__pill--cpd:hover:not(.is-active) {
    border-color: rgba(180, 200, 255, 0.8);
    color: rgba(180, 200, 255, 0.95);
}


.ap-toggle__pill--disp:hover:not(.is-active) {
    border-color: var(--dps-orange, #DB4F30);
    color: var(--dps-orange, #DB4F30);
}

/* ================================================================
   SECTION 2 — DISQUALIFIERS BAND
   ================================================================ */
.ap-disq-band {
    background: linear-gradient(to bottom, #1a0a00 0%, #000 100%);
    border-top: 1px solid rgba(184, 104, 0, 0.4);
    border-bottom: none;
    padding: 1rem 0;
}

.ap-disq-band__inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ap-disq-band__icon {
    font-size: 1.5rem;
    color: #d97706;
    flex-shrink: 0;
    padding-top: 2px;
}

.ap-disq-band__text {
    flex: 1;
    min-width: 0;
}

.ap-disq-band__label {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #d97706;
    margin-bottom: 0.25rem;
}

.ap-disq-band__sub {
    font-size: 0.85rem;
    color: rgba(215, 213, 207, 0.6);
    line-height: 1.5;
    margin: 0;
}

.ap-disq-band__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d97706;
    color: #000;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    flex-shrink: 0;
    align-self: center;
    transition: background 0.2s;
    min-height: 44px;
    white-space: nowrap;
}

.ap-disq-band__btn:hover {
    background: #b86005;
    color: #000;
}

.ap-disq-band__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ================================================================
   SECTION 3 — PROCESS STEPS
   ================================================================ */
.ap-steps-section {
    padding: 1.75rem 0 1.5rem;
    background: #000;
}

.ap-division-panel {
    /* hidden attribute handles visibility — no display:none needed */
}

/* ── Section header ── */
.ap-steps-header {
    margin-bottom: 1.25rem;
}

.ap-steps-header__eyebrow {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.72rem;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    /* neutral — not division-colored to avoid GSP orange bleeding into CVE/CPD panels */
    color: rgba(215, 213, 207, 0.75);
    margin-bottom: 0.3rem;
}

.ap-steps-header__title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #fff;
    margin-bottom: 0.4rem;
}

.ap-steps-header__sub {
    font-size: 0.9rem;
    color: rgb(215, 213, 207, 0.89);
    margin: 0;
}

/* ── Step track ── */
.ap-track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.ap-track__row {
    position: relative;
    display: grid;
    /* 8 nodes in ONE row — no wrapping */
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    align-items: start;
}

/* Dispatcher 4-node track — 4 columns only, centered */
.ap-track__row--short {
    display: flex;
    justify-content: center;
}

.ap-track__row--short::before {
    display: none; /* line handled by inner wrapper */
}

.ap-track__short-inner {
    display: flex;
    gap: 12rem;
    position: relative;
}

/* Line spans only between the inner nodes */
.ap-track__short-inner::before {
    content: '';
    position: absolute;
    top: 24px; /* half of 44px circle + 2px node padding */
    left: 24px; /* center of first node circle */
    right: 24px; /* center of last node circle */
    height: 2px;
    background: rgba(59, 102, 224, 0.3);
    z-index: 0;
    pointer-events: none;
}

/* Single horizontal connector line through all 8 nodes */
.ap-track__row::before {
    content: '';
    position: absolute;
    top: 22px;
    /* starts at center of node 1, ends at center of node 8 */
    left: calc(6.25% / 2 + 22px);
    right: calc(6.25% / 2 + 22px);
    height: 2px;
    background: rgba(59, 102, 224, 0.3);
    z-index: 0;
    pointer-events: none;
}

/* Remove the second row and vertical connector — no longer needed */
.ap-track__row:first-child::after {
    display: none;
}

/* Nodes sit above the connector line */
.ap-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    min-height: 64px;
    width: 100%;
}

.ap-node:focus-visible {
    outline: 2px solid #3B66E0;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Node circle ── */
.ap-node__circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #111e36;
    border: 2px solid #3B66E0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: rgba(130, 170, 240, 0.9);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.ap-node:hover .ap-node__circle,
.ap-node[aria-pressed="true"] .ap-node__circle {
    background: #3B66E0;
    border-color: #3B66E0;
    color: #fff;
}

/* ── Final node — green ── */
.ap-node__circle--final {
    background: #060f0a;
    border-color: #1a6b32;
    color: #3db85a;
}

.ap-node--final:hover .ap-node__circle--final,
.ap-node--final[aria-pressed="true"] .ap-node__circle--final {
    background: #1a6b32;
    border-color: #1a6b32;
    color: #fff;
}

/* ── Node labels ── */
.ap-node__label {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    color: rgba(215, 213, 207, 0.85);
    text-align: center;
    line-height: 1.2;
    width: 100%;
    /* clamp to 2 lines — keeps all nodes same height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}

/* ── Detail card ── */
.ap-detail-card {
    background: #0d1a2e;
    border: 1px solid rgba(59, 102, 224, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    min-height: 120px;
}

.ap-detail-card__step-label {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: rgba(130, 170, 240, 0.75);
    margin-bottom: 0.4rem;
}

.ap-detail-card__title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #fff;
    margin-bottom: 0.6rem;
}

.ap-detail-card__desc {
    font-size: 0.9rem;
    color: rgba(215, 213, 207, 0.75);
    line-height: 1.6;
    margin-bottom: 0;
}

.ap-detail-card__desc a {
    color: rgba(130, 170, 240, 0.9);
}

/* ── Detail card actions ── */
.ap-detail-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.ap-detail-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(130, 170, 240, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.ap-detail-card__link:hover { color: #fff; }

/* ── PT stats ── */
.ap-pt-stats {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.ap-pt-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 0.6rem 0.5rem;
    text-align: center;
}

.ap-pt-stat__value {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.ap-pt-stat__label {
    font-size: 0.7rem;
    color: rgba(215, 213, 207, 0.4);
    margin-top: 3px;
    line-height: 1.2;
}

/* ================================================================
   SECTION 4 — EOT REFERRAL
   ================================================================ */
.ap-eot-referral {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #090f1e;
    border: 1px solid rgba(59, 102, 224, 0.3);
    border-left: 3px solid #3B66E0;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.ap-eot-referral__icon {
    font-size: 1.75rem;
    color: rgba(130, 170, 240, 0.65);
    flex-shrink: 0;
}

.ap-eot-referral__text {
    flex: 1;
    min-width: 0;
}

.ap-eot-referral__title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #fff;
    margin-bottom: 0.25rem;
}

.ap-eot-referral__sub {
    font-size: 0.85rem;
    color: rgba(215, 213, 207, 0.58);
    line-height: 1.5;
    margin: 0;
}

.ap-eot-referral__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #3B66E0;
    color: #fff;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    padding: 0.6rem 1.1rem;
    border-radius: 4px;
    text-decoration: none;
    flex-shrink: 0;
    min-height: 44px;
    transition: background 0.2s;
    white-space: nowrap;
}

.ap-eot-referral__btn:hover {
    background: #2a52c4;
    color: #fff;
}

.ap-eot-referral__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ================================================================
   SECTION 5 — CTA BAND
   ================================================================ */
.ap-cta-band {
    background: linear-gradient(to bottom, #000 0%, #040d1a 100%);
    border-top: none;
    padding: 2rem 0;
}

.ap-cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.ap-cta-band__title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #fff;
    margin-bottom: 0.25rem;
}

.ap-cta-band__sub {
    font-size: 0.875rem;
    color: rgba(215, 213, 207, 0.58);
    margin: 0;
}

.ap-cta-band__buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ap-cta-band__btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    color: rgba(215, 213, 207, 0.75);
    text-decoration: none;
    min-height: 44px;
    transition: border-color 0.2s, color 0.2s;
}

.ap-cta-band__btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.ap-cta-band__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1.25rem;
    background: #3B66E0;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    color: #fff;
    text-decoration: none;
    min-height: 44px;
    transition: background 0.2s;
}

.ap-cta-band__btn-primary:hover {
    background: #2a52c4;
    color: #fff;
}

.ap-cta-band__btn-primary:focus-visible,
.ap-cta-band__btn-ghost:focus-visible {
    outline: 2px solid #3B66E0;
    outline-offset: 2px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
/* ── ≤1200px — laptop viewports, keep toggle in view ── */
@media (max-width: 1200px) {
    .ap-hero {
        padding: 4.7rem 0 1.75rem;
    }

    .ap-hero__title {
        font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    }

    .ap-hero__subtitle {
        font-size: 0.88rem;
        margin-bottom: 1rem;
    }
}

/* ── ≤992px — nodes start to crowd, shrink circles slightly ── */
@media (max-width: 992px) {
    .ap-node__circle {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .ap-track__row::before {
        top: 19px;
    }

    .ap-node__label {
        font-size: 0.55rem;
    }
}

/* ── ≤768px — switch to 4+4 grid stacked rows, hide connector lines ── */
@media (max-width: 768px) {
    .ap-track__row {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    /* Hide connector lines — wrapping makes them look broken */
    .ap-track__row::before,
    .ap-track__row:first-child::after {
        display: none;
    }

    .ap-node__circle {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .ap-disq-band__inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ap-disq-band__btn {
        width: 100%;
        justify-content: center;
    }

    .ap-cta-band__inner {
        flex-direction: column;
        text-align: center;
    }

    .ap-cta-band__buttons {
        justify-content: center;
    }

    .ap-eot-referral {
        flex-direction: column;
        text-align: center;
    }

    .ap-eot-referral__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── ≤576px — small mobile ── */
@media (max-width: 576px) {
    .ap-hero {
        padding: 5.5rem 0 2.5rem;
    }

    .ap-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ap-toggle__pill {
        padding: 7px 14px;
        font-size: 0.78rem;
    }

    .ap-node__circle {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }

    .ap-node__label {
        font-size: 0.52rem;
    }

    .ap-pt-stats {
        gap: 6px;
    }

    .ap-pt-stat__value {
        font-size: 1.2rem;
    }
}