﻿
:root {
    --forest: #1E5A2B;
    --deep-green: #2D6A36;
    --gold: #D4AF37;
    --gold-soft: #f4e9c8;
    --white: #FFFFFF;
    --bg: #F7F8F6;
    --ink: #23301F;
    --line: #E4E7E1;
    --max: 1280px;
    --field-h: 32px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
}

body {
    font-family: 'Source Sans 3',sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 13.5px;
    line-height: 1.4;
    padding-bottom: 52px; /* room for sticky footer */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Cormorant Garamond',serif;
    letter-spacing: .2px;
}

.page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
}

/* ---------- SITE HEADER ---------- */
.site-header {
    background: var(--forest);
    border-bottom: 2px solid var(--gold);
}

    .site-header .page {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 14px;
        flex-wrap: wrap;
    }

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crest {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

    .crest img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.brand-title {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.1;
    font-family: 'Cormorant Garamond',serif;
}

.brand-sub {
    color: var(--gold);
    font-size: .68rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.year-chip {
    border: 1px solid rgba(212,175,55,.55);
    background: rgba(212,175,55,.12);
    color: var(--gold-soft);
    border-radius: 3px;
    padding: 3px 11px;
    font-size: .68rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- INFO BANNER (school profile card) ---------- */
.info-banner {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

    .info-banner .page {
        padding: 0;
    }

.info-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.info-crest {
    width: 0;
    flex-shrink: 0;
    display: none;
}

    .info-crest .big-crest {
        display: none;
    }

.info-main {
    flex: 0 0 auto;
    padding: 7px 16px;
    min-width: 200px;
    border-right: 1px solid var(--line);
}

    .info-main h2 {
        color: var(--forest);
        font-weight: 700;
        font-size: 1.55rem;
        margin: 0 0 1px;
        display: inline;
    }

.info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .7rem;
    color: #55624f;
    margin-top: 1px;
}

    .info-meta i {
        color: var(--gold);
        margin-right: 4px;
    }

.info-strip {
    flex: 1;
    background: transparent;
    border-top: none;
    padding: 7px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}

.info-strip-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .info-strip-block h6 {
        color: var(--forest);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .6px;
        font-size: .62rem;
        margin: 0;
        white-space: nowrap;
    }

    .info-strip-block ul {
        list-style: none;
        padding: 0;
        margin: 0;
        font-size: .7rem;
        color: #3d4a37;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .info-strip-block li {
        padding: 0;
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

        .info-strip-block li i {
            color: var(--forest);
            font-size: .55rem;
        }

.fee-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--gold);
    border-radius: 3px;
    padding: 2px 10px;
    font-weight: 700;
    color: var(--forest);
    font-size: .74rem;
}

    .fee-pill small {
        font-weight: 500;
        color: #8a7330;
        font-size: .62rem;
    }

/* ---------- STEPPER (compact) ---------- */
.stepper-wrap {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

    .stepper-wrap .page {
        overflow: visible;
    }

.stepper {
    display: flex;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
}

    .stepper::-webkit-scrollbar {
        display: none;
    }

.step-item {
    flex: 1 0 auto;
    min-width: 68px;
    text-align: center;
    position: relative;
    padding: 0 2px;
    cursor: pointer;
}

.step-circle {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    color: #9aa69a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2px;
    font-weight: 600;
    font-size: .63rem;
    border: 1.3px solid var(--line);
    transition: .25s;
}

.step-item.active .step-circle {
    background: var(--forest);
    color: #fff;
    border-color: var(--forest);
    box-shadow: 0 0 0 2px rgba(30,90,43,.12);
}

.step-item.done .step-circle {
    background: var(--gold);
    color: #3a2e08;
    border-color: var(--gold);
}

.step-label {
    font-size: .58rem;
    font-weight: 600;
    color: #9aa69a;
    letter-spacing: .1px;
}

.step-item.active .step-label {
    color: var(--forest);
}

.step-item.done .step-label {
    color: #9c7c25;
}

.step-line {
    position: absolute;
    top: 9px;
    left: -50%;
    width: 100%;
    height: 1.3px;
    background: var(--line);
    z-index: -1;
}

.step-item:first-child .step-line {
    display: none;
}

.step-item.done .step-line, .step-item.active .step-line {
    background: var(--gold);
}

/* ---------- CONTENT ---------- */
.content-area {
    padding: 12px 0 18px;
    flex: 1 0 auto;
}

.step-eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: .6rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.step-title {
    color: var(--forest);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1px;
}

.step-sub {
    color: #5b6a56;
    font-size: .76rem;
    margin-bottom: 8px;
    max-width: 680px;
}

.divider-gold {
    width: 38px;
    height: 2px;
    background: var(--gold);
    margin: 5px 0 10px;
    border-radius: 2px;
}

.section-block {
    padding: 9px 0 10px;
    border-bottom: 1px solid var(--line);
}

    .section-block:last-of-type {
        border-bottom: none;
        padding-bottom: 0;
    }

.section-heading {
    color: var(--forest);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .66rem;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
}

    .section-heading::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
    }

.form-label {
    font-weight: 600;
    font-size: .68rem;
    color: var(--ink);
    margin-bottom: 2px;
    letter-spacing: .1px;
    display: block;
}

.form-control, .form-select {
    border-radius: 3px;
    border: 1.2px solid var(--line);
    padding: 4px 9px;
    height: var(--field-h);
    font-size: .78rem;
    transition: .2s;
    background: #fff;
}

.w-compact {
    max-width: 150px;
}

textarea.form-control {
    height: auto;
}

.form-control:focus, .form-select:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 2px rgba(30,90,43,0.10);
}

.form-control:disabled, .form-select:disabled {
    background: #f3f4f1;
    color: #9aa69a;
}

.required-star {
    color: #b3402f;
}

.form-text {
    font-size: .66rem;
}

.row.g-3 {
    --bs-gutter-y: .5rem;
}

.btn-forest {
    background: var(--forest);
    border: 1px solid var(--forest);
    color: #fff;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 4px;
    transition: .2s;
    font-size: .78rem;
    letter-spacing: .2px;
}

    .btn-forest:hover {
        background: var(--deep-green);
        color: #fff;
    }

    .btn-forest:disabled {
        opacity: .45;
    }

.btn-gold {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: #3a2e08;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 4px;
    font-size: .78rem;
    letter-spacing: .2px;
}

.btn-outline-forest {
    border: 1.2px solid var(--forest);
    color: var(--forest);
    font-weight: 600;
    background: transparent;
    border-radius: 4px;
    padding: 5px 15px;
    font-size: .78rem;
}

    .btn-outline-forest:hover {
        background: var(--forest);
        color: #fff;
    }

.btn-link-muted {
    border: none;
    background: none;
    color: #7c8a78;
    font-weight: 600;
    font-size: .75rem;
}

    .btn-link-muted:hover {
        color: var(--forest);
    }

/* ---------- STICKY FOOTER ---------- */
.footer-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 14px rgba(0,0,0,.05);
}

    .footer-actions .page {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 7px 24px;
        gap: 12px;
    }

.footer-step-info {
    color: #8a978a;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .2px;
    display: none;
}

@media (min-width:640px) {
    .footer-step-info {
        display: block;
    }
}

/* ---------- misc components ---------- */
.otp-box {
    letter-spacing: 4px;
    text-align: center;
    font-weight: 700;
}

.upload-card {
    border: 1.2px dashed var(--line);
    border-radius: 4px;
    padding: 9px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    background: #fff;
}

    .upload-card:hover {
        border-color: var(--gold);
        background: #fffdf6;
    }

    .upload-card.uploaded {
        border-color: var(--forest);
        background: #f4f9f4;
    }

.upload-icon {
    font-size: 1.05rem;
    color: var(--forest);
}

.progress {
    height: 3px;
    border-radius: 10px;
}

.progress-bar {
    background: var(--gold);
}

.review-section {
    border-left: 3px solid var(--gold);
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #fff;
}

    .review-section h6 {
        color: var(--forest);
        font-weight: 700;
        font-family: 'Cormorant Garamond',serif;
        font-size: .88rem;
        margin-bottom: 4px;
    }

.pay-method {
    border: 1.2px solid var(--line);
    border-radius: 4px;
    padding: 9px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    background: #fff;
}

    .pay-method.selected {
        border-color: var(--forest);
        background: #f4f9f4;
        box-shadow: 0 0 0 2px rgba(30,90,43,0.10);
    }

    .pay-method i {
        font-size: 1.05rem;
        color: var(--forest);
        display: block;
        margin-bottom: 3px;
    }

.success-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle,#eafbee,transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

    .success-circle i {
        font-size: 1.7rem;
        color: var(--forest);
    }

.fee-banner {
    background: linear-gradient(120deg,var(--forest),var(--deep-green));
    color: #fff;
    padding: 11px 18px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

footer.site-footer {
    background: var(--forest);
    color: rgba(255,255,255,.75);
    text-align: center;
    padding: 8px 0;
    font-size: .68rem;
    margin-top: 10px;
}

@media (max-width:768px) {
    .info-crest {
        display: none;
    }

    .info-main {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 10px 16px;
    }

    .info-strip {
        flex: 1 1 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 16px;
    }

    .info-strip-block {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 6px;
    }

        .info-strip-block ul {
            flex-direction: column;
            gap: 4px;
        }

        .info-strip-block li {
            white-space: normal;
        }

    .site-header .page {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .year-chip {
        align-self: flex-start;
    }

    .step-item {
        flex: 0 0 auto;
    }

    .footer-actions .page {
        padding: 8px 16px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "prev center next";
        align-items: center;
        gap: 8px;
    }

        .footer-actions .page > div:first-child {
            grid-area: prev;
        }

        .footer-actions .page > div:nth-child(2) {
            grid-area: center;
            justify-content: center;
            gap: 8px !important;
        }

        .footer-actions .page > div:last-child {
            grid-area: next;
            justify-self: end;
        }

    .footer-actions .btn {
        font-size: .72rem;
        padding: 7px 12px;
    }

    .footer-actions #footerPrevBtn .me-2 {
        margin-right: .25rem !important;
    }
}

@media (max-width:576px) {
    .page {
        padding: 0 16px;
    }

    .content-area {
        padding: 8px 0 14px;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .brand-title {
        font-size: 1.65rem;
    }

    .crest {
        width: 44px;
        height: 44px;
    }

    .info-strip {
        gap: 14px;
    }

    body {
        padding-bottom: 68px;
    }

    .footer-actions .page {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "prev next"
            "center center";
    }

        .footer-actions .page > div:nth-child(2) {
            width: 100%;
        }

    .footer-actions #footerSaveBtn {
        font-size: .7rem;
    }

    .w-compact {
        max-width: 100%;
    }
}


.dup-modal-content {
    border-radius: 14px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,.18);
}

.dup-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    background: #fdf3e7;
    color: #b3402f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

    .dup-modal-icon.is-complete {
        background: #f4f9f4;
        color: var(--forest, #1E5A2B);
    }

.dup-modal-appno {
    background: #f7f7f5;
    border-radius: 8px;
    padding: 10px 16px;
    display: inline-block;
}

#dupModalStatusBadge.status-incomplete {
    background: #fdf3e7;
    color: #9c7c25;
}

#dupModalStatusBadge.status-complete {
    background: #f4f9f4;
    color: #1E5A2B;
}