/* =========================================================
   GLOBAL STYLES & VARIABLES
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    /* African Union Green Theme */
    --au-green:       #006B3F;
    --au-green-dark:  #004d2e;
    --au-green-light: #009A44;
    --au-green-hover: #00834d;

    /* Accent Colors */
    --gold:      #fbbc05;
    --orange:    #e16435;
    --white:     #ffffff;
    --light:     #f0f4f0;
    --text-dark: #1a2e1a;
    --text-gray: #555;
    --text-muted: rgba(255,255,255,0.80);
}

html {
    scroll-behavior: smooth;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 4%;
    background: var(--au-green);
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
    transition: background 0.3s;
}

/* Logo */
.logo-sm {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

.nav-links a {
    margin: 0 0.7rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    padding: 0.35rem 0.1rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s, color 0.25s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* =========================================================
   NAV DROPDOWN
========================================================= */
.nav-links .has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* invisible bridge — keeps hover alive while mouse moves into the dropdown */
.nav-links .has-dropdown::before {
    content: "";
    position: absolute;
    top: 100%;
    left: -12px;
    right: -12px;
    height: 12px;
    z-index: 498;
}

.nav-links .has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.nav-links .has-dropdown > a::after {
    content: "▾";
    font-size: 0.65rem;
    line-height: 1;
    opacity: 0.85;
    transition: transform 0.22s;
    margin-top: 1px;
}

.nav-links .has-dropdown:hover > a::after,
.nav-links .has-dropdown.open > a::after {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--au-green-dark);
    border-radius: 10px;
    min-width: 230px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
    padding: 0.4rem 0;
    list-style: none;
    margin: 0;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

/* small triangle pointer */
.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--au-green-dark);
}

.nav-links .has-dropdown:hover .nav-dropdown,
.nav-links .has-dropdown.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-dropdown li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: rgba(255,255,255,0.88);
    font-size: 0.84rem;
    font-weight: 500;
    margin: 0;
    border-bottom: none !important;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}

.nav-dropdown li a:hover,
.nav-dropdown li a.active {
    background: rgba(255,255,255,0.12);
    color: var(--gold);
    border-bottom-color: transparent !important;
}

.nav-dropdown li:not(:last-child) a {
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* =========================================================
   MOBILE DROPDOWN ACCORDION
========================================================= */
.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: color 0.2s;
}

.mobile-dropdown-toggle:hover {
    color: var(--gold);
}

.mobile-dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.22s;
    flex-shrink: 0;
}

.mobile-dropdown-toggle.open .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-items {
    max-height: 0;
    flex-direction: column;
    background: rgba(0,0,0,0.18);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-dropdown-items.open {
    display: flex;
    max-height: 240px;
    visibility: visible;
    opacity: 1;
}

.mobile-dropdown-items a {
    padding: 0.65rem 0.5rem 0.65rem 1.5rem !important;
    font-size: 0.92rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.82) !important;
}

.mobile-dropdown-items a:hover {
    color: var(--gold) !important;
    padding-left: 1.8rem !important;
}

/* =========================================================
   LANGUAGE SWITCHER
========================================================= */
.lang-switcher {
    position: relative;
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    padding: 0.38rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.lang-btn:hover,
.lang-switcher.open .lang-btn {
    background: rgba(255,255,255,0.24);
    border-color: rgba(255,255,255,0.45);
}

.lang-globe {
    font-size: 0.95rem;
    line-height: 1;
}

.lang-caret {
    font-size: 0.58rem;
    opacity: 0.8;
    transition: transform 0.22s;
    margin-left: 1px;
}

.lang-switcher.open .lang-caret {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--au-green-dark);
    border-radius: 10px;
    min-width: 170px;
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    box-shadow: 0 10px 32px rgba(0,0,0,0.32);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 600;
    border: 1px solid rgba(255,255,255,0.1);
}

.lang-switcher.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 0.82rem;
    transition: background 0.15s, color 0.15s;
    border-bottom: none !important;
}

.lang-menu li:not(:last-child) a {
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

.lang-menu li a:hover,
.lang-menu li a.lang-active {
    background: rgba(255,255,255,0.12);
    color: var(--gold);
}

.lang-short {
    font-weight: 700;
    min-width: 22px;
    font-size: 0.78rem;
}

.lang-name {
    font-weight: 400;
    opacity: 0.82;
}

/* Nav action buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-actions .btn {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 25px;
    padding: 0.5rem 1.1rem;
    transition: all 0.25s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-login {
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}

.btn-login:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.btn-primary {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

/* =========================================================
   HAMBURGER BUTTON (mobile)
========================================================= */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.hamburger-btn:hover {
    background: rgba(255,255,255,0.15);
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   MOBILE NAV DRAWER
========================================================= */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-overlay.visible {
    opacity: 1;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--au-green-dark);
    z-index: 999;
    padding: 1.5rem 1.5rem 2rem;
    flex-direction: column;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.mobile-nav-header img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.mobile-nav-close:hover {
    background: rgba(255,255,255,0.15);
}

.mobile-nav a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav a:hover {
    color: var(--gold);
    padding-left: 1rem;
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.mobile-nav-actions .btn {
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s;
}

.mobile-nav-actions .btn-login {
    border: 1px solid rgba(255,255,255,0.6);
    color: var(--white);
}

.mobile-nav-actions .btn-login:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.mobile-nav-actions .btn-primary {
    background: var(--gold);
    color: #000;
    border: 1px solid var(--gold);
}

.mobile-nav-actions .btn-primary:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
    color: var(--white);
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 10s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1.04);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 77, 46, 0.80) 0%,
        rgba(0, 0, 0, 0.70) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    text-align: left;
    padding-top: 80px;
    animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing effect */
.typing-text {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: left;
    min-height: 120px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.typing-text::after {
    content: "|";
    color: var(--gold);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50%     { opacity: 1; }
    50.01%, 100%{ opacity: 0; }
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.90);
    min-height: 3.6rem;
}

/* JS-controlled subtitle visibility */
#hero-subtitle {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
#hero-subtitle.sub-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.cta-btn {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 0.95rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(251, 188, 5, 0.45);
}

.cta-btn:hover {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(225, 100, 53, 0.4);
    transform: translateY(-2px);
}

/* =========================================================
   GREEN DIVIDER STRIPE
========================================================= */
.section-stripe {
    height: 5px;
    background: linear-gradient(90deg, var(--au-green), var(--gold), var(--au-green-light));
}

/* =========================================================
   SYSTEM PROCESS FLOW
========================================================= */
.process-section {
    background: #fff;
    color: var(--text-dark);
    padding: 5rem 6%;
    text-align: center;
}

.process-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--au-green);
    margin-bottom: 0.8rem;
}

.process-section > p {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* 4 cards per row (8 cards = 2 rows) */
.process-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.flow-card {
    background: #f8fbf8;
    padding: 1.6rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 107, 63, 0.08);
    border-top: 4px solid var(--au-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.flow-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 24px rgba(0, 107, 63, 0.18);
}

.flow-card span {
    background: var(--au-green);
    color: var(--white);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.flow-card h3 {
    font-size: 1.05rem;
    color: var(--au-green);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.flow-card p {
    color: var(--text-gray);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* Download button inside flow cards */
.btn-view {
    display: inline-block;
    margin-top: 0.9rem;
    padding: 0.5rem 1.2rem;
    background: var(--au-green);
    color: var(--white);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.25s;
}

.btn-view:hover {
    background: var(--au-green-light);
    color: var(--white);
}

/* =========================================================
   CUSTOMIZATION / GOVERNANCE SECTION
========================================================= */
.customization-section {
    background: var(--au-green-dark);
    color: #fff;
    padding: 5rem 8%;
}

.customization-section .content {
    max-width: 820px;
    margin: 0 auto;
}

.customization-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.customization-section p {
    line-height: 1.8;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 1.8rem;
}

.customization-section ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.8rem 2rem;
}

.customization-section ul li {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.92);
    padding: 0.4rem 0;
    padding-left: 1.3rem;
    position: relative;
}

.customization-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
    background: var(--au-green-dark);
    color: #e8f0e8;
    padding: 3.5rem 6%;
    border-top: 4px solid var(--au-green-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem 3rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: var(--gold);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-logo h3 span {
    color: rgba(255,255,255,0.75);
    font-weight: 400;
}

.footer-logo p {
    color: rgba(255,255,255,0.75);
    margin-top: 0.5rem;
    line-height: 1.7;
    font-size: 0.92rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
    transition: color 0.25s, padding-left 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    font-size: 0.92rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.2rem;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.60);
    line-height: 1.6;
}

/* =========================================================
   ANNOUNCEMENT CARDS GRID
========================================================= */
.annoucment {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

/* =========================================================
   RESPONSIVE – TABLET (max 992px)
========================================================= */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .mobile-nav-overlay {
        display: block;
    }

    .process-flow {
        grid-template-columns: repeat(2, 1fr);
    }

    .annoucment {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-section,
    .customization-section {
        padding: 4rem 5%;
    }

    .footer {
        padding: 3rem 5%;
    }
}

/* =========================================================
   RESPONSIVE – MOBILE (max 768px)
========================================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 4%;
    }

    /* Hide desktop action buttons on small screens */
    .nav-actions {
        display: none;
    }

    .hero {
        padding: 0 5%;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        max-width: 95%;
        padding-top: 80px;
        text-align: center;
    }

    .typing-text {
        font-size: 2rem;
        min-height: 90px;
        text-align: center;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-btn {
        padding: 0.85rem 1.8rem;
    }

    .process-section {
        padding: 3.5rem 4%;
    }

    .process-section h2,
    .customization-section h2 {
        font-size: 1.8rem;
    }

    .customization-section {
        padding: 3.5rem 5%;
    }

    .customization-section ul {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 2.5rem 5%;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

/* =========================================================
   RESPONSIVE – SMALL MOBILE (max 600px)
========================================================= */
@media (max-width: 600px) {
    .process-flow {
        grid-template-columns: 1fr;
    }

    .annoucment {
        grid-template-columns: 1fr;
    }

    .typing-text {
        font-size: 1.7rem;
        min-height: 75px;
    }

    .process-section h2,
    .customization-section h2 {
        font-size: 1.6rem;
    }
}

/* =========================================================
   APPLICATION FORM PAGE
========================================================= */
.application-section {
    position: relative;
    min-height: 100vh;
    background: url('one.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.application-section .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.80);
    z-index: 1;
}

/* =========================================================
   FORM CONTAINER
========================================================= */
.form-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 107, 63, 0.12);
    padding: 3rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    transition: box-shadow 0.3s;
    border-top: 4px solid var(--au-green);
}

.form-container:hover {
    box-shadow: 0 14px 40px rgba(0, 107, 63, 0.18);
}

.form-container h2 {
    color: var(--au-green);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-container p {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.application-form-section {
    background: var(--light);
    padding: 5rem 6%;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.application-form .form-group {
    text-align: left;
    margin-bottom: 1.2rem;
}

.application-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--au-green);
    font-weight: 600;
}

.application-form input,
.application-form select,
.application-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
}

.application-form input::placeholder,
.application-form textarea::placeholder {
    color: #ccc;
}

.application-form select option {
    color: #000;
}

.submit-btn-form {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    font-weight: 700;
    font-size: 1rem;
    background: var(--au-green);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn-form:hover {
    background: var(--au-green-light);
}

/* =========================================================
   APPLICATION PAGE HEADER
========================================================= */
.application-header {
    position: relative;
    height: 60vh;
    min-height: 300px;
    background: url('one.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.application-header .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 77, 46, 0.85);
    z-index: 1;
}

.application-header .header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.application-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.application-header p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
}

/* =========================================================
   GRID FORM LAYOUT
========================================================= */
.grid-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.2rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--au-green);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fafff9;
    color: var(--text-dark);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--au-green);
    box-shadow: 0 0 0 3px rgba(0,107,63,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.submit-btn-form {
    grid-column: span 3;
    padding: 1rem;
    background: var(--au-green);
    color: var(--white);
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.submit-btn-form:hover {
    background: var(--au-green-light);
}

@media (max-width: 992px) {
    .grid-form { grid-template-columns: repeat(2, 1fr); }
    .submit-btn-form { grid-column: span 2; }
}

@media (max-width: 600px) {
    .grid-form { grid-template-columns: 1fr; }
    .submit-btn-form { grid-column: span 1; }

    .application-form-section {
        padding: 3rem 4%;
    }

    .form-container {
        padding: 2rem 1.2rem;
    }
}

/* =========================================================
   MULTI-SELECT FIELD STYLING
========================================================= */
select[multiple] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 0.95rem;
    height: 120px;
    overflow-y: auto;
    transition: border-color 0.3s ease;
}

select[multiple]:focus {
    border-color: var(--au-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 107, 63, 0.12);
}

select[multiple] option {
    padding: 6px 10px;
    border-radius: 5px;
    margin: 2px 0;
}

select[multiple] option:checked {
    background: var(--au-green);
    color: #fff;
}

/* =========================================================
   SUBMISSION SUCCESS POPUP
========================================================= */
.success-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.success-popup.active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.success-box {
    background: #fff;
    padding: 3rem 3.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: popIn 0.4s ease;
    max-width: 440px;
    width: 90%;
    border-top: 4px solid var(--au-green);
}

.success-box h3 {
    color: var(--au-green);
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.success-box p {
    color: #444;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.success-box button {
    background: var(--au-green);
    color: #fff;
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.success-box button:hover {
    background: var(--au-green-light);
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* =========================================================
   CUSTOM MULTI-SELECT DROPDOWN
========================================================= */
.multi-select {
    position: relative;
    width: 100%;
}

.multi-select .dropdown {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    padding: 0.8rem 1rem;
    transition: border-color 0.3s;
}

.multi-select .dropdown:hover {
    border-color: var(--au-green);
}

.multi-select .dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.multi-select.active .dropdown ul {
    display: block;
}

.multi-select .dropdown ul li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.multi-select .dropdown ul li:hover {
    background: var(--light);
}

.multi-select .dropdown ul li.selected {
    background: var(--au-green);
    color: #fff;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.selected-tags .tag {
    background: var(--au-green);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-tags .tag span {
    cursor: pointer;
    background: #fff;
    color: var(--au-green);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
}
