/* style/contact.css */

/* --- Base Styles --- */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
}

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

.page-contact__section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

.page-contact__dark-section {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient as dark background */
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #FFFFFF; /* Card BG */
    color: #1F2D3D;
}

.page-contact__section-title {
    font-size: clamp(28px, 4vw, 38px); /* H1 font size rule */
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__dark-section .page-contact__section-title {
    color: #ffffff;
}

.page-contact__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #1F2D3D; /* Text Main */
}

.page-contact__dark-section .page-contact__section-description {
    color: #f0f0f0;
}

.page-contact__card {
    background-color: #FFFFFF; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #1F2D3D; /* Text Main */
}

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

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

.page-contact__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #2F6BFF; /* Main color */
    border: 2px solid #2F6BFF; /* Main color */
}

.page-contact__btn-secondary:hover {
    background-color: #F4F7FB; /* Background */
    color: #2F6BFF;
}

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
    background-color: #F4F7FB; /* Fallback for image */
}

.page-contact__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-contact__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Subtle overlay */
}

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff; /* White text on hero image */
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for readability */
    border-radius: 10px;
}

.page-contact__main-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 18px;
    margin-bottom: 25px;
}

/* --- Contact Info Section --- */
.page-contact__contact-info {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-contact__info-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-contact__info-icon {
    font-size: 48px;
    color: #2F6BFF; /* Main color */
    margin-bottom: 15px;
}

.page-contact__info-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2F6BFF; /* Main color */
}

.page-contact__info-text {
    font-size: 16px;
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-contact__info-value {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1F2D3D; /* Text Main */
}

/* --- Contact Form Section --- */
.page-contact__form-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
}

.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;
    border: 1px solid #6FA3FF; /* Auxiliary color */
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #1F2D3D;
    font-size: 16px;
    box-sizing: border-box;
}

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

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

.page-contact__form-submit-btn {
    width: auto;
    min-width: 150px;
    margin-top: 10px;
}

.page-contact__cta-banner {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.page-contact__cta-text {
    font-size: 22px;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: bold;
}

/* --- FAQ Section --- */
.page-contact__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-contact__faq-item {
    margin-bottom: 15px;
    overflow: hidden;
}

.page-contact__faq-item[open] {
    background-color: #EBF2FF; /* Lighter background when open */
    border-color: #2F6BFF;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    background-color: #FFFFFF; /* Card BG */
    border-bottom: 1px solid #D6E2FF;
    border-radius: 8px;
    list-style: none; /* For details/summary */
    color: #1F2D3D; /* Text Main */
}

.page-contact__faq-item[open] .page-contact__faq-question {
    border-bottom: 1px solid #2F6BFF;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-contact__faq-question::-webkit-details-marker {
    display: none;
}
.page-contact__faq-question::marker {
    display: none;
}

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

.page-contact__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    color: #2F6BFF; /* Main color */
}

.page-contact__faq-answer {
    padding: 20px;
    font-size: 16px;
    background-color: #EBF2FF; /* Lighter background for answer */
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #1F2D3D; /* Text Main */
}

/* --- Why Choose Us Section --- */
.page-contact__why-choose-us {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-contact__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

.page-contact__benefit-item {
    background-color: #FFFFFF; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #1F2D3D; /* Text Main */
}

.page-contact__benefit-title {
    font-size: 22px;
    color: #2F6BFF; /* Main color */
    margin-bottom: 10px;
}

.page-contact__benefit-text {
    font-size: 16px;
}

/* --- Image specific styles (for content images) --- */
.page-contact__image-content {
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    width: 100%;
    max-width: 800px; /* Example max-width, adjust as needed */
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

    .page-contact__section {
        padding: 40px 0;
    }
    
    .page-contact__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* Fixed header spacing for first section */
    }

    .page-contact__hero-content {
        padding: 15px;
    }

    .page-contact__main-title {
        font-size: clamp(28px, 8vw, 36px);
    }

    .page-contact__hero-description {
        font-size: 16px;
    }

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

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

    /* Images */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Hero image needs height:100% to fill wrapper */
    }

    /* Containers for images/videos/buttons */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__contact-form,
    .page-contact__cta-banner,
    .page-contact__info-item,
    .page-contact__benefit-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure hero image wrapper also adapts */
    .page-contact__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Buttons */
    .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;
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    /* Button containers for multiple buttons */
    .page-contact__cta-banner,
    .page-contact__info-item {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
        gap: 10px; /* Space between buttons */
    }

    .page-contact__cta-button {
        margin-top: 15px;
    }

    .page-contact__faq-question {
        font-size: 16px;
        padding: 15px;
    }

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

    .page-contact__section-title {
        font-size: clamp(24px, 7vw, 32px);
    }
    
    .page-contact__section-description {
        font-size: 16px;
    }
    
    .page-contact__benefits-list {
        grid-template-columns: 1fr;
    }
    
    .page-contact__benefit-item {
        padding: 20px;
    }
}