/* style/contact.css */

/* Base Styles & Typography */
.page-contact {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Body background is dark (#000), so text should be light */
    line-height: 1.6;
    background-color: transparent; /* Inherit from body or shared.css */
}

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

.page-contact__section-heading {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 100px 0;
    background-color: #017439; /* Primary brand color for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-contact__hero-section .page-contact__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-contact__hero-content {
    flex: 1;
    text-align: left;
}

.page-contact__main-heading {
    font-size: 3.2em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-contact__sub-heading {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-contact__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure responsiveness */
}

.page-contact__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-contact__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-contact__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
}

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

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.08); /* Translucent white for cards */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.page-contact__method-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__method-icon {
    width: 200px; /* Min size 200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-contact__method-title {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__method-text {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-contact__btn-small {
    padding: 10px 20px;
    font-size: 0.95em;
}

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

.page-contact__social-btn {
    background-color: #017439;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
}

.page-contact__social-btn:hover {
    background-color: #005f2f;
}

/* Feedback Section */
.page-contact__feedback-section {
    padding: 80px 0;
    background-color: #017439; /* Primary brand color */
}

.page-contact__feedback-section .page-contact__section-heading,
.page-contact__feedback-section .page-contact__section-description {
    color: #FFFFFF;
}

.page-contact__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    margin-top: 40px;
}

.page-contact__contact-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    flex: 1;
    min-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #FFFFFF;
    font-size: 1.1em;
}

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

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__form-submit {
    width: auto;
    cursor: pointer;
    margin-top: 10px;
    padding: 15px 40px;
    font-size: 1.1em;
}

.page-contact__form-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

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

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

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

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

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

.page-contact__faq-question:hover {
    color: #FFFF00; /* Highlight color for hover */
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #e0e0e0;
    font-size: 1em;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px 25px;
}

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

/* Support Promise Section */
.page-contact__support-promise-section {
    padding: 80px 0;
    background-color: #017439;
    text-align: center;
}

.page-contact__support-promise-section .page-contact__section-heading,
.page-contact__support-promise-section .page-contact__section-description {
    color: #FFFFFF;
}

.page-contact__support-promise-section .page-contact__btn-primary {
    margin-top: 30px;
}

/* Dark background helper class for sections */
.page-contact__dark-bg {
    background-color: #0d0d0d;
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-contact__hero-section .page-contact__container {
        flex-direction: column;
        text-align: center;
    }

    .page-contact__hero-content {
        text-align: center;
    }

    .page-contact__cta-buttons {
        justify-content: center;
    }

    .page-contact__form-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .page-contact__contact-form,
    .page-contact__form-image-wrapper {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-contact__main-heading {
        font-size: 2.5em;
    }

    .page-contact__sub-heading {
        font-size: 1em;
    }

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

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

    .page-contact__hero-section,
    .page-contact__methods-section,
    .page-contact__feedback-section,
    .page-contact__faq-section,
    .page-contact__support-promise-section {
        padding: 60px 0;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        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 {
        flex-direction: column;
        gap: 10px;
    }

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

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__hero-image-wrapper,
    .page-contact__form-image-wrapper,
    .page-contact__method-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-contact__method-icon {
        width: 150px; /* Adjust for smaller screens but keep min size */
        height: auto;
    }

    .page-contact__contact-form {
        padding: 25px;
    }

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

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

    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-contact__main-heading {
        font-size: 2em;
    }

    .page-contact__section-heading {
        font-size: 1.8em;
    }

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