/* ===== GLOBAL STYLES ===== */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #001f54; /* Midnight Blue */
    color: white;
    line-height: 1.6;
}

/* ===== TOP BAR (Fixed) ===== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #00276f;
    padding: 10px 20px;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-tagline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    max-height: 55px;
}

.tagline {
    font-size: 18px;
    font-weight: 300;
    margin: 0;
}

.horizontal-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.horizontal-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
}

.horizontal-links a:hover {
    color: #ff6f6f;
}

.auth-btn {
    padding: 8px 16px;
    background-color: #ff6f6f;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.auth-btn:hover {
    background-color: #ff4f4f;
}

.menu-button {
    background-color: #0033a0;
    color: white;
    border: none;
    padding: 10px 14px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}

/* ===== OVERLAY MENU (Mobile) ===== */
.overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: none;
    z-index: 2000;
    justify-content: flex-end;
}

.overlay.show {
    display: flex;
}

.vertical-menu {
    background-color: #00276f;
    width: 250px;
    height: 100%;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.vertical-menu button {
    background-color: #0033a0;
    color: white;
    border: none;
    padding: 15px;
    margin: 8px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    text-align: left;
}

.vertical-menu button:hover {
    background-color: #ff6f6f;
}

/* ===== MAIN CONTENT LAYOUT ===== */
main {
    margin-top: 110px; /* Space for fixed header */
    padding: 20px;
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.main-content {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-content {
    flex: 1;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.05);
    height: fit-content;
}

.content-box {
    border: 2px solid rgba(255,255,255,0.3);
    padding: 25px;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.05);
}

/* ===== BUTTONS & UI ===== */
.cta-button {
    padding: 12px 30px;
    font-size: 16px;
    background-color: #ff6f6f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: transform 0.2s;
}

.cta-button:hover {
    background-color: #ff4f4f;
    transform: scale(1.05);
}

/* ===== FOOTER ===== */
footer {
    background-color: #001a40;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer a {
    color: #ff6f6f;
    text-decoration: none;
    margin: 0 10px;
}

/* ===== RESPONSIVE DESIGN (Tablets/Phones) ===== */
@media (max-width: 900px) {
    main {
        flex-direction: column;
    }

    .sidebar-content {
        order: 2;
    }

    .main-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .horizontal-links {
        display: none; /* Hide desktop nav */
    }

    .tagline {
        display: none; /* Keep header clean */
    }
    
    .user-welcome {
        font-size: 14px;
        margin-right: 10px;
    }
    .logo {
        max-height: 45px;
    }

    main {
        margin-top: 90px;
        padding: 15px;
    }

    /* ===== IMPROVED CONTACT FORM ===== */
.contact-form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px); /* Modern frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-subtitle {
    font-size: 14px;
    color: #b0c4de;
    margin-bottom: 25px;
}

.styled-form .form-group {
    margin-bottom: 15px;
}

.styled-form input, 
.styled-form textarea {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.3); /* Darker background for inputs */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

/* The "Glow" effect when typing */
.styled-form input:focus, 
.styled-form textarea:focus {
    border-color: #ff6f6f;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 8px rgba(255, 111, 111, 0.3);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Fix for Form Row */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}}