:root {
    --main-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styling for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--background); /* Main background color */
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
    display: flex;
    flex-direction: column; /* Default for mobile, will change to row for desktop */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    background-color: var(--card-bg); /* Use card background for hero section */
    border-bottom: 1px solid var(--divider);
}

.page-contact__hero-content {
    max-width: 800px;
    margin-bottom: 40px;
}

.page-contact__hero-title {
    /* No fixed font-size for H1 as per requirement */
    font-weight: bold;
    line-height: 1.2;
    color: var(--gold); /* Use a prominent color for H1 */
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.page-contact__hero-description {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 30px;
}

.page-contact__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text on dark button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-secondary {
    background: var(--text-main); /* Light background for secondary */
    color: var(--deep-green); /* Deep green text */
    border: 2px solid var(--deep-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-secondary:hover {
    background: var(--deep-green);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__hero-image-container {
    width: 100%;
    max-width: 900px; /* Adjust max-width for image */
    margin-top: 40px;
}

.page-contact__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Contact Info Section */
.page-contact__info-section {
    padding: 80px 0;
    background-color: var(--background);
}

.page-contact__contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--divider);
}

.page-contact__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-contact__card-icon {
    width: 250px; /* Min size requirement */
    height: 250px; /* Min size requirement */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.page-contact__card-title {
    font-size: 1.5em;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95em;
}

.page-contact__card-link {
    color: var(--main-color); /* Use main color for links */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: color 0.3s ease;
}

.page-contact__card-link:hover {
    color: var(--glow);
    text-decoration: underline;
}

/* Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--deep-green); /* Use deep green for form section background */
    color: var(--text-main); /* White text on deep green */
}

.page-contact__form-section .page-contact__section-title {
    color: var(--gold);
}

.page-contact__form-section .page-contact__section-description {
    color: var(--text-main);
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--divider);
}

.page-contact__form-group {
    margin-bottom: 25px;
}

.page-contact__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.05em;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--background); /* Lighter background for inputs */
    color: var(--text-main);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: var(--text-secondary);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--glow);
    box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__form-submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__form-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__form-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: var(--background);
}

.page-contact__faq-list {
    max-width: 800px;
    margin: 40px auto;
}

.page-contact__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--divider);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-contact__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--gold);
    font-size: 1.15em;
    transition: background-color 0.3s ease;
}

.page-contact__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-contact__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--glow);
    margin-left: 15px;
}

.page-contact__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    font-size: 1em;
}

.page-contact__faq-answer p {
    margin-bottom: 10px;
}

.page-contact__faq-answer a {
    color: var(--main-color);
    text-decoration: underline;
}

.page-contact__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Social Media Section */
.page-contact__social-media-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider);
}

.page-contact__social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-contact__social-icon-link {
    display: block;
    transition: transform 0.3s ease;
}

.page-contact__social-icon-link:hover {
    transform: translateY(-5px);
}

.page-contact__social-icon {
    width: 200px; /* Min size requirement */
    height: 200px; /* Min size requirement */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Map Section */
.page-contact__map-section {
    padding: 80px 0;
    background-color: var(--background);
    text-align: center;
}

.page-contact__map-placeholder {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--divider);
}

.page-contact__map-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-contact__address-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-contact__hero-section {
        flex-direction: row;
        text-align: left;
        padding-left: 40px;
        padding-right: 40px;
    }

    .page-contact__hero-content {
        flex: 1;
        margin-right: 60px;
        margin-bottom: 0;
    }

    .page-contact__hero-image-container {
        flex: 1;
        margin-top: 0;
    }

    .page-contact__cta-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .page-contact__hero-title {
        font-size: clamp(2.5em, 4vw, 3.5em); /* Using clamp for H1 */
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-contact__section-title {
        font-size: 2em;
    }

    .page-contact__section-description {
        font-size: 1em;
    }

    .page-contact__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-contact__hero-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Using clamp for H1 on mobile */
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* All images base responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important; /* This width:100% will respect container padding */
        height: auto !important;
        min-width: 200px !important; /* Re-enforce min-width */
        min-height: 200px !important; /* Re-enforce min-height */
    }

    /* Image containers responsiveness - add overflow hidden */
    .page-contact__hero-image-container,
    .page-contact__form-image,
    .page-contact__faq-image,
    .page-contact__map-placeholder,
    .page-contact__contact-cards,
    .page-contact__social-icons,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-section,
    .page-contact__info-section,
    .page-contact__faq-section,
    .page-contact__social-media-section,
    .page-contact__map-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Ensure no horizontal overflow */
    }

    /* Button responsiveness */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__form-submit-btn,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific containers that might have multiple buttons */
    .page-contact__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding-left: 0 !important; /* Reset padding from general container rule */
        padding-right: 0 !important;
    }

    .page-contact__contact-cards {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

    .page-contact__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-contact__faq-answer {
        padding: 0 20px 15px;
    }
}