/* ============================================================
   STAFF CIVIL LIST AND PROFILE DIRECTORY
   COMPLETE APPLICATION CSS
   ============================================================ */


/* ============================================================
   RESET
   ============================================================ */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    padding: 0;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background: #f4f7fb;

    color: #172033;

    line-height: 1.5;
}


a {
    color: inherit;
}


button,
input,
select,
textarea {
    font-family: inherit;
}



/* ============================================================
   GENERAL CONTAINER
   ============================================================ */

.wrap {
    width: 100%;

    max-width: 760px;

    margin: 0 auto;

    padding: 18px;
}



/* ============================================================
   BRAND
   ============================================================ */

.brand {
    text-align: center;

    margin:
        10px
        0
        20px;
}


.brand h1 {
    margin-bottom: 6px;
}



/* ============================================================
   GENERAL CARD
   ============================================================ */

.card {
    background: #ffffff;

    border-radius: 20px;

    padding: 22px;

    margin-bottom: 16px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.06);
}



/* ============================================================
   HEADINGS
   ============================================================ */

h1 {
    font-size: 26px;

    line-height: 1.25;
}


h2 {
    font-size: 22px;

    line-height: 1.35;
}


h3 {
    font-size: 18px;
}



/* ============================================================
   TOP NAVIGATION
   ============================================================ */

.topbar {
    min-height: 60px;

    background: #ffffff;

    border-bottom:
        1px solid
        #e4e9f1;

    display: grid;

    grid-template-columns:
        auto
        1fr
        auto;

    align-items: center;

    gap: 10px;

    padding:
        8px
        16px;

    position: sticky;

    top: 0;

    z-index: 100;

    box-shadow:
        0 2px 12px
        rgba(0, 0, 0, 0.04);
}


.topbar a {
    text-decoration: none;

    font-size: 14px;

    font-weight: 750;

    color: #1457d9;
}


.top-title {
    text-align: center;

    font-size: 15px;

    font-weight: 800;

    color: #172033;
}


.top-admin {
    text-align: right;
}



/* ============================================================
   WIZARD SHELL
   ============================================================ */

.wizard-shell {
    width: 100%;

    max-width: 680px;

    margin: 0 auto;

    padding:
        14px
        14px
        30px;
}



/* ============================================================
   APPLICATION HEADING
   ============================================================ */

.application-heading {
    text-align: center;

    padding:
        10px
        5px
        14px;
}


.application-heading h1 {
    margin:
        5px
        0;

    font-size: 25px;

    color: #102a56;
}


.application-heading p {
    margin: 4px 0;

    color: #687386;

    font-size: 14px;
}



/* ============================================================
   WIZARD PROGRESS
   ============================================================ */

.wizard-head {
    background: #ffffff;

    border-radius: 16px;

    padding:
        14px
        16px;

    margin-bottom: 14px;

    box-shadow:
        0 6px 20px
        rgba(0, 0, 0, 0.045);
}


.step-info {
    margin-bottom: 10px;

    font-size: 14px;

    color: #687386;
}


.step-info strong {
    color: #1457d9;
}


#stepTitle {
    font-weight: 650;
}


.progress {
    width: 100%;

    height: 9px;

    overflow: hidden;

    background: #e5eaf2;

    border-radius: 50px;
}


.progress i {
    display: block;

    width: 0;

    height: 100%;

    background: #1457d9;

    border-radius: 50px;

    transition:
        width
        0.3s
        ease;
}



/* ============================================================
   VERY IMPORTANT
   TRUE QUIZ MODE

   EVERY QUESTION IS HIDDEN BY DEFAULT.
   ONLY .active IS DISPLAYED.
   ============================================================ */

#wizardForm .quiz-card,
#wizardForm [data-step] {

    display: none !important;
}


#wizardForm .quiz-card.active,
#wizardForm [data-step].active {

    display: block !important;
}



/* ============================================================
   QUIZ CARD
   ============================================================ */

.quiz-card {
    width: 100%;

    min-height: 350px;

    background: #ffffff;

    border:
        1px solid
        #e8edf4;

    border-radius: 22px;

    padding: 26px;

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.07);

    animation:
        quizFade
        0.25s
        ease;
}


@keyframes quizFade {

    from {
        opacity: 0;

        transform:
            translateX(12px);
    }

    to {
        opacity: 1;

        transform:
            translateX(0);
    }
}



/* ============================================================
   QUESTION LABEL
   ============================================================ */

.question-label {
    display: inline-block;

    margin-bottom: 9px;

    padding:
        5px
        9px;

    border-radius: 8px;

    background: #eef3ff;

    color: #1457d9;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.5px;
}



/* ============================================================
   QUIZ HEADING
   ============================================================ */

.quiz-card h2 {
    margin:
        5px
        0
        22px;

    font-size: 23px;

    line-height: 1.35;

    color: #172033;
}


.quiz-card h2 strong {
    color: #1457d9;
}


.subheading {
    display: block;

    margin-top: 3px;

    font-size: 15px;

    font-weight: 500;

    color: #687386;
}



/* ============================================================
   REQUIRED
   ============================================================ */

.req {
    color: #c62828;

    font-weight: 900;
}



/* ============================================================
   INPUT FIELD
   ============================================================ */

.field {
    margin:
        14px
        0;
}


.field label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: 700;

    color: #344054;
}


input,
select,
textarea {

    width: 100%;

    min-height: 52px;

    padding:
        13px
        14px;

    border:
        1.5px solid
        #ccd4df;

    border-radius: 12px;

    outline: none;

    background: #ffffff;

    color: #172033;

    font-size: 16px;

    transition:
        border-color
        0.15s ease,
        box-shadow
        0.15s ease;
}


input:focus,
select:focus,
textarea:focus {

    border-color: #1457d9;

    box-shadow:
        0 0 0 3px
        rgba(20, 87, 217, 0.10);
}


input:disabled,
select:disabled,
textarea:disabled {

    background: #eef1f5;

    color: #8b95a5;

    cursor: not-allowed;
}


.field-disabled {
    opacity: 0.6;
}



/* ============================================================
   YES / NO CHOICE
   ============================================================ */

.choice {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 12px;

    margin:
        12px
        0;
}


.choice label {

    position: relative;

    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border:
        2px solid
        #e1e7f0;

    border-radius: 15px;

    padding: 15px;

    background: #ffffff;

    text-align: center;

    font-weight: 800;

    cursor: pointer;

    transition:
        0.18s ease;
}


.choice label:hover {
    border-color: #9cb8ee;

    background: #f7faff;
}


.choice input {

    width: 18px;

    height: 18px;

    min-height: auto;

    margin: 0;
}


.choice label:has(input:checked) {

    border-color: #1457d9;

    background: #eef4ff;

    color: #1457d9;
}



/* ============================================================
   NOT APPLICABLE
   ============================================================ */

.na-option {
    display: flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    margin-top: 16px;

    padding:
        10px
        13px;

    background: #f5f7fa;

    border:
        1px solid
        #e3e8ef;

    border-radius: 10px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 650;

    color: #4a5568;
}


.na-option input {

    width: 18px;

    height: 18px;

    min-height: auto;

    margin: 0;
}



/* ============================================================
   CONDITIONAL AREA
   ============================================================ */

.conditional {

    margin-top: 20px;

    padding: 17px;

    background: #f7f9fd;

    border:
        1px solid
        #e4eaf3;

    border-radius: 14px;
}


.conditional h3 {

    margin:
        0
        0
        5px;

    color: #1457d9;
}


.hidden {
    display: none !important;
}



/* ============================================================
   SCHOOL DETAILS
   ============================================================ */

.detail-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 10px;
}


.detail-grid > div {

    padding:
        13px
        14px;

    background: #f7f9fd;

    border:
        1px solid
        #edf0f5;

    border-radius: 12px;
}


.detail-grid small {

    display: block;

    margin-bottom: 4px;

    color: #687386;

    font-size: 12px;
}


.detail-grid b {

    display: block;

    word-break: break-word;

    font-size: 15px;

    color: #172033;
}



/* ============================================================
   NAVIGATION BUTTONS
   ============================================================ */

.navrow {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-top: 30px;
}


.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    border: 0;

    border-radius: 12px;

    padding:
        12px
        18px;

    text-decoration: none;

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform
        0.12s ease,
        opacity
        0.12s ease;

    background: #1457d9;

    color: #ffffff;
}


.btn:hover {
    opacity: 0.92;
}


.btn:active {
    transform: scale(0.98);
}


.btn-back {

    background: #eef3ff;

    color: #1457d9;
}


.btn-next {

    margin-left: auto;

    background: #1457d9;

    color: #ffffff;
}


.btn-submit {

    background: #16864b;

    color: #ffffff;
}



/* ============================================================
   REVIEW
   ============================================================ */

.review {
    margin-top: 15px;
}


.review-section {

    margin-bottom: 18px;

    overflow: hidden;

    border:
        1px solid
        #e4e9f0;

    border-radius: 14px;
}


.review-section h3 {

    margin: 0;

    padding:
        12px
        14px;

    background: #eef3ff;

    color: #1457d9;

    font-size: 15px;
}


.review-row {

    display: grid;

    grid-template-columns:
        42%
        58%;

    gap: 10px;

    padding:
        11px
        14px;

    border-bottom:
        1px solid
        #edf0f5;
}


.review-row:last-child {
    border-bottom: 0;
}


.review-row span {

    color: #687386;

    font-size: 13px;
}


.review-row strong {

    word-break: break-word;

    color: #172033;

    font-size: 14px;
}



/* ============================================================
   SUBMISSION WARNING
   ============================================================ */

.submit-warning {

    margin-top: 18px;

    padding: 14px;

    background: #fff8e8;

    border:
        1px solid
        #f1d58b;

    border-radius: 12px;

    color: #6c5313;
}


.submit-warning strong {
    display: block;

    margin-bottom: 4px;
}


.submit-warning p {
    margin: 0;

    font-size: 13px;
}



/* ============================================================
   MUTED
   ============================================================ */

.muted {

    color: #687386;

    font-size: 14px;
}



/* ============================================================
   FOOTER
   ============================================================ */

.app-footer,
.footer {

    text-align: center;

    padding:
        28px
        10px;

    color: #687386;

    font-size: 13px;
}


.app-footer strong {

    color: #344054;
}



/* ============================================================
   SOCIAL SHARING
   ============================================================ */

.share {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 7px;
}


.share a {

    display: inline-block;

    padding:
        9px
        12px;

    background: #eef3ff;

    border-radius: 10px;

    text-decoration: none;

    color: #174ea6;

    font-size: 13px;

    font-weight: 700;
}



/* ============================================================
   ADMIN UI
   ============================================================ */

.adminbar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 15px;
}


.adminnav {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.adminnav a {

    padding:
        9px
        12px;

    border-radius: 10px;

    background: #eef3ff;

    text-decoration: none;

    color: #1457d9;

    font-size: 14px;

    font-weight: 750;
}


.statgrid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}


.statcard {

    background: #ffffff;

    padding: 18px;

    border:
        1px solid
        #e9edf3;

    border-radius: 16px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.05);
}


.statcard strong {

    display: block;

    margin-top: 6px;

    color: #1457d9;

    font-size: 28px;
}


.menu-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}


.menu-grid a {

    display: block;

    padding: 18px;

    border:
        1px solid
        #e8edf4;

    border-radius: 14px;

    background: #ffffff;

    text-decoration: none;

    color: #172033;

    font-weight: 750;
}



/* ============================================================
   TABLE
   ============================================================ */

.table-responsive {

    width: 100%;

    overflow-x: auto;
}


table {

    width: 100%;

    border-collapse: collapse;

    background: #ffffff;
}


th,
td {

    padding:
        11px
        10px;

    border-bottom:
        1px solid
        #e8edf3;

    text-align: left;

    font-size: 14px;
}


th {

    background: #f6f8fb;

    color: #344054;

    font-weight: 800;
}



/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 650px) {

    .wizard-shell {

        padding:
            10px
            10px
            25px;
    }


    .application-heading h1 {

        font-size: 21px;
    }


    .quiz-card {

        min-height: 390px;

        padding:
            20px
            17px;

        border-radius: 18px;
    }


    .quiz-card h2 {

        font-size: 21px;
    }


    .detail-grid {

        grid-template-columns:
            1fr;
    }


    .choice {

        grid-template-columns:
            1fr
            1fr;
    }


    .navrow {

        margin-top: 25px;
    }


    .btn {

        min-height: 48px;

        padding:
            11px
            15px;
    }


    .review-row {

        grid-template-columns:
            1fr;

        gap: 3px;
    }


    .statgrid {

        grid-template-columns:
            1fr
            1fr;
    }


    .menu-grid {

        grid-template-columns:
            1fr;
    }

}



/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 390px) {

    .topbar {

        padding:
            8px
            10px;
    }


    .topbar a {

        font-size: 12px;
    }


    .top-title {

        font-size: 13px;
    }


    .quiz-card {

        padding:
            18px
            14px;
    }


    .choice label {

        padding:
            12px
            8px;

        font-size: 14px;
    }


    .navrow {

        gap: 8px;
    }


    .btn {

        padding:
            11px
            12px;

        font-size: 14px;
    }

}



/* ============================================================
   FINAL SAFETY RULE

   DO NOT REMOVE THIS SECTION.

   EVEN IF ANOTHER CSS FILE DEFINES .quiz-card AS BLOCK,
   INACTIVE QUESTIONS WILL STILL BE HIDDEN.
   ============================================================ */

form#wizardForm > section[data-step] {

    display: none !important;
}


form#wizardForm > section[data-step].active {

    display: block !important;
}