/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.donate-btn {
    background: linear-gradient(45deg, #20B2AA, #4ECDC4);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.3);
}

/* Header Styles */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #20B2AA;
}

/* Hide mobile donate button on desktop */
.nav-links .donate-btn {
    display: none;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-links {
        position: fixed;
        /* place dropdown below header and ensure it stacks above header/hamburger */
        top: 72px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1rem;
        padding-top: 2rem;
        /* use transform for smoother animation: slide down from above */
        transform: translateY(-100%);
        transition: transform 0.28s cubic-bezier(.2, .8, .2, 1);
        z-index: 2001;
        /* above header (1000) and hamburger (1001) */
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        width: 90%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Hide desktop donate button, show mobile one */
    nav>.donate-btn {
        display: none;
    }

    .nav-links .donate-btn {
        display: block;
        margin: 1rem auto;
        width: 200px;
        text-align: center;
        border-bottom: none;
        border-radius: 25px;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #20B2AA 0%, #4ECDC4 40%, #1e3a5f 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e3a5f;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #20B2AA;
}

.donate-btn {
    background: linear-gradient(45deg, #20B2AA, #4ECDC4);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.4);
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    color: white;
    position: relative;
    background: linear-gradient(rgba(30, 58, 95, 0.7), rgba(32, 178, 170, 0.6)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="people" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="30" r="8" fill="%23ffffff" opacity="0.1"/><rect x="15" y="40" width="10" height="15" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="25" r="6" fill="%23ffffff" opacity="0.08"/><rect x="46" y="33" width="8" height="12" fill="%23ffffff" opacity="0.08"/><circle cx="80" cy="35" r="7" fill="%23ffffff" opacity="0.09"/><rect x="76" y="44" width="8" height="13" fill="%23ffffff" opacity="0.09"/></pattern></defs><rect width="1200" height="600" fill="url(%23people)"/><g transform="translate(300,150)"><circle cx="0" cy="0" r="50" fill="%2320B2AA" opacity="0.3"/><g transform="translate(0,-20)"><circle cx="0" cy="0" r="12" fill="%23ffffff" opacity="0.8"/><rect x="-8" y="15" width="16" height="25" fill="%23ffffff" opacity="0.8"/></g></g><g transform="translate(500,200)"><circle cx="0" cy="0" r="40" fill="%234ECDC4" opacity="0.25"/><g transform="translate(0,-15)"><circle cx="0" cy="0" r="10" fill="%23ffffff" opacity="0.7"/><rect x="-6" y="12" width="12" height="20" fill="%23ffffff" opacity="0.7"/></g></g><g transform="translate(700,120)"><circle cx="0" cy="0" r="45" fill="%2320B2AA" opacity="0.2"/><g transform="translate(0,-18)"><circle cx="0" cy="0" r="11" fill="%23ffffff" opacity="0.75"/><rect x="-7" y="14" width="14" height="23" fill="%23ffffff" opacity="0.75"/></g></g><g transform="translate(900,180)"><circle cx="0" cy="0" r="35" fill="%234ECDC4" opacity="0.3"/><g transform="translate(0,-12)"><circle cx="0" cy="0" r="8" fill="%23ffffff" opacity="0.8"/><rect x="-5" y="10" width="10" height="18" fill="%23ffffff" opacity="0.8"/></g></g></svg>') center/cover;
    background-attachment: fixed;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
.section {
    padding: 4rem 0;
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

/* Causes Section */
.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cause-card {
    background: linear-gradient(135deg, #f8f9ff, #e8f0ff);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e8ff;
}

.cause-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(32, 178, 170, 0.2);
}

.cause-card i {
    font-size: 3rem;
    color: #20B2AA;
    margin-bottom: 1rem;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9ff;
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e8ff;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #20B2AA;
}

/* Donation Amount Buttons */
.donation-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 12px;
    border: 2px solid #20B2AA;
    background: white;
    color: #20B2AA;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.amount-btn.active,
.amount-btn:hover {
    background: #20B2AA;
    color: white;
}

.submit-btn {
    background: linear-gradient(45deg, #20B2AA, #4ECDC4);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #333;
}

/* Modal Error State */
.modal.error .modal-content {
    background: #f44336;
    color: white;
}

.modal.error .close-modal {
    color: rgba(255, 255, 255, 0.8);
}

.modal.error .close-modal:hover {
    color: white;
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #20B2AA, #4ECDC4);
    color: white;
    border-radius: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Utilities */
.hidden {
    display: none;
}

.success-animation {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Form Validation and Enhancement Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #f44336;
    background-color: #fff8f8;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #4CAF50;
    background-color: #f8fff8;
}

.error-message {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.success-message {
    color: #4CAF50;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Button Loading States */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover {
    transform: none;
    box-shadow: 0 3px 10px rgba(32, 178, 170, 0.3);
}

/* Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s infinite linear;
}

/* Amount Button Active State */
.amount-btn.active {
    background: linear-gradient(135deg, #1e3a5f, #2c5aa0);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.4);
}

.amount-btn.active:hover {
    background: linear-gradient(135deg, #1e3a5f, #2c5aa0);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* nav-links controlled by dedicated mobile nav block; do not hide here */

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* ==========================================
   SPONSORS PAGE STYLES
   ========================================== */

.nav-links a.active {
    color: #20B2AA;
    font-weight: 600;
}

.sponsors-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sponsors-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"><polygon fill="rgba(255,255,255,0.1)" points="0,0 1000,0 1000,50 0,100"/></svg>');
    background-size: cover;
}

.sponsors-hero .container {
    position: relative;
    z-index: 1;
}

.sponsors-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sponsors-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.95;
}

.sponsors-content {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 20px 20px; */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 80px 0;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.benefit-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.sponsor-form {
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    padding: 50px;
    border-radius: 20px;
    /* match the how-it-works max-width for consistent inner content width */
    max-width: auto;
    /* spacing handled by the surrounding .amplify-section; center horizontally */
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

/* Sponsors Page Responsive Design */
@media (max-width: 768px) {
    .sponsors-hero {
        padding: 40px 0;
    }

    .sponsors-hero h1 {
        font-size: 2.2rem;
    }

    .sponsors-hero p {
        font-size: 1.1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .amplify-section {
        padding: 60px 20px;
        margin: 60px 0;
    }

    .sponsor-form {
        padding: 40px 30px;
        margin: 40px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .submit-btn {
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .sponsors-hero {
        padding: 30px 0;
    }

    .sponsors-hero h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 20px;
    }

    .sponsor-form {
        padding: 30px 20px;
        margin: 30px 10px;
    }
}

/* When mobile nav is open, prevent scrolling behind it */
/* Mobile nav override: ensure the slide-in menu is fixed, visible, and above other content.
   This reinforces earlier rules and avoids environment-specific overrides that hid the menu.
   (Uses !important sparingly to ensure behavior on problematic devices/browsers.) */
@media (max-width: 768px) {

    /* target both the ID used in markup (#navLinks) and generic .nav-links */
    #navLinks,
    .nav-links {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: 72px !important;
        height: calc(100vh - 72px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        transform: translateY(-100%) !important;
        transition: transform 0.28s cubic-bezier(.2, .8, .2, 1) !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 1rem !important;
        padding-top: 2rem !important;
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12) !important;
        pointer-events: auto !important;
    }

    #navLinks.active,
    .nav-links.active {
        transform: translateY(0) !important;
    }
}

/* When mobile nav is open, prevent scrolling behind it */
body.nav-open {
    overflow: hidden;
    touch-action: none;
}

/* Page-level content buttons (Become a Partner / Make a Donation)
   Side-by-side by default, stack on small portrait phones. */
.content-buttons a.donate-btn {
    display: inline-block;
    margin: 0 10px;
    padding: 12px 22px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    box-shadow: 0 6px 18px rgba(30, 58, 95, 0.06);
}

/* alternate gradient (used on Make a Donation) */
.content-buttons a.donate-btn.alt {
    background: linear-gradient(45deg, #4ECDC4, #20B2AA);
}

@media (max-width: 480px) and (orientation: portrait) {
    .content-buttons a.donate-btn {
        display: block !important;
        width: 240px !important;
        max-width: 90% !important;
        margin: 1.25rem auto !important;
        padding: 14px 28px !important;
        font-size: 1.05rem !important;
        border-radius: 999px !important;
        box-shadow: 0 8px 20px rgba(30, 58, 95, 0.08) !important;
    }
}

/* Safety override: ensure header remains visible above mobile dropdown and hero */
header {
    /* put header above the mobile menu and other stacking contexts if needed */
    z-index: 100000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    transform: none !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 0 !important;
    min-height: 64px !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Ensure nav inside header lays out normally */
header nav {
    z-index: inherit !important;
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 20px !important;
}

/* make sure header textual elements are visible */
header .logo span {
    color: #1e3a5f !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
}

header .nav-links a {
    color: #1e3a5f !important;
}

.mobile-menu-toggle {
    z-index: 100001 !important;
}

/* Ensure logo elements are visible and not covered by other stacking contexts */
header .logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    z-index: 100002 !important;
}

header .logo img,
header .logo .logo-placeholder,
header .logo span {
    position: relative !important;
    z-index: 100003 !important;
    opacity: 1 !important;
}

/* If the logo image is transparent or covers the text, ensure spacing */
header .logo img {
    width: 40px !important;
    height: 40px !important;
    margin-right: 10px !important;
    display: inline-block !important;
}

/* Stripe Elements Styling */
.stripe-element {
    background: white;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.stripe-element:focus-within {
    border-color: #20B2AA;
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.1);
}

.stripe-element.StripeElement--invalid {
    border-color: #dc3545;
}

.stripe-element.StripeElement--complete {
    border-color: #28a745;
}

#card-errors {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

/* Payment Processing States */
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.submit-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}