* {
    box-sizing: border-box;

    margin: 0;

    padding: 0;
}


/* =====================================================
   GLOBAL
===================================================== */

html {
    scroll-behavior: smooth;

    scroll-padding-top: 30px;
}


body {
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #eef5ff,
            #f8fbff
        );

    color: #172033;

    line-height: 1.6;

    padding:
        45px 0;
}


.container {
    width:
        min(900px, 92%);

    margin:
        0 auto;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #173477,
            #2563eb
        );

    color: white;

    padding:
        42px 45px;

    border-radius:
        22px 22px 0 0;

    display: flex;

    justify-content: space-between;

    align-items: center;

    box-shadow:
        0 15px 35px
        rgba(37, 99, 235, 0.18);
}


.header::before {
    content: "";

    position: absolute;

    width: 240px;

    height: 240px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.08);

    right: -70px;

    top: -100px;
}


.header-content {
    position: relative;

    z-index: 1;
}


.eyebrow {
    text-transform: uppercase;

    letter-spacing: 2px;

    font-size: 0.72rem;

    font-weight: bold;

    opacity: 0.85;
}


.header h1 {
    font-size:
        clamp(2rem, 5vw, 3rem);

    margin:
        10px 0 5px;

    letter-spacing: -1px;
}


.subtitle {
    color:
        rgba(255, 255, 255, 0.82);

    max-width: 600px;
}


.header-icon {
    position: relative;

    z-index: 1;

    width: 85px;

    height: 85px;

    border:
        2px solid
        rgba(255, 255, 255, 0.45);

    border-radius: 50%;

    display: grid;

    place-items: center;

    font-size: 2.4rem;

    font-weight: 900;

    background:
        rgba(255, 255, 255, 0.12);

    transform: rotate(-8deg);
}


/* =====================================================
   CARD
===================================================== */

.card {
    background: white;

    padding:
        35px;

    border-radius:
        0 0 22px 22px;

    box-shadow:
        0 20px 45px
        rgba(15, 23, 42, 0.09);
}


/* =====================================================
   SECTION TITLE
===================================================== */

.section-title {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 28px;
}


.mini-label {
    font-size: 0.68rem;

    letter-spacing: 2px;

    font-weight: 900;

    color: #2563eb;
}


.section-title h2 {
    font-size: 1.55rem;

    margin:
        3px 0;
}


.section-title p {
    color: #64748b;

    font-size: 0.9rem;
}


.subject-count {
    min-width: 75px;

    height: 75px;

    border-radius: 16px;

    background: #eff6ff;

    color: #1d4ed8;

    display: grid;

    place-items: center;

    align-content: center;

    font-size: 1.7rem;

    font-weight: 900;
}


.subject-count small {
    display: block;

    font-size: 0.62rem;

    color: #64748b;

    font-weight: normal;
}


/* =====================================================
   INPUTS
===================================================== */

.inputs {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;

    margin-bottom: 28px;
}


label {
    display: block;

    font-weight: bold;

    color: #334155;
}


label span {
    display: block;

    font-size: 0.9rem;

    margin-bottom: 7px;
}


input {
    width: 100%;

    padding:
        14px;

    border:
        1.5px solid #d6deea;

    border-radius: 11px;

    outline: none;

    background: #f8fafc;

    color: #172033;

    font-size: 1rem;

    transition:
        border 0.25s,
        box-shadow 0.25s,
        background 0.25s;
}


input:hover {
    background: white;

    border-color: #93b4ee;
}


input:focus {
    background: white;

    border-color: #2563eb;

    box-shadow:
        0 0 0 4px
        rgba(37, 99, 235, 0.1);
}


.last-subject {
    grid-column: 1 / -1;
}


/* =====================================================
   BUTTONS
===================================================== */

.actions {
    display: flex;

    gap: 12px;

    padding-top: 3px;
}


button {
    border: 0;

    border-radius: 10px;

    padding:
        14px 22px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: white;

    font-weight: bold;

    cursor: pointer;

    font-size: 0.95rem;

    transition:
        transform 0.25s,
        box-shadow 0.25s;
}


button span {
    margin-left: 8px;

    font-size: 1.1rem;
}


button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 8px 18px
        rgba(37, 99, 235, 0.25);
}


.reset {
    background: #64748b;

    box-shadow: none;
}


.reset:hover {
    background: #475569;

    box-shadow:
        0 8px 18px
        rgba(100, 116, 139, 0.2);
}


/* =====================================================
   RESULT
===================================================== */

.result {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 13px;

    margin-top: 32px;

    padding-top: 28px;

    border-top:
        1px solid #e2e8f0;
}


.result-card {
    background:
        linear-gradient(
            145deg,
            #f8fbff,
            #eff6ff
        );

    border:
        1px solid #dbeafe;

    padding:
        20px 15px;

    border-radius: 14px;

    text-align: center;

    transition: 0.25s;
}


.result-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 8px 20px
        rgba(37, 99, 235, 0.08);
}


.result-card span {
    display: block;

    color: #64748b;

    font-size: 0.68rem;

    letter-spacing: 1.5px;

    font-weight: bold;
}


.result-card strong {
    display: inline-block;

    font-size: 1.75rem;

    margin-top: 4px;

    color: #1d4ed8;
}


.result-card small {
    display: block;

    color: #94a3b8;

    font-size: 0.7rem;
}


.status-card strong {
    color: #15803d;
}


/* =====================================================
   MESSAGE
===================================================== */

.message-box {
    min-height: 25px;

    margin-top: 18px;

    text-align: center;
}


#message {
    font-weight: bold;

    color: #334155;

    font-size: 0.92rem;
}


.hidden {
    display: none !important;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    text-align: center;

    color: #64748b;

    padding:
        24px;

    font-size: 0.8rem;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 700px) {

    body {
        padding:
            25px 0;
    }


    .header {
        padding:
            32px 25px;
    }


    .header-icon {
        width: 65px;

        height: 65px;

        font-size: 1.8rem;
    }


    .card {
        padding:
            25px;
    }


    .inputs,
    .result {
        grid-template-columns: 1fr;
    }


    .last-subject {
        grid-column: auto;
    }

}


@media (max-width: 480px) {

    .header {
        display: block;
    }


    .header-icon {
        margin-top: 20px;
    }


    .section-title {
        align-items: flex-start;
    }


    .subject-count {
        min-width: 60px;

        height: 60px;
    }


    .actions {
        flex-direction: column;
    }


    button {
        width: 100%;
    }

}