﻿:root {
    --brand-blue: #1e337d;
    --brand-blue-dark: #122056;
    --brand-red: #dc2626; /* new red accent */
}


/* --- General --- */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    margin: 0;
    padding: 0;
}

.required {
    color: red;
}

/* --- Banner --- */
.banner {
    position: relative;
    width: 100%;
    height: 280px;
    background: url('images/building_main.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

    .banner::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(30, 51, 125, 0.6);
    }

.banner-text {
    position: relative;
    z-index: 2;
}

    .banner-text h1 {
        font-size: 42px;
        font-weight: 700;
        letter-spacing: 1px;
        margin: 0;
    }

    .banner-text p {
        font-size: 18px;
        margin-top: 8px;
    }

/* --- Container (Main Box) --- */
.container {
    width: 950px;
    margin: 30px auto 50px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Ensures header and content align with rounded edges */
    border-top: none;
    padding: 30px 0 30px 0; /* add top & bottom padding */
}

/* --- Advert Section --- */
.advert {
    margin-bottom: 20px;
    border: none;
    box-shadow: none;
}

/* --- Advert Header (Unified Look) --- */
.advert-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 4px solid var(--brand-red); /* changed to red */
}

/* --- Advert Body (Reduced Spacing, Clean Layout) --- */
.advert-body {
    background-color: #ffffff;
    padding: 18px 26px 14px 26px; /* slightly reduced vertical padding */
    color: #0f172a;
    line-height: 1.40;
}

    .advert-body b {
        color: var(--brand-blue);
    }

    .advert-body ul {
        margin-top: 4px;
        margin-bottom: 10px;
        margin-left: 22px;
        line-height: 1.4;
    }

    .advert-body li {
        margin-bottom: 4px;
    }

    .advert-body a {
        color: var(--brand-blue);
        text-decoration: underline;
        font-weight: 500;
    }

    .advert-body .intro {
        font-size: 17px;
        font-weight: 700;
        color: var(--brand-blue);
        margin-bottom: 6px;
    }

    .advert-body .eligibility {
        font-weight: 700;
        color: var(--brand-blue);
        margin: 12px 0 6px 0;
    }

/* --- Form --- */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px; /* vertical spacing between fields */
    padding: 0 20px; /* space from container edges */
}

    .form-row label {
        width: 220px; /* fixed width for labels */
        font-weight: 500;
        color: #0f172a;
        text-align: left; /* left align text */
    }

    .form-row .textbox {
        flex: 1;
        padding: 8px 10px;
        border: 1px solid #cbd5e1;
        border-radius: 6px;
        font-size: 14px;
        max-width: 500px; /* prevent overly wide inputs */
    }

    /* Radio button & checkbox adjustments */
    .form-row .radio-list {
        display: flex;
        gap: 25px; /* spacing between options */
    }

.checkbox {
    padding: 0 20px; /* align with form rows */
    margin-top: 12px;
}

/* Button */
.btn {
    display: block;
    margin: 20px auto 0 auto; /* only top margin, bottom is handled by container padding */
    padding: 12px 42px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-dark));
    color: #ffffff;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.3px;
}

    .btn:hover {
        background: linear-gradient(90deg, var(--brand-blue-dark), #0c1538);
        transform: translateY(-1px);
    }

/* Validation errors */
.error {
    color: red;
    font-size: 13px;
    margin-left: 30px; /* aligns under input */
}

.message {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 15px 0;
    background: linear-gradient(90deg, #1e3a8a, #0f172a);
    color: #f8fafc;
    font-size: 14px;
    border-top: 3px solid var(--brand-red); /* changed to red */
}
