/* style/contact.css */

/* Base styles for the contact page, assuming a dark body background from shared.css */
.page-contact {
    font-family: Arial, sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden; /* For image */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2; /* Slightly transparent to allow text to stand out */
    filter: brightness(0.7); /* Darken the image a bit for better text contrast */
}

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__intro-text {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Container for content sections */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-contact__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Channel Grid Section */
.page-contact__channels-section {
    background-color: #08160F; /* Background */
}

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

.page-contact__channel-card {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-contact__card-title {
    font-size: 1.5rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card-text {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2E7A4E; /* Border color for background */
    color: #F2FFF6; /* Text Main */
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: #57E38D; /* Glow */
    color: #08160F;
}

/* Contact Form Section */
.page-contact__form-section {
    background-color: #08160F; /* Background */
    padding-top: 0;
}

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

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #1E3A2A; /* Deep Green for input background */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    color: #F2FFF6; /* Text Main */
    font-size: 1rem;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #A7D9B8; /* Text Secondary */
    opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #57E38D; /* Glow */
    outline: none;
}

.page-contact__submit-button {
    width: auto;
    min-width: 180px;
    margin-top: 10px;
    display: block; /* Make button full width on small screens */
    margin-left: auto; /* Center button */
    margin-right: auto;
}

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

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

.page-contact__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    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;
    font-size: 1.15rem;
    color: #F2FFF6; /* Text Main */
    font-weight: bold;
    background-color: #11271B; /* Card BG */
    border-bottom: 1px solid transparent; /* default */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #1E3A2A; /* Deep Green for active FAQ header */
    border-bottom-color: #2E7A4E;
}

.page-contact__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-contact__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    color: #57E38D; /* Glow */
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

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

.page-contact__faq-answer p {
    margin-bottom: 10px;
    color: #A7D9B8; /* Ensure paragraph text color is secondary */
}

.page-contact__cta-wrapper {
    text-align: center;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    color: #F2FFF6; /* Text Main */
    border: 2px solid #2AD16F; /* Button border with primary green */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.page-contact__btn-secondary:hover {
    background-color: #2AD16F;
    color: #08160F; /* Background */
    transform: translateY(-2px);
}

/* Info Section */
.page-contact__info-section {
    background-color: #08160F; /* Background */
    padding-top: 0;
}

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

.page-contact__info-card {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-contact__info-card .page-contact__card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.page-contact__btn-link {
    display: inline-block;
    color: #57E38D; /* Glow */
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

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

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

    .page-contact__intro-text {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
    }

    .page-contact__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
}

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

    .page-contact__container {
        padding: 20px 15px;
    }

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

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

    .page-contact__intro-text {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }

    .page-contact__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .page-contact__section-description {
        margin-bottom: 30px;
    }

    .page-contact__channel-grid,
    .page-contact__info-grid {
        grid-template-columns: 1fr;
    }

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

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

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

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

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

    /* Mobile image responsiveness */
    .page-contact img {
        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__channels-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__info-section,
    .page-contact__contact-form {
        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__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;
        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-wrap: wrap !important;
        gap: 10px;
    }
    
    /* Ensure the hero image doesn't get squashed, but maintains responsiveness */
    .page-contact__hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        opacity: 0.2;
        filter: brightness(0.7);
    }
}