/* style/contact.css */

/* Base styles for the contact page content */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    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;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* Brand color as hero background */
    color: #ffffff; /* White text for brand color background */
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-contact__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-contact__intro-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
    font-size: 2.2em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
}

.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;
}

/* Contact Methods Section */
.page-contact__contact-methods {
    padding: 60px 0;
    background-color: #f5f5f5; /* Light background for this section */
    color: #333333; /* Dark text for light background */
}

.page-contact__contact-methods .page-contact__section-title {
    color: #333333; /* Dark text for light background */
}

.page-contact__contact-methods .page-contact__section-description {
    color: #555555; /* Darker grey for description */
}

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

.page-contact__method-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for card background */
}

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

.page-contact__method-icon {
    width: 200px; /* Min size 200x200px */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-contact__method-title {
    font-size: 1.5em;
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 10px;
}

.page-contact__method-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-contact__method-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #26A9E0;
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

.page-contact__method-link:hover {
    color: #1a7bb0; /* Slightly darker brand color on hover */
}

/* Contact Form Section */
.page-contact__contact-form {
    padding: 60px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff; /* White text for dark background */
}

.page-contact__contact-form .page-contact__section-title,
.page-contact__contact-form .page-contact__section-description {
    color: #ffffff;
}

.page-contact__form {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    border-radius: 10px;
    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;
}

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

.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 {
    outline: none;
    border-color: #26A9E0;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.5);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #f5f5f5; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-contact__faq-section .page-contact__section-title {
    color: #333333;
}

.page-contact__faq-section .page-contact__section-description {
    color: #555555;
}

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

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

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

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

/* Social Media Section */
.page-contact__social-media {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly darker than body background */
    color: #ffffff;
    text-align: center;
}

.page-contact__social-media .page-contact__section-title,
.page-contact__social-media .page-contact__section-description {
    color: #ffffff;
}

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

.page-contact__social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__social-link:hover {
    color: #26A9E0;
}

.page-contact__social-link img {
    width: 200px; /* Updated to meet min size requirement */
    height: 200px; /* Updated to meet min size requirement */
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.page-contact__social-link:hover img {
    transform: scale(1.1);
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't increase total width */
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-contact__btn-primary {
    background-color: #26A9E0; /* Brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-contact__btn-primary:hover {
    background-color: #1a7bb0; /* Darker brand color */
    border-color: #1a7bb0;
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-contact__main-title {
        font-size: 2.2em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    /* Fixed header spacing for mobile */
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-contact__main-title {
        font-size: 1.8em;
    }

    .page-contact__intro-description {
        font-size: 1em;
    }

    .page-contact__section-title {
        font-size: 1.6em;
    }

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

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__method-icon {
        width: 150px; /* Adjust size for mobile if needed, but keep >= 200px if possible */
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    /* Video responsiveness (if any, though none explicitly added for contact 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;
    }

    /* 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: 12px 20px; /* Adjust padding for smaller screens */
    }

    .page-contact__social-links {
        flex-direction: column;
        gap: 20px;
    }

    .page-contact__form {
        padding: 20px;
    }

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

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

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

/* Ensure content sections and cards are responsive */
.page-contact__section,
.page-contact__card,
.page-contact__container,
.page-contact__form {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
/* Ensure content sections and cards are responsive on mobile */
@media (max-width: 768px) {
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Adding padding to prevent content from touching screen edges */
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Override specific sections that might have 0 padding */
    .page-contact__hero-section .page-contact__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-contact__contact-methods .page-contact__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-contact__contact-form .page-contact__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-contact__faq-section .page-contact__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-contact__social-media .page-contact__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Color Contrast Enforcement - overrides for specific sections */
.page-contact__dark-section {
    background-color: #0a0a0a; /* Body background color */
    color: #ffffff;
}
.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description {
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #f5f5f5;
    color: #333333;
}
.page-contact__light-bg .page-contact__section-title,
.page-contact__light-bg .page-contact__section-description {
    color: #333333;
}
.page-contact__light-bg .page-contact__method-card {
    background-color: #ffffff;
    color: #333333;
}
.page-contact__light-bg .page-contact__faq-item {
    background-color: #ffffff;
}
.page-contact__light-bg .page-contact__faq-title,
.page-contact__light-bg .page-contact__faq-answer p {
    color: #333333;
}
.page-contact__light-bg .page-contact__faq-answer a {
    color: #26A9E0; /* Brand color for links */
}
.page-contact__light-bg .page-contact__method-link {
    color: #26A9E0;
}

/* Specific button contrast */
.page-contact__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}
.page-contact__btn-secondary {
    background: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}
.page-contact__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
}

/* Content area images CSS dimensions */
.page-contact__method-icon {
    width: 200px; /* minimum 200px */
    height: 150px; /* adjusted for aspect ratio */
    object-fit: cover;
}
.page-contact__social-link img {
    width: 200px; /* Updated to meet min size requirement */
    height: 200px; /* Updated to meet min size requirement */
    object-fit: contain;
}