/* -------------------------------------------------------------------------- */
/* 6) HERO SECTION & BACKGROUND IMAGE */
/* -------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: -1;
}

/* The .bg-image within .hero */
/* For static background images, always visible */
.bg-static {
    opacity: 1;
    transition: none;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

/* Your existing styles for the hero section remain unchanged */
.relative-background {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}


.bg-static.show {
    opacity: 1;
}

/* Gradient overlay on hero */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.388),
            rgba(0, 0, 0, 0.432),
            rgba(0, 0, 0, 0.356),
            rgba(0, 0, 0, 0.298),
            rgba(0, 0, 0, 0.256));
    z-index: -1;
    pointer-events: none;
}

body.dark-mode .gradient-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.3));
}

/* Page title in hero */
.page-title {
    width: 100%;
    position: fixed;
    top: 3.5em;
    text-align: center;
    color: #d3ff96;
    font-size: 3.5em;
    border: none;
    padding: 0.3em;
    z-index: -1;
}

.relative-background {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}



.contact-story-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    /* Light background for readability */
    color: #333;
    /* Neutral text color */
    text-align: center;
}

body.dark-mode .contact-story-section {
    background-color: #111;
    /* Dark background for dark mode */
    color: #fff;
    /* Light text color for dark mode */
}

.contact-story-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-story-section h2 {
    font-size: 2.2em;
    color: #444;
    margin-bottom: 20px;
}

body.dark-mode .contact-story-section h2 {
    color: #a4ff81;
}

.contact-story-section h3 {
    font-size: 1.5em;
    color: #555;
    margin-top: 30px;
    margin-bottom: 15px;
}

body.dark-mode .contact-story-section h3 {
    color: #54a5fb;
}

.contact-story-section p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ========================================================================== */
/* CONTACT SECTION */
/* ========================================================================== */
.containercontact {
    background-color: #111;
    align-items: center;
}

.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5em;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Dark mode contact section */
body.dark-mode .contact-section {
    background-color: #111;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 1em;
    font-size: 1.8em;
    color: #333;
}

body.dark-mode .contact-section h2 {
    color: #ffffff;
}

.contact-section p {
    text-align: center;
    margin-bottom: 1.5em;
    color: #555;
}

body.dark-mode .contact-section p {
    color: #ddd;
}

/* Contact form */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

/* Form row => side-by-side fields */
.form-row {
    display: flex;
    gap: 1em;
}

/* Form group styling */
.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.3em;
    color: #333;
}

body.dark-mode .form-group label {
    color: #ffffff;
}

.form-group label span {
    color: red;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
    resize: vertical;
    background-color: #ffffff;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    border: 1px solid #afafaf;
    background-color: #222;
    color: #ffffff;
}

/* Submit button */
button[type="submit"] {
    align-self: flex-start;
    padding: 0.6em 1.2em;
    background-color: #11891d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #0e6817;
}

/* CAPTCHA and Submit Button Alignment */
.align-captcha-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1em;
}

/* Adjust CAPTCHA field */
.captcha-group {
    flex: 1;
}

.captcha-group label {
    font-weight: 600;
    color: #333;
}

body.dark-mode .captcha-group label {
    color: #ffffff;
}

.captcha-group input {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
    width: 80px;
    text-align: center;
}

body.dark-mode .captcha-group input {
    background-color: #222;
    border: 1px solid #afafaf;
    color: #ffffff;
}

/* Align submit button to the right */
.button-group {
    display: flex;
    justify-content: flex-end;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}

/* Contact Section - Adjust for small screens */
@media (max-width: 600px) {
    .contact-section {
        max-width: 100% !important;
        padding: 2em !important;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100% !important;
    }

    button[type="submit"] {
        width: 100% !important;
        text-align: center;
    }

    .align-captcha-submit {
        flex-direction: column;
        align-items: flex-start;
    }

    .button-group {
        width: 100%;
        justify-content: center;
        margin-top: 1em;
    }

    button[type="submit"] {
        width: 100%;
    }
}

/* Honeypot field (Hidden from real users) */
.honeypot-field {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

/* Spinner (Hidden initially, now properly animates) */
.spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #11891d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Ensure spinner and button are aligned */
.button-group {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between button and spinner */
}


