/* style/contact-us.css */

/* General Styles */
.page-contact-us {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #f8f8f8; /* Light background for the page content */
}

.page-contact-us__section {
    padding: 60px 20px;
    background-color: #ffffff; /* Default section background */
    margin-bottom: 20px;
}

.page-contact-us__section:nth-of-type(even) {
    background-color: #f2f2f2; /* Alternate background for better visual separation */
}

.page-contact-us__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-contact-us__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #8B0000; /* Use auxiliary color for titles */
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.page-contact-us__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Use primary color for underline */
    border-radius: 2px;
}

.page-contact-us__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact-us__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact-us__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Buttons */
.page-contact-us__cta-button,
.page-contact-us__btn-primary,
.page-contact-us__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-contact-us__cta-button {
    background: #FFD700; /* Primary color */
    color: #ffffff;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-contact-us__cta-button:hover {
    background: #e6c200; /* Slightly darker gold */
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.page-contact-us__btn-primary {
    background: #FFD700; /* Primary color */
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.2);
}

.page-contact-us__btn-primary:hover {
    background: #e6c200; /* Slightly darker gold */
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-contact-us__btn-secondary {
    background: #8B0000; /* Auxiliary color */
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(139, 0, 0, 0.2);
}

.page-contact-us__btn-secondary:hover {
    background: #6b0000; /* Slightly darker red */
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

/* Image styles */
.page-contact-us img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    /* No filter properties here to change image color */
}

/* Hero Section */
.page-contact-us__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #FFD700, #8B0000); /* Gradient background for visual appeal */
    color: #ffffff; /* White text for dark background */
    overflow: hidden; /* Ensure no overflow */
}

.page-contact-us__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential overlays */
}

.page-contact-us__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px; /* Constrain image width within hero */
}

.page-contact-us__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact-us__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-contact-us__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-contact-us__intro-text {
    font-size: 20px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Contact Methods Section */
.page-contact-us__contact-methods {
    background-color: #f8f8f8;
}

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

.page-contact-us__method-item {
    text-align: center;
    padding: 40px 25px;
}

.page-contact-us__method-icon {
    width: 200px; /* Enforce minimum size as per instructions */
    height: 200px; /* Enforce minimum size as per instructions */
    margin: 0 auto 20px auto;
    object-fit: contain; /* Ensure icons are fully visible */
    border-radius: 0; /* Icons typically don't have rounded corners */
    box-shadow: none;
}

.page-contact-us__method-title {
    font-size: 24px;
    font-weight: 700;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-contact-us__method-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
}

.page-contact-us__email-address,
.page-contact-us__phone-number,
.page-contact-us__operating-hours {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333333;
}

.page-contact-us__email-address a,
.page-contact-us__phone-number a {
    color: #8B0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact-us__email-address a:hover,
.page-contact-us__phone-number a:hover {
    color: #FFD700;
}

.page-contact-us__social-links {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-contact-us__social-links li {
    margin-bottom: 10px;
}

.page-contact-us__social-links a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.page-contact-us__social-links a:hover {
    color: #8B0000;
    text-decoration: underline;
}

/* Contact Form Section */
.page-contact-us__contact-form-section {
    background-color: #ffffff;
}

.page-contact-us__form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
}

.page-contact-us__form-group {
    margin-bottom: 25px;
}

.page-contact-us__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    font-size: 16px;
}

.page-contact-us__form-input,
.page-contact-us__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 16px;
    color: #333333;
    background-color: #fcfcfc;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact-us__form-input:focus,
.page-contact-us__form-textarea:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    outline: none;
}

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

/* FAQ Section */
.page-contact-us__faq-section {
    background-color: #f8f8f8;
}

.page-contact-us__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ容器样式 */
.page-contact-us__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-contact-us__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
}

/* FAQ展开状态 - ⚠️ Sử dụng!important và max-height đủ lớn để đảm bảo nó có thể mở rộng */
.page-contact-us__faq-item.active .page-contact-us__faq-answer {
    max-height: 2000px !important; /* ⚠️ Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
    padding: 20px !important;
    opacity: 1;
    background: #fdfdfd;
    border-top: 1px solid #eee;
    border-radius: 0 0 8px 8px;
}

/* Question style */
.page-contact-us__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-contact-us__faq-item.active .page-contact-us__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #FFD700;
}

.page-contact-us__faq-question:hover {
    background: #f5f5f5;
    border-color: #FFD700;
}

.page-contact-us__faq-question:active {
    background: #eeeeee;
}

/* Question title style */
.page-contact-us__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 tag from blocking click events */
}

/* Toggle icon */
.page-contact-us__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Use primary color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-contact-us__faq-item.active .page-contact-us__faq-toggle {
    color: #8B0000; /* Auxiliary color when active */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact-us__main-title {
        font-size: 40px;
    }

    .page-contact-us__intro-text {
        font-size: 18px;
    }

    .page-contact-us__section-title {
        font-size: 30px;
    }

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

    .page-contact-us__method-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* ⚠️ Mobile Hero Section */
    .page-contact-us__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact-us__hero-image {
        margin-bottom: 20px;
    }

    .page-contact-us__hero-image img {
        border-radius: 4px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-contact-us__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-contact-us__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* ⚠️ Mobile Image Adaption */
    .page-contact-us img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-contact-us__section,
    .page-contact-us__card,
    .page-contact-us__container,
    .page-contact-us__form-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-contact-us__section {
        padding: 40px 15px;
    }

    .page-contact-us__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .page-contact-us__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* ⚠️ Mobile Button Adaption */
    .page-contact-us__cta-button,
    .page-contact-us__btn-primary,
    .page-contact-us__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .page-contact-us__method-grid {
        grid-template-columns: 1fr; /* Stack items vertically */
    }

    .page-contact-us__method-item {
        padding: 30px 20px;
    }

    .page-contact-us__method-icon {
        width: 200px !important; /* Enforce minimum size on mobile too */
        height: 200px !important;
    }

    .page-contact-us__method-title {
        font-size: 20px;
    }

    .page-contact-us__form-wrapper {
        padding: 30px 20px;
    }

    .page-contact-us__form-label {
        font-size: 15px;
    }

    .page-contact-us__form-input,
    .page-contact-us__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }

    /* Mobile FAQ Adaption */
    .page-contact-us__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-contact-us__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-contact-us__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-contact-us__faq-answer {
        padding: 0 15px;
    }
    
    .page-contact-us__faq-item.active .page-contact-us__faq-answer {
        padding: 15px !important;
    }
}