/* style/contact.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E; /* Main Green */
    --secondary-color: #22C768; /* Auxiliary Green */
    --button-gradient-start: #2AD16F;
    --button-gradient-end: #13994A;
    --card-bg: #11271B; /* Dark Green for cards */
    --bg-color: #08160F; /* Deepest Green for background */
    --text-main: #F2FFF6; /* Lightest text */
    --text-secondary: #A7D9B8; /* Secondary light text */
    --border-color: #2E7A4E; /* Border Green */
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-contact {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for the page content */
    background-color: var(--bg-color); /* Ensure consistency, though body handles main bg */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    background-color: var(--deep-green); /* A slightly lighter dark green for the hero background */
    overflow: hidden; /* Ensure no overflow */
}

.page-contact__hero-image {
    width: 100%;
    max-width: 1920px; /* Ensure image doesn't stretch too wide */
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%; /* Ensure content block takes full width within max-width */
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-contact__main-title {
    color: var(--text-main);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 100%; /* Allow h1 to take full width */
    margin-bottom: 15px;
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
}

.page-contact__intro-text {
    color: var(--text-secondary);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-contact__btn-primary {
    background: var(--button-gradient-start); /* Fallback for browsers not supporting gradient */
    background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-contact__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--bg-color); /* Dark text on light background */
    transform: translateY(-2px);
}

/* General Section Styling */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

.page-contact__section-description {
    color: var(--text-secondary);
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

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

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

.page-contact__method-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-contact__method-icon {
    width: 250px; /* Minimum 200x200 */
    height: 187px; /* Maintain aspect ratio for 800x600 */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-contact__method-text {
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.6;
    flex-grow: 1; /* Allow text to take up available space */
    margin-bottom: 20px;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--deep-green);
}

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

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

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

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

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

.page-contact__form-submit-btn {
    width: auto; /* Allow button to size naturally */
    min-width: 200px;
    padding: 15px 30px;
    font-size: 1.1em;
    margin-top: 20px;
}

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

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

.page-contact__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

/* For <details> tag, hide default marker */
.page-contact__faq-item summary {
    list-style: none;
}
.page-contact__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-contact__faq-question:hover {
    background-color: var(--deep-green);
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    margin-left: 20px;
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.6;
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

/* For <details> tag, when open */
.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding-top: 15px;
}

/* For JS (div) fallback */
.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 500px !important; /* Use !important for JS toggle */
    padding-top: 15px;
}

/* About Section */
.page-contact__about-section {
    padding: 80px 0;
    background-color: var(--deep-green);
}

.page-contact__about-image {
    width: 100%;
    max-width: 800px; /* example size */
    height: auto;
    display: block;
    margin: 50px auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.page-contact__about-subtitle {
    color: var(--text-main);
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__about-text {
    color: var(--text-secondary);
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: clamp(2em, 3.5vw, 2.8em);
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-contact__hero-content {
        padding: 0 15px;
    }
    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__form-section,
    .page-contact__methods-section,
    .page-contact__faq-section,
    .page-contact__about-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .page-contact__main-title {
        font-size: clamp(1.8em, 5vw, 2.2em); /* Smaller font size for mobile H1 */
    }
    .page-contact__intro-text {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness (if any, although not in this page) */
    .page-contact video,
    .page-contact__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .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;
    }

    /* Mobile button responsiveness */
    .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;
        padding-right: 15px;
        margin-bottom: 15px; /* Add some space between stacked buttons */
    }
    
    .page-contact__hero-content .page-contact__btn-primary {
        margin-left: 0; /* Remove horizontal margins for stacking */
        margin-right: 0;
    }

    .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: 10px; /* Space between stacked buttons */
        display: flex; /* Ensure flex context for column direction */
        overflow: hidden !important;
    }

    /* General container padding for mobile */
    .page-contact__container,
    .page-contact__contact-form {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-contact__hero-section {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 10px !important; /* body already has padding-top */
    }

    .page-contact__method-icon {
        width: 200px; /* Ensure minimum size */
        height: auto;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        font-size: 0.95em;
    }
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-contact__about-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}