/* style/contact.css */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #1F2D3D);
    background-color: var(--background-color, #F4F7FB);
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Specific top padding, not var(--header-offset) */
    padding-bottom: 60px;
    color: #ffffff;
    background-color: var(--main-color, #2F6BFF);
    overflow: hidden;
}

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

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    padding: 30px 20px;
    max-width: 900px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    margin-top: -100px; /* Adjust to slightly overlap the image for visual flow */
    border-radius: 10px;
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.2;
}

.page-contact__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-contact__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.page-contact__cta-buttons--center {
    margin-top: 30px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-contact__btn-secondary {
    background: #ffffff;
    color: var(--main-color, #2F6BFF);
    border: 2px solid var(--main-color, #2F6BFF);
}

.page-contact__btn-secondary:hover {
    background: var(--main-color, #2F6BFF);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.2);
}

/* General Section Styling */
.page-contact__methods-section,
.page-contact__when-to-contact-section,
.page-contact__faq-section,
.page-contact__commitment-section,
.page-contact__final-cta-section {
    padding: 60px 0;
}

.page-contact__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main-color, #1F2D3D);
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-main-color, #1F2D3D);
}

.page-contact__light-bg {
    background-color: var(--background-color, #F4F7FB);
    color: var(--text-main-color, #1F2D3D);
}

.page-contact__dark-section {
    background-color: var(--main-color, #2F6BFF);
    color: #ffffff;
}

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

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

.page-contact__method-card {
    background-color: var(--card-bg-color, #FFFFFF);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: var(--text-main-color, #1F2D3D);
}

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

.page-contact__method-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main-color, #1F2D3D);
}

.page-contact__method-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-main-color, #1F2D3D);
}

/* When to Contact Section */
.page-contact__bullet-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
    font-size: 1.1em;
}

.page-contact__bullet-list li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ffffff;
}

.page-contact__bullet-list li::before {
    content: '✅';
    font-size: 1.2em;
    line-height: 1;
    flex-shrink: 0;
}

/* FAQ Section */
.page-contact__faq-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-contact__faq-item {
    background-color: var(--card-bg-color, #FFFFFF);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color, #D6E2FF);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main-color, #1F2D3D);
    background-color: #ffffff;
    user-select: none;
    list-style: none;
}

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

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

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-main-color, #1F2D3D);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: 2000px; /* Sufficiently large to show content */
    transition: max-height 0.5s ease-in;
}

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

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

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

.page-contact__commitment-image {
    width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2)); /* Subtle glow for white images on dark background */
}

.page-contact__commitment-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-contact__commitment-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Final CTA Section */
.page-contact__final-cta-content {
    text-align: center;
}

.page-contact__final-cta-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Universal image settings to prevent overflow */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__hero-content {
        margin-top: -80px;
    }

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

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

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

    /* HERO Section */
    .page-contact__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-contact__hero-content {
        padding: 20px 15px;
        margin-top: -60px;
    }

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

    .page-contact__description {
        font-size: 0.95em;
    }

    /* CTA Buttons */
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    /* General Sections */
    .page-contact__methods-section,
    .page-contact__when-to-contact-section,
    .page-contact__faq-section,
    .page-contact__commitment-section,
    .page-contact__final-cta-section {
        padding: 40px 0;
    }

    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

    /* Methods Grid */
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__method-card {
        padding: 20px;
    }

    .page-contact__method-icon {
        width: 150px;
        height: 120px;
    }

    /* When to Contact List */
    .page-contact__bullet-list {
        margin: 30px auto;
        font-size: 1em;
    }

    .page-contact__bullet-list li {
        padding: 12px 15px;
        margin-bottom: 10px;
    }

    /* FAQ Section */
    .page-contact__faq-image {
        margin: 30px auto;
    }

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

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

    /* Commitment Section */
    .page-contact__commitment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__commitment-item {
        padding: 20px;
    }

    .page-contact__commitment-image {
        width: 150px;
        height: 100px;
    }

    /* Final CTA */
    .page-contact__final-cta-image {
        margin: 30px auto;
    }

    /* Universal Image Adaptation */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}