/* ==========================================
   GTLE CHECK RESULTS PAGE
   INDEPENDENT CSS
========================================== */


/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==========================================
   BODY
========================================== */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #333;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


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

.header {
    width: 100%;
    min-height: 82px;

    background: #ffffff;

    padding: 12px 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);

    position: relative;
    z-index: 10;
}


/* ==========================================
   LOGO AREA
========================================== */

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}


/* ==========================================
   LOGO IMAGE
========================================== */

.logo-image {
    width: 62px;
    height: 62px;

    object-fit: contain;

    display: block;
}


/* ==========================================
   LOGO TEXT
========================================== */

.logo-text h1 {
    color: #003b73;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.2;

    margin-bottom: 5px;
}


.logo-text p {
    color: #666;

    font-size: 13px;

    line-height: 1.3;
}


/* ==========================================
   NAVIGATION
========================================== */

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}


nav a {
    color: #003b73;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    padding: 8px 5px;

    transition: all 0.3s ease;
}


nav a:hover {
    color: #b42318;
}


/* ==========================================
   MAIN RESULTS AREA
========================================== */

.results-page {
    flex: 1;

    width: 100%;

    padding: 65px 20px 70px;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}


/* ==========================================
   RESULTS CONTAINER
========================================== */

.results-container {
    width: 100%;
    max-width: 520px;

    background: #ffffff;

    padding: 42px 40px;

    border-radius: 12px;

    border: 1px solid #e4e8ed;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);
}


/* ==========================================
   PAGE TITLE
========================================== */

.results-container h2 {
    color: #003b73;

    text-align: center;

    font-size: 28px;
    font-weight: 700;

    line-height: 1.3;

    margin-bottom: 12px;
}


/* ==========================================
   INSTRUCTION
========================================== */

.instruction {
    color: #666;

    text-align: center;

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 32px;
}


/* ==========================================
   FORM
========================================== */

#resultsForm {
    width: 100%;
}


/* ==========================================
   FORM GROUP
========================================== */

.form-group {
    width: 100%;

    margin-bottom: 22px;
}


/* ==========================================
   LABEL
========================================== */

.form-group label {
    display: block;

    color: #003b73;

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 8px;
}


/* ==========================================
   INPUT AND SELECT
========================================== */

.form-group input,
.form-group select {

    width: 100%;

    height: 50px;

    padding: 0 14px;

    background: #ffffff;

    border: 1px solid #cfd6dd;

    border-radius: 6px;

    color: #333;

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

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* ==========================================
   INPUT PLACEHOLDER
========================================== */

.form-group input::placeholder {
    color: #999;
}


/* ==========================================
   INPUT FOCUS
========================================== */

.form-group input:focus,
.form-group select:focus {

    border-color: #003b73;

    box-shadow:
        0 0 0 3px rgba(0, 59, 115, 0.10);
}


/* ==========================================
   CHECK RESULT BUTTON
========================================== */

.check-btn {

    width: 100%;

    height: 50px;

    margin-top: 5px;

    border: none;

    border-radius: 6px;

    background: #b42318;

    color: #ffffff;

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

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
}


.check-btn:hover {

    background: #941c13;

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px rgba(180, 35, 24, 0.20);
}


.check-btn:active {
    transform: translateY(0);
}


.check-btn:disabled {

    opacity: 0.65;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


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

#resultMessage {

    width: 100%;

    margin-top: 22px;

    text-align: center;

    font-size: 14px;

    line-height: 1.6;
}


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

.error-message {

    padding: 15px;

    background: #fff1f0;

    border: 1px solid #f1c0bc;

    border-radius: 7px;

    color: #b42318;
}


.error-message h3 {
    margin-bottom: 6px;

    font-size: 16px;
}


.error-message p {
    font-size: 13px;
}


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

.success-message {

    padding: 15px;

    background: #edf9f1;

    border: 1px solid #b9e3c5;

    border-radius: 7px;

    color: #18733b;
}


.success-message h3 {
    margin-bottom: 6px;

    font-size: 16px;
}


.success-message p {
    font-size: 13px;

    margin-top: 4px;
}


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

.loading-message {

    padding: 14px;

    background: #f0f5fa;

    border: 1px solid #d3e0eb;

    border-radius: 7px;

    color: #003b73;

    font-weight: 600;
}


/* ==========================================
   BACK TO HOME
========================================== */

.back-home {

    display: block;

    width: fit-content;

    margin: 28px auto 0;

    color: #003b73;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: color 0.3s ease;
}


.back-home:hover {

    color: #b42318;

    text-decoration: underline;
}


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

footer {

    width: 100%;

    background: #003b73;

    color: #ffffff;

    text-align: center;

    padding: 18px 15px;

    font-size: 13px;
}


footer p {
    margin: 0;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 768px) {

    .header {

        padding: 12px 4%;
    }


    .logo-image {

        width: 54px;
        height: 54px;
    }


    .logo-text h1 {

        font-size: 16px;
    }


    .logo-text p {

        font-size: 11px;
    }


    nav {

        gap: 15px;
    }


    nav a {

        font-size: 13px;
    }


    .results-page {

        padding: 45px 18px 55px;
    }


    .results-container {

        padding: 35px 30px;
    }


    .results-container h2 {

        font-size: 24px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .header {

        flex-direction: column;

        gap: 12px;

        padding: 14px 20px;
    }


    .logo-area {

        width: 100%;

        justify-content: center;

        text-align: center;
    }


    .logo-image {

        width: 50px;
        height: 50px;
    }


    .logo-text h1 {

        font-size: 15px;
    }


    .logo-text p {

        font-size: 10px;
    }


    nav {

        width: 100%;

        justify-content: center;

        gap: 25px;
    }


    nav a {

        font-size: 13px;
    }


    .results-page {

        padding: 30px 14px 45px;
    }


    .results-container {

        padding: 28px 20px;

        border-radius: 9px;
    }


    .results-container h2 {

        font-size: 21px;
    }


    .instruction {

        font-size: 13px;

        margin-bottom: 25px;
    }


    .form-group input,
    .form-group select,
    .check-btn {

        height: 48px;
    }


    footer {

        font-size: 12px;

        padding: 16px 10px;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 400px) {

    .logo-area {

        gap: 8px;
    }


    .logo-image {

        width: 44px;
        height: 44px;
    }


    .logo-text h1 {

        font-size: 13px;
    }


    .logo-text p {

        font-size: 9px;
    }


    nav {

        gap: 18px;
    }


    nav a {

        font-size: 11px;
    }


    .results-container {

        padding: 24px 16px;
    }


    .results-container h2 {

        font-size: 19px;
    }

}