
/* ==========================================================
   e-PLEDGE PORTAL — COMPLETE style.css
   Designed for the supplied index.php
   ========================================================== */

/* 1. GLOBAL */
*,
*::before,
*::after {
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background: #f4f7fb;
    color: #243247;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    color: #1759a6;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* 2. HEADER */
.site-header {
    background: #fff;
    border-bottom: 1px solid #dce4ef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    color: #173b62;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.site-header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.site-header nav a {
    color: #24568b;
    font-weight: 600;
    text-decoration: none;
}

.site-header nav a:hover {
    text-decoration: underline;
}

/* 3. GENERAL CONTAINER */
.container {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto;
}

/* 4. FULL-WIDTH BANNER */
.official-banner.banner-slider {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

/* Keep banner image proportional and uncropped */
.banner-slides {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    overflow: hidden;
    background: #fff;
}

.banner-slide {
    display: none;
    width: 100%;
    height: auto;
}

.banner-slide.is-active {
    display: block;
    width: 100%;
    height: auto;
    animation: bannerFade .35s ease;
}

.banner-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

/* Support the official banner when used without the slider */
.official-banner:not(.banner-slider) > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    margin: 0 auto;
}

/* Banner animation */
@keyframes bannerFade {
    from {
        opacity: .65;
    }
    to {
        opacity: 1;
    }
}

/* 5. SLIDER ARROWS */
.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 48px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid #ffffffb5;
    border-radius: 9px;
    background: #142b45b8;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px #0002;
}

.slider-arrow:hover {
    background: #10243be8;
}

.slider-arrow:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

/* 6. SLIDER DOTS */
.slider-dots {
    position: absolute;
    z-index: 2;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    pointer-events: auto;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #526274a8;
    box-shadow: 0 1px 4px #0004;
    cursor: pointer;
}

.slider-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

/* 7. REGISTRATION INTRODUCTION */
.intro-row {
    width: 100%;
    margin: 0;
    padding: 0 16px;
}

.intro-row > div {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 10px;
    color: #526b87;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.intro-row h2 {
    margin: 10px 0 14px;
    color: #173b62;
    font-size: 28px;
    line-height: 1.3;
}

.muted {
    color: #64748b;
}

.intro-row p {
    margin-top: 8px;
    margin-bottom: 16px;
}

/* 8. FORM PANEL
   The panel is the form itself in index.php */
form.panel.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 32px);
    max-width: 1500px;
    margin: 0 16px 24px;
    padding: 26px 24px;
    column-gap: 24px;
    row-gap: 20px;
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(23, 59, 98, .06);
}

/* 9. FORM FIELDS */
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.field label {
    display: block;
    margin: 0;
    color: #263c55;
    font-weight: 600;
}

.required {
    color: #c62828;
}

.optional {
    color: #718096;
    font-size: 13px;
    font-weight: 400;
}

/* Inputs and dropdowns */
.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #1e293b;
    font-size: 15px;
}

.field textarea {
    min-height: 100px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid #bfdbfe;
    outline-offset: 1px;
    border-color: #2563eb;
}

/* 10. FORM ACTIONS */
.form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}

.button,
button.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #1759a6;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
button.button:hover {
    filter: brightness(.94);
}

.button:focus-visible,
button.button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.button.primary,
button.button.primary,
.primary {
    background: #1759a6;
    color: #fff;
}

.button.secondary {
    background: #fff;
    border-color: #cbd5e1;
    color: #334155;
}

/* 11. ALERTS */
.alert {
    margin: 0 16px 18px;
    padding: 13px 16px;
    border-radius: 8px;
}

.alert.error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

/* 12. STATUS PILLS */
.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e8f1ff;
    color: #1759a6;
    font-size: 13px;
}

/* 13. TABLES */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 11px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

th {
    background: #eff5fc;
    color: #173b62;
}

/* 14. FOOTER */
.footer {
    padding: 22px 16px;
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    text-align: center;
}

/* 15. TABLET */
@media (max-width: 900px) {
    .banner-slide img {
        max-height: 280px;
    }

    form.panel.form-grid {
        column-gap: 18px;
        row-gap: 18px;
        padding: 22px 20px;
    }

    .intro-row h2 {
        font-size: 26px;
    }
}

/* 16. MOBILE */
@media (max-width: 650px) {
    .header-inner {
        width: calc(100% - 24px);
        padding: 12px 0;
        flex-wrap: wrap;
        gap: 12px;
    }

    .brand {
        font-size: 19px;
    }

    .site-header nav {
        gap: 12px;
    }

    .site-header nav a {
        font-size: 14px;
    }

    .official-banner.banner-slider {
        margin-bottom: 14px;
    }

    .banner-slide img {
        max-height: none;
    }

    .slider-arrow {
        width: 32px;
        height: 38px;
        font-size: 25px;
    }

    .slider-prev {
        left: 7px;
    }

    .slider-next {
        right: 7px;
    }

    .slider-dots {
        bottom: 7px;
        gap: 7px;
    }

    .slider-dot {
        width: 9px;
        height: 9px;
    }

    .intro-row {
        padding: 0 12px;
    }

    .eyebrow {
        font-size: 13px;
    }

    .intro-row h2 {
        font-size: 23px;
        margin: 8px 0 12px;
    }

    .intro-row p {
        margin-bottom: 14px;
    }

    form.panel.form-grid {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 20px);
        margin: 0 10px 20px;
        padding: 20px 16px;
        row-gap: 17px;
        border-radius: 10px;
    }

    .field {
        gap: 7px;
    }

    .field input,
    .field select,
    .field textarea {
        padding: 10px 12px;
    }

    .form-actions .button,
    .form-actions button.button {
        width: 100%;
    }

    .alert {
        margin-right: 10px;
        margin-left: 10px;
    }

    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 9px 8px;
    }

    .footer {
        margin-top: 22px;
    }
}

/* 17. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .banner-slide.is-active {
        animation: none;
    }
}


/* ===== Banner: correct size, no cropping ===== */

section.official-banner.banner-slider {
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

section.official-banner.banner-slider .banner-slides {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
    background: #fff;
}

section.official-banner.banner-slider .banner-slide {
    width: 100%;
    height: auto;
}

section.official-banner.banner-slider .banner-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

/* Mobile */
@media (max-width: 650px) {
    section.official-banner.banner-slider .banner-slide img {
        width: 100%;
        height: auto;
        max-height: none;
    }
}

