* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2d8659;
    --light-green: #4CAF50;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333;
    --accent: #ffb300;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7; /* Slightly increased line-height for better readability */
    color: var(--dark-gray);
}

/* Navigation */
nav {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    padding: 0.7rem 0; /* Reduced padding for a shorter header */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: 40px; /* Reduced logo height */
    width: auto; /* Allows the width to scale automatically */
    border-radius: 5px; /* Optional: rounds the corners slightly */
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.mobile-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-header,
.mobile-close {
    display: none; /* Hide mobile-only elements by default */
}

/* Hero Section */
.hero-slider-container {
    width: 100%;
    height: 90vh; /* Adjust height as needed */
    position: relative;
}

.hero-slider, .swiper-slide.hero {
    width: 100%;
    height: 100%;
}

.hero {
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Define background images for hero slides */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Switched to black overlay to prevent overflow bug */
    z-index: 1;
}

.hero-slide-1 { background-image: url('assets/photo_15_2025-10-22_11-43-41.jpg'); }
.hero-slide-2 { background-image: url('assets/photo_14_2025-10-22_11-43-41.jpg'); }
.hero-slide-3 { background-image: url('assets/JOEY MADE IT 143.jpg'); }

/* Add a subtle zoom animation to the active slide's background */
.swiper-slide-active .hero {
    animation: zoomIn 8s ease-out forwards;
}

.hero-content {
    text-align: center;
    position: relative; /* Ensure content is above the overlay */
    z-index: 2;         /* Higher z-index than the ::before overlay */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Add text shadow for readability */
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
}

/* Swiper Customization */
.swiper-button-next,
.swiper-button-prev {
    color: var(--white) !important;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: var(--accent) !important;
}

/* General introductory paragraph styling for sections */
.section-intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem; /* Slightly larger for readability */
}
/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Impact Section */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.impact-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.impact-card:hover {
    transform: translateY(-5px);
}

.impact-card-header {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 1.5rem;
}

.impact-card-body {
    padding: 1.5rem;
}

.impact-card-body ul {
    list-style: none;
    padding-left: 0;
}

.impact-card-body li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.impact-card-body li:before {
    content: "✓ ";
    color: var(--light-green);
    font-weight: bold;
}

/* Clickable Card Styles */
.impact-card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Makes the whole area of the link clickable */
}

.impact-card-link:hover {
    text-decoration: none; /* Ensure no underline on hover */
}

.view-details-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--primary-green);
    transition: color 0.3s;
}

.impact-card-link:hover .view-details-link {
    color: var(--accent);
}

/* --- Impact Detail Page --- */
#impact-detail {
    position: relative;
}

.back-link {
    position: absolute;
    top: 4rem;
    left: 2rem;
    width: 45px;
    height: 45px;
    background-color: var(--white);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s, background-color 0.3s;
}

.back-link:hover {
    transform: scale(1.1);
    background-color: #f1f1f1;
}

.impact-detail-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.impact-detail-summary, .impact-detail-items {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.impact-detail-summary h3, .impact-detail-items h3 {
    color: var(--primary-green);
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.donated-items-list ul {
    list-style: none;
    padding: 0;
}

.donated-items-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.donated-items-list li i {
    color: var(--light-green);
}

/* Gallery Section */
.gallery-title {
    text-align: center;
    margin: 4rem 0 2rem;
    color: var(--primary-green);
    font-size: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    grid-auto-rows: 250px; /* Define a base row height */
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
}

.gallery-hidden {
    display: none;
}

/* Classes for creating the masonry effect */
.gallery-item--h-2 {
    grid-row: span 2;
}
.gallery-item--w-2 {
    grid-column: span 2;
    grid-row: span 2; /* Make wide items also taller for better composition */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-out;
}

.gallery-item:not(.video-item):hover img { /* Apply hover effect only to image items */
    transform: scale(1.1);
}

.gallery-item:not(.video-item) a::after { /* Magnifying glass for image items */
    content: ''; /* Remove the icon content, we'll use a pure CSS overlay */
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(45, 134, 89, 0.7); /* Darker, branded overlay */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s;
    opacity: 0;
}

.gallery-item:not(.video-item) a:hover::after {
    opacity: 1;
}

.gallery-item:not(.video-item) a:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Video specific styling */
.gallery-item.video-item {
    position: relative;
}

.gallery-item.video-item a {
    display: block; /* Ensure the anchor takes full space */
    position: relative;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item.video-item:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    text-shadow: 0 0 10px rgba(0,0,0,0.8); /* Add some shadow to the play icon */
}

/* Leadership Section */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.leader-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s;
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 2.5rem;
}

.leader-card h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.leader-card .role {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 1rem;
}

.leader-photo-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.leader-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-photo-container i {
    font-size: 5rem;
    color: #94a3b8;
}

/* Get Involved Section */
.involved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.involved-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.involved-card:hover {
    transform: translateY(-5px);
}

.involved-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Donation Section */
.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.donation-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.donation-card i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.donation-amount {
    background: var(--white);
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amount {
    font-weight: bold;
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* Styles for the copy button in the donation section */
.momo-number-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-green);
    padding: 0.2rem;
    transition: color 0.3s;
}

.copy-btn i {
    font-size: 1rem; /* Directly control the icon's size */
    vertical-align: middle; /* Helps with alignment */
}

.copy-btn:hover {
    color: var(--accent);
}

.copy-feedback {
    position: absolute;
    right: -65px; /* Position it to the right of the button */
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.visible {
    opacity: 1;
}

/* Testimonial */
.testimonial {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-green);
    margin: 2rem 0;
    font-style: italic;
}

.testimonial-author {
    text-align: right;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--primary-green);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.contact-item i {
    color: var(--primary-green);
    font-size: 1.5rem;
}

/* Contact Form Styling */
.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease;
    font-family: inherit; /* Ensure select uses the body font */
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary-green);
    outline: none;
}

.form-status { /* Styling for form status messages */
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-group.honeypot {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
}

.contact-item a { /* Styling for the email link */
    color: var(--dark-gray); /* Match surrounding text color */
    text-decoration: none; /* Remove underline */
    word-break: break-all; /* Allow long words to break and wrap */
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-green); /* Highlight on hover */
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem; /* Increased vertical padding */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* --- Enhanced Mobile Experience --- */

    /* 1. General Typography & Spacing */
    html,
    body {
        line-height: 1.6; /* Optimize line height for mobile readability */
        overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
    }

    section {
        padding: 3rem 1.5rem; /* Reduce section padding on mobile */
    }

    .section-title {
        font-size: 2rem; /* Make section titles more compact */
        margin-bottom: 2rem;
    }

    .section-intro-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .back-link {
        top: 1.5rem;
        left: 1.5rem;
    }

    /* 2. Hero Section Optimization */
    .hero-slider-container {
        height: 45vh; /* Made the hero section shorter on mobile */
    }

    .hero-content {
        padding: 0 1.5rem; /* Add horizontal padding to prevent text from touching edges */
    }

    .hero h1 {
        /* Fluid font size: min 2rem, preferred 7vw, max 2.5rem */
        font-size: clamp(2.3rem, 8vw, 2.8rem); /* Slightly larger for more impact */
    }

    .hero p {
        /* Fluid font size: min 1rem, preferred 4vw, max 1.2rem */
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .hero .btn {
        padding: 0.9rem 1.8rem; /* Adjust button size */
        font-size: 0.9rem;
    }

    /* 3. Gallery Layout Simplification */
    .gallery-grid {
        grid-template-columns: 1fr; /* Stack gallery items in a single column */
        grid-auto-rows: auto; /* Let each item determine its own height */
    }
    .gallery-item--h-2, .gallery-item--w-2 {
        grid-row: auto; /* Reset masonry spans */
        grid-column: auto;
    }

    /* Make Swiper nav buttons less obtrusive on mobile */
    .swiper-button-next,
    .swiper-button-prev {
        --swiper-navigation-size: 30px; /* Smaller arrows */
        opacity: 0.5;
    }

    /* Adjust leader photo size for mobile */
    .leader-photo-container {
        width: 60px; /* Further reduced size for mobile */
        height: 60px; /* Further reduced size for mobile */
    }
    .leader-photo-container i {
        font-size: 2.5rem; /* Adjust icon size to match new container size */
    }

    .nav-links {
        /* display: none; */ /* Remove this line */
        padding: 0; /* Reset padding */
        flex-direction: column;
        position: fixed; /* Change to fixed for side slide */
        top: 0;
        right: 0; /* Position from the right side */
        height: 100vh; /* Full viewport height */
        width: 80%; /* Take up 80% of the screen width */
        max-width: 320px; /* Set a max-width for larger mobile screens */
        background: var(--primary-green);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2); /* Add shadow for depth */
        transform: translateX(100%); /* Start completely off-screen to the right */
        transition: transform 0.3s ease-out, visibility 0.3s ease-out; /* Smooth transition */
        visibility: hidden; /* Hide it completely when not active */
        z-index: 999; /* Ensure it's above other content */
        justify-content: flex-start; /* Align items to the top */
        gap: 0; /* Reset gap, will be handled by padding */
    }

    .nav-links.active {
        /* display: flex; */ /* Remove this line */
        transform: translateX(0); /* Slide into view */
        visibility: visible; /* Make it visible */
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .mobile-menu-header .logo {
        font-size: 1.5rem;
    }

    .mobile-close {
        font-size: 1.5rem;
        display: block; /* Make the close button visible on mobile */
        color: var(--white);
        cursor: pointer;
    }

    .nav-links li {
        width: 100%; /* Make list items take full width */
        text-align: left; /* Align text to the left */
    }

    .nav-links a {
        padding: 1rem 1.5rem; /* Add padding to links */
        display: block; /* Make links block-level for full clickable area */
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Softer separator for menu items */
        transition: background-color 0.3s;
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        opacity: 1; /* Override default nav link hover */
    }

    .nav-links li:last-child a {
        border-bottom: none; /* No border for the last item */
    }

    .mobile-toggle {
        display: block;
        z-index: 1000; /* Ensure toggle button is clickable */
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
        background: rgba(0, 0, 0, 0.4); /* Slightly lighter semi-transparent black overlay */
        backdrop-filter: blur(4px); /* Apply a blur effect to the background */
        -webkit-backdrop-filter: blur(4px); /* For Safari support */
        z-index: 998; /* Below the menu, above content */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
        transition: opacity 0.3s ease-out, visibility 0.3s ease-out, backdrop-filter 0.3s ease-out;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Prevent body scrolling when menu is open */
    body.menu-open {
        overflow-x: hidden; /* Add this to prevent horizontal scroll in all cases on mobile */
        overflow: hidden;
    }

    /* Hide the hamburger toggle when the menu is open */
    body.menu-open .mobile-toggle {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes zoomIn {
    from {
        background-size: 100% 100%;
    }
    to {
        background-size: 110% 110%;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--dark-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Floating Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1010;
}

.chat-fab {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.chat-fab:hover {
    transform: scale(1.1);
}

.chat-fab .fa-times {
    display: none;
}

.chat-options {
    position: absolute;
    bottom: 75px; /* Position above the FAB */
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.chat-option {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-decoration: none;
    color: var(--dark-gray);
    white-space: nowrap;
    transition: background-color 0.3s;
}

.chat-option:hover {
    background-color: var(--light-gray);
}

.chat-option i {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-right: 10px;
}

/* Chat Widget Open State */
.chat-widget.open .chat-options {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.chat-widget.open .chat-fab .fa-comment-dots {
    display: none;
}
.chat-widget.open .chat-fab .fa-times {
    display: block;
}

/* --- Feedback Modal --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h3 {
    color: var(--primary-green);
    margin-top: 0;
    margin-bottom: 1rem;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover { color: var(--dark-gray); }

/* --- Modal Form Styling --- */
.modal-content .form-group {
    margin-bottom: 1rem;
}

.modal-content label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--dark-gray);
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
    border-color: var(--primary-green);
    outline: none;
}

/* Spinner animation for form buttons */
.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}