/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    background: #08160F; /* Custom Background color */
    color: #F2FFF6; /* Custom Text Main color */
    line-height: 1.6;
    padding-bottom: 60px; /* Add some space at the bottom */
}

/* Ensure all images are responsive and do not cause overflow */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Section container for consistent padding and max-width */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-contact__section-title {
    font-size: 2.5em; /* Use em for relative sizing */
    color: #F2C14E; /* Custom Gold color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Custom Text Secondary color */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background gradient */
    overflow: hidden; /* Ensure nothing overflows */
}

.page-contact__hero-image {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px; /* Space between image and content */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-contact__main-title {
    font-weight: 800; /* Use font-weight instead of huge font-size */
    color: #F2C14E; /* Gold for main title */
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    /* Clamp font size for responsiveness, within limits */
    font-size: clamp(2.2em, 4vw, 3.5em); 
}

.page-contact__hero-description {
    font-size: 1.15em;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin-top: 30px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button gradient */
    color: #ffffff; /* White text for primary button */
    border: none;
    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);
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
}

.page-contact__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Green text for secondary button */
    border: 2px solid #2AD16F; /* Green border */
    box-shadow: none;
}

.page-contact__btn-secondary:hover {
    background: rgba(42, 209, 111, 0.1); /* Light green background on hover */
    transform: translateY(-3px);
}

/* Contact Methods Section */
.page-contact__contact-methods {
    padding: 80px 0;
    background: #08160F; /* Custom Background color */
}

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

.page-contact__method-card {
    background: #11271B; /* Custom Card BG color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Custom Border color */
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-contact__method-icon {
    width: 100%; /* Make them fill available space */
    height: auto;
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px; /* Enforce minimum size for images */
    margin: 0 auto 20px;
    object-fit: contain;
}

.page-contact__method-title {
    font-size: 1.8em;
    color: #F2C14E; /* Custom Gold color */
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 1em;
    color: #A7D9B8; /* Custom Text Secondary color */
    margin-bottom: 20px;
}

.page-contact__method-link {
    color: #57E38D; /* Custom Glow color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__method-link:hover {
    color: #F2C14E; /* Gold on hover */
    text-decoration: underline;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background: #0A4B2C; /* Deep Green for a distinct section */
    color: #F2FFF6;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #11271B; /* Card BG color */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Custom Border color */
}

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

.page-contact__form-label {
    display: block;
    font-size: 1.1em;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #2E7A4E;
    border-radius: 8px;
    background: #08160F; /* Background color for inputs */
    color: #F2FFF6; /* Main text color */
    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: #A7D9B8; /* Secondary text color for placeholders */
    opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #57E38D; /* Glow color on focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3); /* Soft glow effect */
}

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

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background: #08160F; /* Custom Background color */
}

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

.page-contact__faq-item {
    background: #11271B; /* Card BG color */
    border: 1px solid #2E7A4E;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-contact__faq-item[open] {
    background: #0A4B2C; /* Deep Green when open */
    border-color: #57E38D; /* Glow color border when open */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6; /* Main text color */
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details/summary */
}

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

.page-contact__faq-item[open] .page-contact__faq-question {
    color: #F2C14E; /* Gold when open */
}

.page-contact__faq-question:hover {
    background-color: rgba(42, 209, 111, 0.05);
}

.page-contact__faq-qtext {
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #57E38D; /* Glow color */
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar effect */
    color: #F2C14E; /* Gold when open */
}

.page-contact__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Secondary text color */
    line-height: 1.7;
}

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

.page-contact__faq-link {
    color: #57E38D; /* Glow color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__faq-link:hover {
    color: #F2C14E; /* Gold on hover */
    text-decoration: underline;
}

/* Social Media Section */
.page-contact__social-media {
    padding: 60px 0;
    background: #0A4B2C; /* Deep Green */
    text-align: center;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.page-contact__social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: #11271B; /* Card BG color */
    color: #F2FFF6; /* Main text color */
    border-radius: 50%;
    font-size: 1.8em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #2E7A4E;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__social-icon-link:hover {
    background: #57E38D; /* Glow color on hover */
    color: #08160F; /* Background color for text on hover */
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 15px rgba(87, 227, 141, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-contact__section-title {
        font-size: 2em;
    }
}

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

    .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images, videos, buttons and their containers must be responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact video,
    .page-contact__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__contact-methods,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__social-media,
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }

    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .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; /* Adjust padding for full width buttons */
        padding-right: 15px;
    }

    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important; /* Space between stacked buttons */
        overflow: hidden !important;
    }

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

    .page-contact__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-contact__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-contact__method-grid {
        grid-template-columns: 1fr; /* Single column layout for methods */
    }

    .page-contact__method-card {
        padding: 25px;
    }

    .page-contact__method-icon {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
    }

    .page-contact__form-label {
        font-size: 1em;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
        font-size: 0.95em;
    }

    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }

    .page-contact__faq-answer {
        padding: 0 20px 18px;
        font-size: 0.95em;
    }

    .page-contact__social-icon-link {
        width: 50px;
        height: 50px;
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important;
    }
    .page-contact__main-title {
        font-size: clamp(1.6em, 8vw, 2.2em);
    }
    .page-contact__section-title {
        font-size: 1.6em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-contact__contact-form {
        padding: 25px 15px;
    }
}