/* style/contact.css */

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

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

.page-contact__section-title {
    font-size: 36px;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-contact__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); /* Ensure content is not hidden by fixed header */
    background: linear-gradient(135deg, #1A1A1A, #333333); /* Dark background for hero */
    color: #ffffff;
    overflow: hidden; /* Prevent content overflow */
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 1000px; /* Max width for the image within hero */
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-contact__hero-title {
    font-size: 48px;
    margin-bottom: 15px;
    color: #FFD700; /* Golden text for emphasis */
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Primary color for CTA */
    color: #1A1A1A;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Info Section */
.page-contact__info-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333;
}

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

.page-contact__card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333; /* Dark text for light card background */
}

.page-contact__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-contact__card-icon {
    width: 80px; /* Display size, generated image is min 200x200 */
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2)); /* Allowed shadow, not color filter */
}

.page-contact__card-title {
    font-size: 24px;
    color: #1A1A1A;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background: #FFD700;
    color: #1A1A1A;
    border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
    background: #e6c200;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-contact__btn-secondary:hover {
    background: #FFD700;
    color: #1A1A1A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background: #1A1A1A; /* Dark background for form */
    color: #ffffff;
}

.page-contact__form-section .page-contact__section-title {
    color: #FFD700; /* Golden title on dark background */
}

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    background: #2a2a2a; /* Slightly lighter dark background for the form itself */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 17px;
    color: #FFD700; /* Golden labels */
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #444444;
    border-radius: 5px;
    background: #3a3a3a;
    color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-contact__submit-button {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
    background: #FFD700;
    color: #1A1A1A;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__submit-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333;
}

.page-contact__faq-list {
    max-width: 800px;
    margin: 50px auto 0;
}

/* FAQ container styles */
.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* FAQ default state - answer hidden */
.page-contact__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;
    color: #555555;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height to ensure expansion */
.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa bất kỳ nội dung nào */
    padding: 20px !important;
    opacity: 1;
    background: #ffffff; /* Light background for answer */
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #eeeeee;
}

/* Question styles */
.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #FFD700; /* Golden background for question */
    color: #1A1A1A; /* Dark text on golden background */
    border: 1px solid #FFD700;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.page-contact__faq-question:hover {
    background: #e6c200;
    border-color: #e6c200;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-contact__faq-question:active {
    background: #d1b100;
    border-color: #d1b100;
}

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

/* Toggle icon */
.page-contact__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #1A1A1A;
    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: 30px;
    height: 30px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
    color: #1A1A1A;
}

/* Social Media Section */
.page-contact__social-media-section {
    padding: 80px 0;
    background: #1A1A1A;
    color: #ffffff;
}

.page-contact__social-media-section .page-contact__section-title {
    color: #FFD700;
}

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

.page-contact__social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #2a2a2a;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__social-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: #FFD700; /* Golden hover for social icons */
}

.page-contact__social-icon img {
     /* Display size, generated image is min 200x200 */
    
    object-fit: contain;
    filter: brightness(1.2); /* Slightly brighten icons on dark background, not changing color */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 40px;
    }
    .page-contact__hero-description {
        font-size: 18px;
    }
    .page-contact__section-title {
        font-size: 30px;
    }
    .page-contact__section-description {
        font-size: 16px;
    }
    .page-contact__card-title {
        font-size: 22px;
    }
    .page-contact__faq-question h3 {
        font-size: 17px;
    }
}

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

    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-contact__hero-image img {
        border-radius: 4px;
        max-width: 100% !important; /* Enforce mobile image width */
        width: 100% !important;
        height: auto !important;
    }
    
    .page-contact__hero-title {
        font-size: 32px;
    }
    .page-contact__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-contact__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__social-media-section {
        padding: 40px 0;
    }

    .page-contact__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-contact__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-contact__contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-contact__card {
        padding: 25px;
    }
    .page-contact__card-icon {
        width: 60px;
        height: 60px;
    }
    .page-contact__card-title {
        font-size: 20px;
    }
    .page-contact__card-text {
        font-size: 15px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        padding: 10px 20px;
        font-size: 15px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__contact-form {
        padding: 25px;
        margin-top: 30px;
    }
    .page-contact__form-label {
        font-size: 16px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
        font-size: 15px;
    }
    .page-contact__submit-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__faq-list {
        margin-top: 30px;
    }
    .page-contact__faq-question {
        padding: 15px;
        flex-wrap: wrap;
        border-radius: 6px;
    }
    .page-contact__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-contact__faq-toggle {
        margin-left: 10px;
        width: 26px;
        height: 26px;
        font-size: 24px;
    }
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }

    .page-contact__social-icons {
        gap: 20px;
        margin-top: 30px;
    }
    .page-contact__social-icon {
        width: 60px;
        height: 60px;
    }
    .page-contact__social-icon img {
        
        
    }

    /* Ensure all images in content area are responsive and don't cause overflow */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Ensure containers for images and buttons are responsive */
    .page-contact__hero-container,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__social-media-section,
    .page-contact__contact-cards,
    .page-contact__contact-form,
    .page-contact__faq-list,
    .page-contact__social-icons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}