/* =============================================================================
   STF Admissions — Thank You Modal Styles
   File: admissions-modal.css

   Brand tokens
   ─────────────────────────────────────────────────
   Font:               DM Sans
   Primary bg:         #f7f9f7  (off-white)
   Primary dark:       #000e1a  (near-black navy)
   Primary blue:       #018fff  (site blue)
   Accent orange:      #fe7101
   Accent green:       #1fc16c
   ─────────────────────────────────────────────────

   STRUCTURE:
   #stf-modal-overlay          ← full-screen dark backdrop
     └── #stf-modal-box        ← the modal card
           ├── #stf-modal-dismiss      ← × button (top-right)
           ├── #stf-modal-icon         ← circular icon
           ├── #stf-modal-school       ← small eyebrow label
           ├── #stf-modal-heading      ← "Thank you, [Name]!"
           │     └── #stf-modal-name   ← name span
           ├── #stf-modal-body         ← confirmation paragraph
           └── #stf-modal-close        ← Done button
============================================================================= */

/* ── Google Font import ──────────────────────────────────────────────────────
   Remove this line if DM Sans is already loaded by your main stylesheet.   */

/* ── Overlay ─────────────────────────────────────────────────────────────────
   Full-screen backdrop. Matches the deep navy of your brand (#000e1a).     */

#stf-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 14, 26, 0.72);
    /* #000e1a at 72% opacity */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: "DM Sans", sans-serif;
}

#stf-modal-overlay.stf-visible {
    display: flex;
    animation: stfFadeIn 0.2s ease;
}

@keyframes stfFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Modal card ──────────────────────────────────────────────────────────────
   Off-white background (#f7f9f7) — lifted directly from your site palette.
   Left border accent in site blue gives it a clean editorial feel.         */

#stf-modal-box {
    background: #f7f9f7;
    border-radius: 4px;
    /* sharp-ish corners â€” matches site style */
    border-left: 0px solid #018fff;
    /* blue left accent stripe */
    padding: 48px 44px 44px;
    max-width: 500px;
    width: 100%;
    text-align: left;
    /* left-aligned â€” matches form layout */
    box-shadow:
        0 2px 8px rgba(0, 14, 26, 0.08),
        0 24px 64px rgba(0, 14, 26, 0.16);
    position: relative;
    animation: stfSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes stfSlideUp {
    from {
        transform: translateY(24px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ── × Dismiss button ────────────────────────────────────────────────────────*/

#stf-modal-dismiss {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #cccccc;
    /* site blue */
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    font-family: 'DM Sans';
    font-weight: 200;
    opacity: 0.75;
    transition: opacity 0.15s;
}

#stf-modal-dismiss:hover {
    opacity: 1;
}

/* ── Icon circle ─────────────────────────────────────────────────────────────
   Green accent (#1fc16c) — your success/positive secondary colour.         */

#stf-modal-icon {
    width: 56px;
    height: 56px;
    background: rgba(31, 193, 108, 0.12);
    /* #1fc16c at low opacity */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
    /* left-aligned â€” no auto margin */
}

#stf-modal-icon svg {
    width: 28px;
    height: 28px;
}

#stf-modal-icon .stf-icon-circle {
    fill: #1fc16c;
    opacity: 0.15;
}

#stf-modal-icon .stf-icon-check {
    stroke: #1fc16c;
    /* green tick */
}

/* ── Eyebrow label ───────────────────────────────────────────────────────────
   Small uppercase label — site blue, tight tracking.                       */

#stf-modal-school {
    font-family: "DM Sans";
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #018fff;
    /* site blue */
    margin: 0 0 10px;
}

/* ── Main heading ────────────────────────────────────────────────────────────
   Deep navy — your primary dark brand colour.                               */

#stf-modal-heading {
    font-family: "DM Sans";
    font-size: 28px;
    font-weight: 700;
    color: #000e1a;
    /* primary dark */
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -1px;
}

/* The name portion â€” highlighted in site blue */
#stf-modal-name {
    color: #018fff;
}

/* ── Body paragraph ──────────────────────────────────────────────────────────*/

#stf-modal-body {
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(0, 14, 26, 0.7);
    /* #000e1a at 65% â€” softer than heading */
    line-height: 1.5;
    margin: 0 0 26px;
}

/* ── Divider line ────────────────────────────────────────────────────────────
   A subtle rule between body text and the button — optional.
   Remove the ::before block entirely if you prefer no divider.             */

#stf-modal-body::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #e2e2e2;
    /* blue underline accent */
    margin: 36px 0 0;
}

/* ── Done button ─────────────────────────────────────────────────────────────
   Orange CTA (#fe7101) — your accent colour, matches the submit button.    */

#stf-modal-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fe7101;
    /* orange â€” matches site's CTA buttons */
    color: #ffffff;
    border: none;
    border-radius: 50px;
    /* fully rounded â€” matches your submit btn */
    padding: 14px 32px;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition:
        background 0.2s,
        transform 0.15s;
}

#stf-modal-close:hover {
    background: #1fc16c;
    /* light green on hover */
    transform: translateY(-1px);
}

#stf-modal-close:active {
    transform: translateY(0);
}

/* ── Mobile ──────────────────────────────────────────────────────────────────*/

@media (max-width: 560px) {
    #stf-modal-box {
        padding: 40px 28px 36px;
        border-radius: 4px;
    }

    #stf-modal-heading {
        font-size: 24px;
    }

    #stf-modal-body {
        font-size: 14px;
    }

    #stf-modal-close {
        width: 100%;
        justify-content: center;
    }
}