/* ═══════════════════════════════════════════════════════════════════════════
   JEME-Invest funding pages — visual refresh
   Scoped to `.jeme-page` so it only affects the candidate-facing JEME
   templates and builds on the shared tokens in static/style.css rather than
   introducing a competing palette.
   ═══════════════════════════════════════════════════════════════════════════ */

.jeme-page {
    --jeme-radius: 16px;
    --jeme-gap: 1.5rem;
}

.jeme-page .container {
    max-width: 1140px;
}

/* Section rhythm ---------------------------------------------------------- */

.jeme-page .page-eyebrow {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary-mid);
}

.jeme-page h1 {
    color: var(--color-text);
    font-weight: 700;
}

/* Hero / intro banner ------------------------------------------------------ */

.jeme-hero {
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
    border-radius: var(--jeme-radius);
    padding: 2rem 2.25rem;
    color: #fff;
    box-shadow: 0 18px 38px rgba(15, 32, 67, 0.18);
}

.jeme-hero p {
    color: rgba(255, 255, 255, 0.88);
}

/* Cards --------------------------------------------------------------------- */

.jeme-page .surface-card,
.jeme-page .card {
    border-radius: var(--jeme-radius);
}

.jeme-page .surface-card .card-header,
.jeme-page .card .card-header {
    border-top-left-radius: var(--jeme-radius);
    border-top-right-radius: var(--jeme-radius);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    position: relative;
}

.jeme-page .surface-card .card-header::before,
.jeme-page .card .card-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary-mid), var(--color-accent));
    border-top-left-radius: var(--jeme-radius);
    border-bottom-left-radius: 2px;
}

.jeme-page .card-body {
    padding: 1.25rem;
}

/* Document checklist / notice banners --------------------------------------- */

.jeme-page .alert {
    border-radius: 14px;
    border: 1px solid transparent;
}

.jeme-page .alert-secondary {
    background: #f4f6fb;
    border-color: var(--color-border);
}

.jeme-page .alert ul {
    padding-left: 1.1rem;
}

.jeme-page .alert li + li {
    margin-top: 0.25rem;
}

/* Upload fields -------------------------------------------------------------- */

.jeme-page .upload-zone {
    border: 1px dashed var(--color-border-strong);
    border-radius: 14px;
    padding: 1.25rem;
    background: #fbfcfe;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.jeme-page .upload-zone:focus-within,
.jeme-page .upload-zone:hover {
    border-color: var(--color-primary-mid);
    background: #f5f9ff;
}

.jeme-page input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--color-border-strong);
    background: var(--color-surface);
    font-size: 0.92rem;
}

.jeme-page input[type="file"]:focus {
    border-color: var(--color-primary-mid);
    box-shadow: 0 0 0 0.2rem var(--color-primary-light);
    outline: none;
}

.jeme-page .form-label {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.jeme-page .form-text,
.jeme-page .badge.bg-light {
    color: var(--color-text-muted);
}

/* Document list rows ---------------------------------------------------------- */

.jeme-page .list-group-item {
    border-color: var(--color-border);
    padding: 0.85rem 1rem;
}

.jeme-page .list-group-item:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.jeme-page .list-group-item:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Status badges reuse .badge-soft from the shared stylesheet; only spacing
   is refined here so JEME statuses stay visually consistent with the rest
   of the platform. */
.jeme-page .badge-soft {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
}

/* Consent / government-notice callouts ---------------------------------------- */

.jeme-page .gov-notice {
    border-left: 4px solid var(--color-primary-mid);
    background: #f4f8ff;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
}

/* Buttons ----------------------------------------------------------------------- */

.jeme-page .btn {
    border-radius: 10px;
    font-weight: 600;
}

.jeme-page .btn-primary {
    background: var(--color-primary-mid);
    border-color: var(--color-primary-mid);
}

.jeme-page .btn-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Mobile responsiveness --------------------------------------------------------- */

@media (max-width: 767.98px) {
    .jeme-page .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .jeme-hero {
        padding: 1.5rem;
        text-align: center;
    }

    .jeme-page .card-body {
        padding: 1rem;
    }

    .jeme-page .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* Keep the primary submit actions reachable without hunting for them
       on long forms — this is the most common complaint on the upload
       flow when the form runs past one screen height on a phone. */
    .jeme-page .jeme-sticky-actions {
        position: sticky;
        bottom: 0;
        background: var(--color-surface);
        padding: 0.75rem 0;
        margin: 0 -0.25rem;
        box-shadow: 0 -8px 16px rgba(15, 32, 67, 0.08);
        z-index: 5;
    }

    .jeme-page .btn {
        min-height: 44px;
    }

    .jeme-page input[type="file"] {
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .jeme-page h1 {
        font-size: 1.5rem;
    }

    .jeme-page .stat-card .value {
        font-size: 1.2rem;
    }
}
