:root {
    --primary: #003366;
    --header-bg: #1a1a1a;
    --footer-bg: #1a1a1a;
    --text-main: #333;
    --container-max: 1200px;
}

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

body {
    font-family: 'Inter', Arial;
    background: #f0f0f0;
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container {
    max-width: var(--container-max);
    margin: auto;
    padding: 0 24px;
}

/* HEADER */

.portal-header {
    background: var(--header-bg);
    color: white;
    padding: 22px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
    /* BOLD TITLE */
    letter-spacing: .3px;
}

.portal-nav {
    display: flex;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 700;
    /* BOLD LANGUAGE */
    font-size: 16px;
}

.nav-item:hover {
    text-decoration: underline;
}


/* MAIN */

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 0;
}

.form-container-outer {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
}


/* LOADER */

.loader-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}


/* FOOTER */



.portal-footer {
    background: #1a1a1a;
    color: white;
    padding: 29px 0;
    /* Reduced height */
    position: relative;
    overflow: hidden;
}

/* LEFT DIAGONAL */

/* .footer-shape-left {
    position: absolute;
    left: -160px;
    bottom: 0;
    width: 25%;
    height: 170%;
    background: rgba(255, 255, 255, 0.05);
    transform: skewX(-35deg);
    z-index: 1;
} */

.footer-shape-left {
    position: absolute;
    left: -120px;   /* increase this */
    bottom: 0;
    width: 25%;   /* fixed width works better */
    height: 170%;
    background: rgba(255,255,255,0.05);
    transform: skewX(-35deg);
    z-index: 1;
}

/* RIGHT DIAGONAL */

.footer-shape-right {
    position: absolute;
    right: -120px;
    bottom: 0;
    width: 25%;
    height: 170%;
    background: rgba(255, 255, 255, 0.05);
    transform: skewX(-35deg);
    z-index: 1;
}

/* FOOTER CONTENT */

.footer-inner {
    position: relative;
    z-index: 2;
    padding-left:90px;

}

.footer-nav {
    display: flex;
    gap: 24px;
    margin-bottom: 10px;
}

.footer-nav a {
    color: white;
    font-size: 17px;
     padding:8px;
    text-decoration: underline;
}

.footer-nav a:hover {
    text-decoration: none;
}

.copyright {
    font-size: 14px;
    opacity: .9;
}

.copyright a {
    color: white;
    text-decoration: underline;
}

.copyright a:hover {
    text-decoration: none;
}


/* ANGLED FOOTER SHAPE */

.footer-bg-shape {
    position: absolute;
    right: -150px;
    top: 0;
    height: 100%;
    width: 60%;
    background: rgba(255, 255, 255, .05);
    transform: skewX(-35deg);
}


/* FORMIO BUTTON */

.formio-form .btn-primary {
    background: #0076d1 !important;
    border-color: #0076d1 !important;
    font-weight: 600;
    padding: 10px 28px !important;
    border-radius: 4px;
}


/* RESPONSIVE */

@media (max-width:768px) {

    .header-title {
        font-size: 18px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }

}



.portal-footer .container {
    padding-left: 140px;   
}