/* style/contact.css */

/* Base Styles */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

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

.page-contact__section {
    padding: 60px 0;
    text-align: center;
}

.page-contact__dark-bg {
    background-color: #0A2342; /* Main brand color for dark sections */
    color: #ffffff;
}

.page-contact__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary color for titles */
}

.page-contact__section-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* 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, border-color 0.3s ease;
    margin: 10px;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-primary {
    background-color: #FFD700; /* Auxiliary color */
    color: #0A2342; /* Main brand color */
    border: 2px solid #FFD700;
}

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

.page-contact__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Auxiliary color */
    border: 2px solid #FFD700;
}

.page-contact__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A2342;
}

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

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    color: #ffffff;
    padding: 20px;
}

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

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-contact__hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Why Contact Section */
.page-contact__why-contact .page-contact__section-intro {
    color: #f0f0f0;
}

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

.page-contact__feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease;
}

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

.page-contact__feature-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-contact__feature-description {
    color: #f0f0f0;
}

/* Contact Methods Section */
.page-contact__contact-methods .page-contact__section-intro {
    color: #f0f0f0;
}

.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: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

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

.page-contact__method-icon {
    width: 400px; /* Display size, ensure >= 200px */
    height: 300px; /* Display size, ensure >= 200px */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
    max-width: 100%;
    height: auto;
}

.page-contact__method-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-contact__method-description {
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-contact__faq .page-contact__section-intro {
    color: #f0f0f0;
}

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-title {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
}

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

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large for content */
    padding: 20px !important;
}

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

.page-contact__faq-image {
    margin-top: 40px;
    width: 800px; /* Display size */
    height: 600px; /* Display size (800x600 aspect ratio) */
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Commitment Section */
.page-contact__commitment .page-contact__section-intro {
    color: #f0f0f0;
}

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

.page-contact__commitment-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease;
}

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

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

.page-contact__commitment-description {
    color: #f0f0f0;
}

.page-contact__commitment-image {
    margin-top: 40px;
    width: 800px; /* Display size */
    height: 533px; /* Display size (1200x800 aspect ratio) */
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* CTA Section */
.page-contact__cta {
    background-color: #0A2342; /* Main brand color */
    color: #ffffff;
    padding: 80px 0;
}

.page-contact__cta-content {
    max-width: 800px;
}

.page-contact__cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

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

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

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

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

    .page-contact__hero-title {
        font-size: 2.5em;
    }

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

    .page-contact__section {
        padding: 40px 0;
    }

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

    .page-contact__feature-grid,
    .page-contact__methods-grid,
    .page-contact__commitment-points {
        grid-template-columns: 1fr;
    }

    .page-contact__method-icon {
        width: 250px; /* Adjusted display size for mobile, still >= 200px */
        height: 187px;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__hero-image,
    .page-contact__faq-image,
    .page-contact__commitment-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    /* Video responsiveness (if any) */
    .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;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-contact__hero-actions,
    .page-contact__cta-actions {
        flex-direction: column;
        gap: 10px;
    }
    .page-contact__cta-actions .page-contact__btn-primary,
    .page-contact__cta-actions .page-contact__btn-secondary {
        width: calc(100% - 30px); /* Account for padding in container */
    }

    .page-contact__card,
    .page-contact__section,
    .page-contact__box,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure all links inside main content have good contrast */
.page-contact a {
    color: #FFD700; /* Use auxiliary color for links */
    text-decoration: underline;
}

.page-contact a:hover {
    color: #e6c200;
}

/* Text contrast fixes */
.page-contact__content-area,
.page-contact__text-block {
  color: #f0f0f0; /* Ensure readability on dark background */
}

.page-contact p,
.page-contact li {
  color: #f0f0f0; /* Ensure readability on dark background */
}