/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from shared.css body */
}

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

/* Color contrast enforcement */
.page-contact__dark-bg {
    background-color: #26A9E0; /* Main brand color for dark sections */
    color: #ffffff; /* Light text for dark background */
}

.page-contact__light-bg {
    background-color: #ffffff; /* Auxiliary color for light sections */
    color: #333333; /* Dark text for light background */
}

/* Section common styles */
.page-contact__content-area {
    padding: 60px 0;
    text-align: center;
}

.page-contact__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333333; /* Default for light backgrounds */
}

.page-contact__section-title--light {
    color: #ffffff; /* For dark backgrounds */
}

.page-contact__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555; /* Default for light backgrounds */
}

.page-contact__section-description--light {
    color: #f0f0f0; /* For dark backgrounds */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background-color: #26A9E0; /* Ensure dark background for hero */
    color: #ffffff;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.2; /* Slightly dim the background image */
}

.page-contact__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

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

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__hero-cta-button,
.page-contact__form-submit-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-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; /* Include padding in width calculation */
}

.page-contact__btn-primary,
.page-contact__hero-cta-button,
.page-contact__form-submit-button {
    background-color: #EA7C07; /* Login color for primary actions */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-contact__btn-primary:hover,
.page-contact__hero-cta-button:hover,
.page-contact__form-submit-button:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

/* Contact Info Section */
.page-contact__contact-info-section {
    background-color: #ffffff;
    color: #333333;
}

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

.page-contact__info-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-contact__info-card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-contact__info-card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__info-card-detail {
    font-weight: bold;
    color: #000000;
    margin-top: 10px;
}

.page-contact__info-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Form Section */
.page-contact__contact-form-section {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
}

.page-contact__form {
    max-width: 700px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.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 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-contact__form-submit-button {
    width: auto; /* Override max-width for form button */
    padding: 15px 40px;
    font-size: 1.1em;
    margin-top: 20px;
    display: block; /* Make it block level for full width on mobile */
    margin-left: auto;
    margin-right: auto;
}

.page-contact__form-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #ffffff;
    color: #333333;
}

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

.page-contact__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #f9f9f9;
}

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

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

.page-contact__faq-question h3 {
    margin: 0;
    flex-grow: 1;
    color: inherit;
}

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

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

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
    color: #555555;
    font-size: 0.95em;
    text-align: left;
}

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

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

.page-contact__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

.page-contact__faq-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Commitment Section */
.page-contact__commitment-section {
    background-color: #000000; /* Use black for a premium feel */
    color: #ffffff;
}

.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;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-top: 4px solid #EA7C07; /* Highlight with login color */
}

.page-contact__commitment-item-title {
    font-size: 1.4em;
    color: #EA7C07; /* Use login color for titles */
    margin-bottom: 15px;
}

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

/* Social Section */
.page-contact__social-section {
    background-color: #ffffff;
    color: #333333;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-contact__social-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-contact__social-icon img {
    
    
    object-fit: contain;
    border-radius: 0; /* Social icons should not have border-radius */
    opacity: 0.8; /* Use opacity instead of filter for dimming */
}

.page-contact__social-icon:hover {
    transform: translateY(-5px);
    background-color: #26A9E0;
}

.page-contact__social-icon:hover img {
    opacity: 1; /* Brighten on hover */
}

.page-contact__social-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Content containers responsiveness */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button responsiveness */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__hero-cta-button,
    .page-contact__form-submit-button,
    .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-left: 0 !important; /* Ensure full width if centered with auto margins */
        margin-right: 0 !important;
    }

    .page-contact__info-grid,
    .page-contact__commitment-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

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

    .page-contact__social-links {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__info-card,
    .page-contact__commitment-item,
    .page-contact__form {
        padding: 20px;
    }
    .page-contact__form-submit-button {
        font-size: 1em;
        padding: 12px 25px;
    }
}