/* style/contact.css */

/* --- Base Styles --- */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text on light background */
    background-color: #FFFFFF; /* Default body background is white */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand main color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    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;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

.page-contact__btn-secondary:hover {
    background-color: #e0f4ff;
    color: #1a8cc4;
    border-color: #1a8cc4;
}

.page-contact__btn-large {
    padding: 15px 30px;
    font-size: 1.2em;
}

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-contact__dark-bg {
    background-color: #26A9E0; /* Brand main color */
    color: #FFFFFF;
}

.page-contact__hero-section .page-contact__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.page-contact__hero-content {
    max-width: 800px;
    margin-bottom: 40px;
}

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

.page-contact__subtitle {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #f0f8ff;
}

.page-contact__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2; /* Subtle background image */
}

.page-contact__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Contact Methods Section --- */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background */
    color: #333333;
}

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

.page-contact__method-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 350px; /* Ensure cards have similar height */
}

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

.page-contact__method-icon {
    width: 200px; /* Enforce min 200px */
    height: 200px; /* Enforce min 200px */
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 200px; /* Ensure icon size */
    min-height: 200px; /* Ensure icon size */
}

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

.page-contact__method-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-contact__email-link,
.page-contact__phone-link,
.page-contact__social-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover,
.page-contact__social-link:hover {
    color: #1a8cc4;
    text-decoration: underline;
}

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

/* --- Contact Form Section --- */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand main color */
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
    color: #FFFFFF;
    position: relative;
    z-index: 2;
}

.page-contact__form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    text-align: left; /* Align form elements to left */
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #FFFFFF;
}

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

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

.page-contact__form .page-contact__btn-primary {
    width: auto; /* Override max-width for form button */
    display: block; /* Make it a block element */
    margin-top: 20px;
}

.page-contact__form-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 1;
}

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

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

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

.page-contact__faq-item[open] {
    background-color: #e6f7ff; /* Lighter background when open */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #e0f4ff; /* Slightly lighter brand color for summary */
    border-bottom: 1px solid #d0edff;
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details/summary */
}

.page-contact__faq-item[open] .page-contact__faq-question {
    border-bottom: 1px solid #c0e0f0;
}

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

.page-contact__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate + to X when open */
    color: #1a8cc4;
}

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #fefefe;
}

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

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

.page-contact__text-link {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
}

.page-contact__text-link:hover {
    color: #1a8cc4;
}

.page-contact__faq-image {
    display: block;
    margin: 60px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --- Call to Action Section --- */
.page-contact__cta-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    background-color: #26A9E0; /* Brand main color */
    color: #FFFFFF;
}

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

.page-contact__cta-section .page-contact__section-title,
.page-contact__cta-section .page-contact__section-description {
    color: #FFFFFF;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-contact__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 1;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 3em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-contact__container {
        padding: 0 15px; /* Add padding for mobile content */
    }

    /* Important: Mobile responsive image, video, button rules */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        min-height: 400px;
    }

    .page-contact__hero-section .page-contact__container {
        flex-direction: column;
    }

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

    .page-contact__subtitle {
        font-size: 1.1em;
    }

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

    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 40px 0;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__form {
        padding: 25px;
    }

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

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

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

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

    /* Content area image size enforcement */
    .page-contact__hero-image,
    .page-contact__method-icon,
    .page-contact__form-image,
    .page-contact__faq-image,
    .page-contact__cta-image {
        min-width: 200px !important;
        min-height: 200px !important;
        width: auto !important; /* Allow auto width for larger images to scale */
        height: auto !important; /* Allow auto height for larger images to scale */
    }
    .page-contact__method-icon {
        width: 200px !important;
        height: 200px !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

/* Ensure details summary marker is hidden */
.page-contact__faq-question::-webkit-details-marker,
.page-contact__faq-question::marker {
    display: none;
}