/* style/contact.css */

/* --- Base Styles & Layout --- */
.page-contact {
    color: #ffffff; /* Light text on dark body background #0a0a0a */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-contact__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem); /* H2 font size with clamp */
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

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

/* --- Hero Section --- */
.page-contact__hero-section {
    background-color: #017439; /* Primary brand color for hero background */
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small decorative top spacing, not header-offset */
}

.page-contact__hero-section .page-contact__container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.page-contact__hero-content {
    order: 2; /* Content below image on desktop */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-contact__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 font size with clamp */
    color: #FFFF00; /* Custom color for H1 as per brand guide (Register/Login font color) for prominence */
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 900px; /* Constrain H1 width */
}

.page-contact__hero-description {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
}

.page-contact__hero-image-wrapper {
    order: 1; /* Image above content on desktop */
    width: 100%;
    max-width: 1000px; /* Max width for the image */
    margin-bottom: 40px;
}

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

/* --- Contact Info Section --- */
.page-contact__info-section {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
    padding: 80px 0;
    text-align: center;
}

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

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

.page-contact__method-card:hover {
    transform: translateY(-5px);
}

.page-contact__method-title {
    font-size: 1.5rem;
    color: #FFFF00; /* Custom color for titles */
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-contact__method-detail {
    font-size: 1.1rem;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 20px;
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #017439;
    color: #ffffff;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

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

/* --- Contact Form Section --- */
.page-contact__form-section {
    background-color: #0a0a0a; /* Body background color */
    padding: 80px 0;
}

.page-contact__form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.page-contact__form-image-wrapper {
    width: 100%;
}

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

.page-contact__form-content {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__form-content .page-contact__section-title {
    text-align: left;
    color: #FFFF00;
}

.page-contact__form-content .page-contact__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 30px;
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

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

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #cccccc;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFFF00;
    outline: none;
}

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

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

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFFF00;
    cursor: pointer;
    background-color: #017439;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #005f2f;
}

.page-contact__faq-item[open] > .page-contact__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-contact__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 15px;
    color: #ffffff;
}

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.05);
}

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

/* --- Call to Action Section --- */
.page-contact__cta-section {
    background-color: #017439; /* Primary brand color */
    padding: 80px 0;
    text-align: center;
}

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

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box; /* Important for responsive buttons */
    max-width: 100%; /* Default for desktop too */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-primary {
    background-color: #C30808; /* Custom red for register/login */
    color: #FFFF00; /* Custom yellow for register/login font */
    border: 2px solid #C30808;
}

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

.page-contact__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Yellow text for secondary on dark background */
    border: 2px solid #FFFF00;
}

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

.page-contact__cta-button {
    margin: 10px 0;
}

/* --- Responsive Adjustments --- */
@media (min-width: 769px) {
    .page-contact__hero-section .page-contact__container {
        flex-direction: row; /* Image and content side-by-side */
        text-align: left;
        align-items: center;
    }
    .page-contact__hero-content {
        order: 2; /* Content on right */
        align-items: flex-start;
        text-align: left;
        flex: 1;
    }
    .page-contact__hero-image-wrapper {
        order: 1; /* Image on left */
        flex: 1;
        margin-bottom: 0;
    }
    .page-contact__form-grid {
        grid-template-columns: 1fr 1fr; /* Form and image side-by-side */
    }
    .page-contact__form-content .page-contact__section-title,
    .page-contact__form-content .page-contact__section-description {
        text-align: left;
    }
    .page-contact__contact-methods {
        grid-template-columns: repeat(2, 1fr); /* Two columns on larger screens */
    }
}


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

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

    /* Hero Section */
    .page-contact__hero-section {
        padding: 40px 0 !important;
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-contact__hero-section .page-contact__container {
        flex-direction: column !important; /* Stack elements vertically */
        gap: 30px !important;
    }
    .page-contact__hero-content {
        order: 2 !important; /* Content below image */
        text-align: center !important;
        align-items: center !important;
    }
    .page-contact__hero-image-wrapper {
        order: 1 !important; /* Image above content */
        margin-bottom: 30px !important;
    }
    .page-contact__main-title {
        font-size: 2rem !important; /* Adjust H1 for mobile */
        margin-bottom: 15px !important;
    }
    .page-contact__hero-description {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }

    /* Info Section */
    .page-contact__info-section {
        padding: 50px 0 !important;
    }
    .page-contact__contact-methods {
        grid-template-columns: 1fr !important; /* Single column for cards */
        gap: 20px !important;
    }
    .page-contact__method-card {
        padding: 25px !important;
    }
    .page-contact__method-title {
        font-size: 1.3rem !important;
    }

    /* Form Section */
    .page-contact__form-section {
        padding: 50px 0 !important;
    }
    .page-contact__form-grid {
        grid-template-columns: 1fr !important; /* Single column for form and image */
        gap: 30px !important;
    }
    .page-contact__form-content {
        padding: 30px !important;
    }
    .page-contact__form-content .page-contact__section-title,
    .page-contact__form-content .page-contact__section-description {
        text-align: center !important; /* Center text on mobile */
    }
    .page-contact__form-label {
        font-size: 0.95rem !important;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }

    /* FAQ Section */
    .page-contact__faq-section {
        padding: 50px 0 !important;
    }
    .page-contact__faq-question {
        padding: 15px 20px !important;
        font-size: 1.1rem !important;
    }
    .page-contact__faq-answer {
        padding: 15px 20px !important;
        font-size: 0.95rem !important;
    }
    .page-contact__faq-toggle {
        font-size: 1.3rem !important;
    }

    /* CTA Section */
    .page-contact__cta-section {
        padding: 50px 0 !important;
    }
    .page-contact__cta-content {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* --- Universal Mobile Image/Video/Button Adaptation --- */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact video,
    .page-contact__video { /* If video were present */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__video-section, /* If video were present */
    .page-contact__video-container, /* If video were present */
    .page-contact__video-wrapper, /* If video were present */
    .page-contact__cta-buttons, /* Button container */
    .page-contact__button-group, /* Button container */
    .page-contact__btn-container /* Button container */
    {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content 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 !important; /* Add padding to buttons */
        padding-right: 15px !important;
    }

    /* For multiple buttons in a group, stack them vertically */
    .page-contact__cta-content {
        flex-direction: column !important;
        gap: 15px !important;
    }
}