/* ============================================================
   ABC FORMS PORTAL
   Main Stylesheet
   ============================================================ */


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

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    background: #f4f6f8;
}

body {
    margin: 0;
    padding: 0;

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

    color: #1f2933;
    background: #f4f6f8;

    line-height: 1.4;
}


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

.site-header {
    width: 100%;

    background: #202c38;

    border-bottom: 5px solid #e2b528;
}

.header-content {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 24px 40px;

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

    gap: 30px;
}


/* ============================================================
   BRAND
   ============================================================ */

.brand {
    display: flex;
    align-items: center;

    gap: 18px;
}

.brand-mark {
    width: 70px;
    height: 70px;

    flex: 0 0 70px;

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

    border-radius: 12px;

    background: #e2b528;
    color: #202c38;

    font-size: 23px;
    font-weight: 800;

    letter-spacing: 1px;
}

.brand h1 {
    margin: 0 0 3px;

    color: #ffffff;

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

    line-height: 1.1;
}

.brand p {
    margin: 0;

    color: #c9d0d6;

    font-size: 15px;
}


/* ============================================================
   LANGUAGE SELECTOR
   ============================================================ */

.language-box {
    display: flex;
    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}

.language-label {
    color: #ffffff;

    font-size: 13px;
    font-weight: 600;
}

.language-buttons {
    display: flex;

    gap: 6px;
}

.language-button {
    min-height: 38px;

    padding: 8px 13px;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;

    background: transparent;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.language-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.language-button.active {
    background: #e2b528;
    border-color: #e2b528;

    color: #202c38;
}

.language-button:focus-visible {
    outline: 3px solid rgba(226, 181, 40, 0.45);
    outline-offset: 3px;
}


/* ============================================================
   MAIN PORTAL CONTAINER
   ============================================================ */

.portal-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 54px 40px 70px;
}


/* ============================================================
   WELCOME AREA
   ============================================================ */

.welcome {
    margin-bottom: 42px;
}

.welcome h2 {
    margin: 0 0 10px;

    color: #202c38;

    font-size: 34px;
    font-weight: 750;

    line-height: 1.15;
}

.welcome p {
    margin: 0;

    color: #69737d;

    font-size: 17px;
}


/* ============================================================
   PORTAL SECTIONS
   ============================================================ */

.portal-section {
    margin-bottom: 38px;

    padding: 32px;

    background: #ffffff;

    border: 1px solid #dce1e5;
    border-radius: 15px;

    box-shadow:
        0 4px 12px
        rgba(25, 35, 45, 0.06);
}


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

.section-header {
    min-height: 42px;

    margin-bottom: 28px;
    padding-bottom: 18px;

    display: flex;
    align-items: center;

    gap: 16px;

    border-bottom: 1px solid #dce1e5;
}

.section-header h2 {
    margin: 0;

    color: #27333e;

    font-size: 24px;
    font-weight: 750;

    line-height: 1.1;

    text-transform: uppercase;
}

.location-badge {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 5px 12px;

    border-radius: 20px;

    background: #f0f2f4;
    color: #606b75;

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

    white-space: nowrap;
}


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

.form-grid {
    display: grid;

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

    gap: 22px;
}


/* ============================================================
   FORM / RESOURCE BUTTON
   ============================================================ */

.form-button {
    width: 100%;
    min-height: 108px;

    padding: 20px 20px;

    display: flex;
    align-items: center;

    gap: 18px;

    border: 2px solid #e0e3e6;
    border-radius: 11px;

    background: #ffffff;
    color: #202c38;

    text-decoration: none;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease,
        background 0.15s ease;
}

.form-button:hover {
    border-color: #d2b148;

    background: #fffefa;

    box-shadow:
        0 5px 14px
        rgba(25, 35, 45, 0.08);

    transform: translateY(-1px);
}

.form-button:active {
    transform: translateY(0);
}

.form-button:focus-visible {
    outline: 3px solid rgba(226, 181, 40, 0.35);
    outline-offset: 3px;
}


/* ============================================================
   BUTTON ICON
   ============================================================ */

.button-icon {
    width: 54px;
    height: 54px;

    flex: 0 0 54px;

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

    border-radius: 10px;

    background: #f7f0d8;
    color: #826d13;

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

    line-height: 1;
}


/* ============================================================
   BUTTON TEXT
   ============================================================ */

.button-text {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.button-text strong {
    color: #202c38;

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

    line-height: 1.2;
}

.button-text small {
    color: #7a838c;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.4;
}


/* ============================================================
   BUTTON ARROW
   ============================================================ */

.arrow {
    flex: 0 0 auto;

    margin-left: auto;

    color: #a5adb4;

    font-size: 30px;
    font-weight: 300;

    line-height: 1;
}

.form-button:hover .arrow {
    color: #8a7314;
}


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

.site-footer {
    width: 100%;

    padding: 34px 20px;

    background: #202c38;

    color: #d3d8dd;

    text-align: center;
}

.site-footer p {
    margin: 0;

    font-size: 15px;
}

.site-footer .footer-small {
    margin-top: 4px;

    color: #8f99a2;

    font-size: 12px;
}


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

@media (max-width: 900px) {

    .header-content {
        padding-left: 26px;
        padding-right: 26px;
    }

    .portal-container {
        padding-left: 26px;
        padding-right: 26px;
    }

    .portal-section {
        padding: 26px;
    }

    .form-grid {
        gap: 16px;
    }

    .form-button {
        min-height: 105px;

        padding: 18px 16px;

        gap: 14px;
    }

    .button-icon {
        width: 48px;
        height: 48px;

        flex-basis: 48px;

        font-size: 22px;
    }

    .button-text strong {
        font-size: 16px;
    }

}


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

@media (max-width: 700px) {

    .site-header {
        border-bottom-width: 4px;
    }

    .header-content {
        padding: 20px 18px;

        flex-direction: column;
        align-items: flex-start;

        gap: 18px;
    }

    .brand {
        gap: 13px;
    }

    .brand-mark {
        width: 58px;
        height: 58px;

        flex-basis: 58px;

        border-radius: 9px;

        font-size: 20px;
    }

    .brand h1 {
        font-size: 24px;
    }

    .brand p {
        font-size: 13px;
    }


    /* LANGUAGE */

    .language-box {
        width: 100%;

        justify-content: space-between;

        padding-top: 14px;

        border-top: 1px solid
            rgba(255, 255, 255, 0.14);
    }

    .language-buttons {
        gap: 5px;
    }

    .language-button {
        min-height: 38px;

        padding-left: 12px;
        padding-right: 12px;
    }


    /* MAIN */

    .portal-container {
        padding:
            32px
            14px
            48px;
    }

    .welcome {
        margin-bottom: 28px;
    }

    .welcome h2 {
        font-size: 27px;
    }

    .welcome p {
        font-size: 15px;
    }


    /* SECTIONS */

    .portal-section {
        margin-bottom: 24px;

        padding: 22px 18px;

        border-radius: 12px;
    }

    .section-header {
        margin-bottom: 20px;
        padding-bottom: 14px;

        flex-wrap: wrap;

        gap: 9px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .location-badge {
        min-height: 25px;

        padding: 4px 9px;

        font-size: 11px;
    }


    /* GRID */

    .form-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    /* CARDS */

    .form-button {
        min-height: 94px;

        padding: 16px 14px;

        gap: 13px;

        border-radius: 9px;
    }

    .button-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;

        border-radius: 8px;

        font-size: 21px;
    }

    .button-text {
        gap: 3px;
    }

    .button-text strong {
        font-size: 15px;
    }

    .button-text small {
        font-size: 12px;
    }

    .arrow {
        font-size: 26px;
    }

}


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

@media (max-width: 420px) {

    .header-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand-mark {
        width: 52px;
        height: 52px;

        flex-basis: 52px;

        font-size: 18px;
    }

    .brand h1 {
        font-size: 21px;
    }

    .brand p {
        font-size: 12px;
    }

    .language-box {
        display: block;
    }

    .language-label {
        display: block;

        margin-bottom: 8px;
    }

    .language-buttons {
        width: 100%;
    }

    .language-button {
        flex: 1;
    }

    .portal-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .portal-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .form-button {
        padding-left: 12px;
        padding-right: 10px;

        gap: 11px;
    }

    .button-icon {
        width: 42px;
        height: 42px;

        flex-basis: 42px;

        font-size: 19px;
    }

}


/* ============================================================
   PRINT
   ============================================================ */

@media print {

    body {
        background: #ffffff;
    }

    .site-header,
    .site-footer {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .portal-container {
        max-width: none;

        padding: 25px;
    }

    .portal-section {
        break-inside: avoid;

        box-shadow: none;
    }

    .form-button {
        break-inside: avoid;

        box-shadow: none;
    }

}