:root {
    --nav-bg: rgba(20, 20, 20, 0.95); /* Dark semi-transparent background */
    --nav-height: 70px;
    --accent-color: #ffc038; /* Logo Blue */
    --text-color: #e0e0e0;
    --hover-bg: rgba(255, 255, 255, 0.1);
    --gold-accent: #ffcc00;
}

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

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-top: 80px; /* INCREASED padding to clear the fixed navbar */
    background-color: #121212;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

/* The Fixed Container */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px); /* The Glass Effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Logo */
.nav-logo img {
    height: 45px;
    width: auto;
    transition: opacity 0.3s;
}

.nav-logo:hover img {
    opacity: 0.8;
}

/* Navigation Links (Desktop) */
.nav-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

/* Animated Underline */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Login Button (Guest State) */
.btn-login {
    padding: 8px 20px;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* User Avatar (Logged In State) */
.user-dropdown-container {
    position: relative;
}

.user-avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.avatar-circle {
    width: 35px;
    height: 35px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid #444;
    transition: border-color 0.3s, background-color 0.3s;
}

.user-avatar-btn:hover .avatar-circle {
    border-color: var(--accent-color);
    background-color: #444;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    top: 50px;
    width: 200px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    overflow: hidden;
    flex-direction: column;
    z-index: 1002;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-header {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    font-size: 13px;
    color: #888;
    background-color: #151515;
}

.dropdown-item {
    padding: 12px 15px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: var(--hover-bg);
    color: #fff;
}

.dropdown-item.text-danger {
    color: #ff6b6b;
}

.dropdown-item.text-danger:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Hamburger Animation when Active */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Responsive Styles */
@media (max-width: 600px) {
    /* 1. Force Full Width for Main Containers */
    #page-wrap, .container, .responsive-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important; /* Remove side padding that squishes content */
        margin: 0 !important;
        overflow-x: hidden; /* Prevent horizontal scroll bar */
    }

    /* 2. Fix the Carousel Container */
    .carousel-container {
        width: 100vw !important; /* Force Viewport Width */
        padding: 10px 0 !important;
        margin-left: calc(-50vw + 50%); /* Hack to break out of centered container */
        margin-right: calc(-50vw + 50%);
    }

    /* 3. Fix the Carousel Track */
    .carousel {
        display: flex !important;
        flex-wrap: nowrap !important; /* Force single row */
        overflow-x: auto !important; /* Enable scroll */
        -webkit-overflow-scrolling: touch;
        gap: 10px !important;
        padding: 0 15px !important; /* Add edge padding so first item isn't flush */
        justify-content: flex-start !important; /* Align left */
    }

    /* 4. Fix Carousel Card Sizing */
    .carousel-card {
        flex: 0 0 85vw !important; /* Card takes 85% of screen width */
        max-width: 85vw !important;
        margin-right: 10px !important;
    }

    /* 5. Fix Slider Images */
    #slider, #slider img {
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important; /* Remove corners for full bleed */
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height); /* Sticks right below the header */
        flex-direction: column;
        background-color: var(--nav-bg);
        width: 100%;
        height: calc(100vh - var(--nav-height)); /* Full height */
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        justify-content: flex-start;
        padding-top: 40px;
        overflow-y: auto; /* Allows scrolling if menu is long */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-link {
        font-size: 18px;
        display: block;
        padding: 10px;
    }
}


.login-modal, .signup-modal {
    display: none;
    position: fixed;
    z-index: 2000; /* Increased Z-Index to be above navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.signup-modal {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto !important;
}

.login-modal.active, .signup-modal.active {
    display: block;
    opacity: 1;
}

/* Modal Content Box */
.login-modal-content, .signup-modal-content {
    background-color: #1f1f1f;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 450px; /* Standardized width */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    color: #e0e0e0;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.login-modal.active .login-modal-content,
.signup-modal.active .signup-modal-content {
    transform: translateY(0);
}

/* Close Buttons */
.login-close-btn, .signup-close-btn {
    color: #888;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.login-close-btn:hover, .signup-close-btn:hover {
    color: #fff;
}

/* Form Styles */
.login-header h1, .signup-header h1 {
    color: var(--gold-accent);
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Monaco', monospace;
}

.login-input-group, .signup-input-group {
    margin-bottom: 15px;
    width: 100%;
}

.signup-input-group select {
    position: relative;
    z-index: 2001 !important; /* Higher than the modal (2000) */
    display: block !important;
    opacity: 1 !important;
    -webkit-appearance: menulist !important; /* Force native mobile look */
}

.login-input-group input, 
.signup-input-group input,
.signup-input-group select {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.login-input-group input:focus, 
.signup-input-group input:focus {
    border-color: var(--gold-accent);
    outline: none;
}

/* Buttons */
.login-btn, .signup-btn {
    width: 100%;
    padding: 12px;
    background-color: #d4a017;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.login-btn:hover, .signup-btn:hover {
    background-color: var(--gold-accent);
}

/* Links */
.login-forgot-password, .login-signup-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #888;
    text-decoration: none;
    font-size: 13px;
}

.login-forgot-password:hover, .login-signup-link:hover {
    color: var(--gold-accent);
    text-decoration: underline;
}

/* Phone Group specific */
.phone-group {
    display: flex;
    gap: 10px;
    border: none;
    background: transparent;
}

.phone-group select {
    width: 35%;
}

.phone-group input {
    width: 65%;
}

.content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    color: #ccc;
    line-height: 1.6;
}

h1, h2 {
    color: #fff;
    margin-bottom: 15px;
}

footer {
    background-color: #0a0a0a;
    color: #666;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: auto;
}

/* Recaptcha Centering */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

body, p, h1, h2, h3, h4, li, div {
    color: #e0e0e0;
}

.about-container, 
.home_desc, 
article, 
#banner {
    background-color: #1f1f1f !important; /* Dark Grey Box */
    color: #fff !important;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px !important;
    margin: 30px auto !important; /* Center it */
    max-width: 1000px;
}

/* 3. Fix Text inside those containers */
.about-container h1, .about-container p,
article h1, article p,
.home_desc p {
    color: #fff !important;
    text-align: left;
}

/* 4. Fix Forms (Contact Us) */
/* Inputs were dark on dark. Let's make them stand out. */
input[type="text"], 
input[type="email"], 
input[type="number"], 
input[type="password"], 
textarea,
select {
    background-color: #2a2a2a !important; /* Dark Grey Background */
    color: #fff !important;               /* White Text */
    border: 1px solid #444 !important;    /* Subtle Border */
    padding: 10px;
    border-radius: 4px;
}

/* 5. Fix Links in Content */
/* Links were dark blue, making them invisible on black. Change to Light Blue. */
a, a:visited {
    color: #ffcc00 !important;
}
.nav-link { 
    color: #e0e0e0 !important; /* Keep navbar links gray/white */
}

/* 6. Fix "Contact Us" Form Centering */
/* The form looked squashed in your screenshot */
form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}
textarea {
    resize: vertical;
    min-height: 150px;
}

/* 7. Button Visibility */
button[type="submit"] {
    background-color: #ffcc00 !important; /* Gold Background */
    color: #000 !important;               /* Black Text */
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%; /* Full width on mobile */
    margin-top: 10px;
}

.office-locations-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.section-title {
    color: #ffcc00; /* Gold accent */
    margin-bottom: 30px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.office-grid {
    display: grid;
    /* Automatically fit columns: min 280px wide, max 1 fraction of space */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.office-card {
    background-color: #1f1f1f; /* Dark card background */
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center; /* Center the text inside the card */
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.office-card:hover {
    transform: translateY(-5px); /* Subtle lift effect */
    border-color: #ffcc00; /* Gold border on hover */
}

.flag-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

.office-card h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    display: inline-block;
}

.office-card p {
    color: #cccccc;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Make sure strong text stands out */
.office-card strong {
    color: #ffcc00;
}

/* 1. Make the whole box Dark Grey */
.dropdown-menu {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    padding: 0; /* Remove default padding gaps */
}

/* 2. Fix the Header "My Account" */
.dropdown-header {
    background-color: #111 !important; /* Almost black */
    color: #888 !important;
    border-bottom: 1px solid #333 !important;
    padding: 12px 15px;
}

/* 3. Fix the Links (My Orders, Logout) */
.dropdown-item {
    background-color: transparent !important;
    color: #e0e0e0 !important; /* Light Grey Text */
    border-bottom: 1px solid #252525; /* Subtle separator line */
} 

/* 4. Fix Hover Effect */
.dropdown-item:hover {
    background-color: #333 !important; /* Lighter Grey on Hover */
    color: #fff !important;
    text-decoration: none;
}

/* 5. Fix the Logout Text Color */
.dropdown-item.text-danger {
    color: #ff6b6b !important; /* Red for Logout */
}

/* 6. Fix Icons (SVG) colors */
.dropdown-item svg {
    stroke: #aaa; /* Make icons light grey */
}
.dropdown-item:hover svg {
    stroke: #fff; /* White on hover */
}

/* Style for Disabled/Locked Inputs */
input:disabled, 
.locked-input {
    background-color: #1a1a1a !important; /* Very dark background */
    color: #666 !important; /* Dimmed text */
    border: 1px solid #333 !important;
    cursor: not-allowed; /* Shows 'no' symbol on hover */
    opacity: 0.7;
}

/* Success Message Box */
.success-box {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.error-box {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

/* Main Container spacing */
.profile-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Text */
.profile-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}
.profile-header h1 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}
.profile-header p {
    color: #a0a0a0;
    font-size: 16px;
    margin: 0;
}

/* THE GRID: Forces Side-by-Side Layout */
.profile-grid {
    display: flex; /* Using Flexbox for better control */
    gap: 30px;
    align-items: flex-start;
}

/* Mobile: Stack them */
@media (max-width: 850px) {
    .profile-grid {
        flex-direction: column;
    }
    .profile-card {
        width: 100%;
    }
}

/* Card Styling (The Boxes) */
.profile-card {
    background-color: #1e1e1e; /* Distinct dark grey */
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    overflow: hidden;
}

/* Specific Widths */
.locked-card { flex: 1; } /* Takes 1 part width */
.editable-card { flex: 2; } /* Takes 2 parts width */

/* Card Header */
.card-header {
    background-color: #252525;
    padding: 15px 25px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 12px;
}
.card-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.card-header i {
    font-size: 20px;
    color: #ffcc00; /* Gold Icon */
}

/* Card Body */
.card-body {
    padding: 25px;
}

/* Labels */
label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

/* Inputs & Icons Wrapper */
.input-group-icon {
    position: relative;
    margin-bottom: 20px;
}

/* The Icon inside the input */
.input-group-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px;
    z-index: 2;
}

/* The Input Fields themselves */
.profile-card input[type="text"],
.profile-card select {
    width: 100%;
    padding: 12px 15px 12px 45px !important; /* Left padding for icon */
    background-color: #2b2b2b !important;
    border: 1px solid #444 !important;
    border-radius: 6px;
    color: #fff !important;
    font-size: 15px;
    transition: border-color 0.3s, background 0.3s;
    display: block;
    box-sizing: border-box;
}

/* Focus State */
.profile-card input:focus,
.profile-card select:focus {
    border-color: #ffcc00 !important;
    outline: none;
    background-color: #333 !important;
}

/* Disabled Inputs (Security Card) */
.profile-card input:disabled {
    background-color: #151515 !important;
    border-color: #222 !important;
    color: #666 !important;
    cursor: not-allowed;
}

/* Row for City/State */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}
.form-row .col {
    flex: 1;
}

/* Save Button */
.save-profile-btn {
    width: 100%;
    background-color: #ffcc00;
    color: #000; /* Black Text */
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s, transform 0.1s;
}

.save-profile-btn:hover {
    background-color: #ffdb4d;
}
.save-profile-btn:active {
    transform: scale(0.98);
}
.save-profile-btn i {
    font-size: 20px;
}

/* Verified Badge */
.badge-verified {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid #28a745;
    text-transform: uppercase;
}

/* Contact Support Text */
.locked-notice {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 15px;
}
.locked-notice a {
    color: #ffcc00;
    text-decoration: none;
}
.locked-notice a:hover {
    text-decoration: underline;
}

/* Announcement Bar Styles */
.announcement-bar {
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    z-index: 9999; /* Ensure it stays above the header */
}

.announcement-bar a {
    text-decoration: underline;
    font-weight: bold;
}

/* Info Level (Blue - similar to Bank Info) */
.announcement-info {
    background-color: #e8f4fd;
    color: #0c5460;
    border-bottom: 1px solid #bee5eb;
}
.announcement-info a { color: #0c5460; }

/* Warning Level (Red/Orange - Critical) */
.announcement-warning {
    background-color: #fff3cd; /* Light Yellow/Orange */
    color: #856404;
    border-bottom: 1px solid #ffeeba;
}
.announcement-warning a { color: #856404; }

/* Fix for fixed header */
body.has-announcement header.navbar-fixed {
    top: auto; /* Let JS or CSS adjust if needed, or simply let it stack */
    position: relative; /* Change from fixed to relative so it sits under the banner */
}
/* OR if you want the header to stay fixed and the banner to scroll away: */
.announcement-container {
    display: block;
}