/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Default background */
}

/* Fixed header offset */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Desktop and mobile offset */
    padding-bottom: 60px;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for primary background */
    text-align: center;
    background-size: cover;
    background-position: center;
}

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

.page-contact__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-contact__contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-contact__method-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    flex: 1 1 300px;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-contact__method-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 10px;
    object-fit: contain;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-contact__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

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

.page-contact__inline-link {
    color: #EA7C07;
    text-decoration: underline;
}

.page-contact__inline-link:hover {
    color: #d86c06;
}

/* Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
}

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

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.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;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

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

.page-contact__form-submit-btn {
    width: auto; /* Override max-width:100% for desktop, will be 100% on mobile */
    min-width: 200px;
    margin-top: 20px;
}

/* Info Section */
.page-contact__info-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

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

.page-contact__info-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__info-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 8px;
    object-fit: contain;
}

.page-contact__info-heading {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-contact__info-text {
    font-size: 1em;
    margin-bottom: 5px;
    color: #f0f0f0;
}

.page-contact__additional-note {
    margin-top: 40px;
    text-align: center;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* Why Choose Us Section */
.page-contact__why-choose-us {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-contact__feature-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-contact__feature-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-contact__feature-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #26A9E0;
    font-weight: bold;
}

.page-contact__feature-text {
    font-size: 1em;
    color: #555555;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

/* Style for details element's native toggle */
.page-contact__faq-item > summary {
    list-style: none; /* Hide default marker */
}
.page-contact__faq-item > summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-contact__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.7;
}

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

/* CTA Section */
.page-contact__cta-section {
    padding: 60px 0;
    background-color: #f8f8f8;
    text-align: center;
    color: #333333;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* For mobile responsiveness */
    max-width: 600px; /* Limit width on desktop */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-contact__cta-btn {
    min-width: 180px; /* Ensure buttons are not too small */
    flex-grow: 1; /* Allow buttons to grow */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-contact__hero-title {
        font-size: 2em;
    }

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

    .page-contact__contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .page-contact__method-item {
        max-width: 100%;
        width: calc(100% - 30px); /* Account for padding */
    }

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

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

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

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

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

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

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    .page-contact__cta-btn {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Containers for images/videos to prevent overflow */
    .page-contact__hero-section,
    .page-contact__form-section,
    .page-contact__info-section,
    .page-contact__why-choose-us,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    /* Inner containers should still respect their max-width but not cause overflow */
    .page-contact__container {
        padding: 0; /* Remove internal padding to avoid double padding with section padding */
        max-width: 100%; /* Ensure it fits within the section */
    }

    /* Specific elements that might need padding within their cards/items */
    .page-contact__method-item,
    .page-contact__info-card,
    .page-contact__feature-card,
    .page-contact__faq-item {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Form itself is a container too */
    .page-contact__contact-form {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

}

/* Ensure no filter on images */
.page-contact img {
    filter: none;
}