/* CSS cho trang Liên hệ */

/* Biến màu từ custom.json */
:root {
    --clup789-primary-color: #C91F17;
    --clup789-secondary-color: #E53935;
    --clup789-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --clup789-card-bg: #D32F2F;
    --clup789-background: #B71C1C;
    --clup789-text-main: #FFF5E1;
    --clup789-border: #F2B544;
    --clup789-glow: #FFCC66;
    --clup789-gold: #F4D34D;
    --clup789-deep-red: #7A0E0E;
}

.page-contact {
    background-color: var(--clup789-background); /* Sử dụng màu nền chính từ custom.json */
    color: var(--clup789-text-main); /* Đảm bảo văn bản sáng trên nền tối */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: 10px; /* Nhỏ để tránh che bởi header cố định */
    margin-bottom: 40px;
    overflow: hidden;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-contact__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.6); /* Làm tối ảnh nền để chữ dễ đọc hơn */
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 15px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--clup789-text-main);
}

.page-contact__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--clup789-gold);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 204, 102, 0.7);
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-submit,
.page-contact a[class*="button"],
.page-contact a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background: var(--clup789-button-gradient);
    color: #333333; /* Đảm bảo tương phản cao trên nền vàng */
    border: 2px solid var(--clup789-gold);
    box-shadow: 0 4px 15px rgba(255, 204, 102, 0.4);
}

.page-contact__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 204, 102, 0.6);
}

.page-contact__btn-secondary {
    background: transparent;
    color: var(--clup789-gold);
    border: 2px solid var(--clup789-gold);
    box-shadow: 0 4px 10px rgba(255, 204, 102, 0.2);
}

.page-contact__btn-secondary:hover {
    background: var(--clup789-gold);
    color: var(--clup789-deep-red);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 204, 102, 0.4);
}

/* General Section Styles */
.page-contact__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--clup789-gold);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 204, 102, 0.5);
}

.page-contact__section-description {
    font-size: 1.05rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--clup789-text-main);
}

.page-contact__dark-section {
    background-color: var(--clup789-deep-red); /* Màu đỏ đậm cho phần nền tối */
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-contact__card {
    background-color: var(--clup789-card-bg); /* Màu nền thẻ từ custom.json */
    border: 1px solid var(--clup789-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: var(--clup789-text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-contact__method-icon {
    text-align: center;
    margin-bottom: 20px;
}

.page-contact__method-icon img {
    
    
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--clup789-glow));
    display: inline-block; /* Để căn giữa */
}

.page-contact__method-title {
    font-size: 1.8rem;
    color: var(--clup789-gold);
    text-align: center;
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 25px;
}

/* Contact Form Section */
.page-contact__contact-form-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-contact__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 40px;
}

.page-contact__form-wrapper img {
    width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-contact__form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--clup789-gold);
    font-size: 1.1rem;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--clup789-border);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--clup789-text-main);
    font-size: 1rem;
    box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: var(--clup789-gold);
    box-shadow: 0 0 0 3px rgba(244, 211, 77, 0.3);
}

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__btn-submit {
    background: var(--clup789-button-gradient);
    color: #333333; /* Đảm bảo tương phản cao trên nền vàng */
    border: none;
    cursor: pointer;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 204, 102, 0.4);
}

.page-contact__btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 204, 102, 0.6);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-contact__faq-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 50px;
}

.page-contact__faq-grid img {
    width: 40%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-contact__faq-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-contact__faq-item {
    cursor: pointer;
    user-select: none;
    padding: 0;
    overflow: hidden;
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--clup789-gold);
    background-color: rgba(255, 255, 255, 0.05); /* Nền hơi sáng hơn để nổi bật */
    border-radius: 10px;
    transition: background-color 0.3s ease;
    list-style: none; /* Ẩn marker mặc định của summary */
}

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

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

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

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--clup789-text-main);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.1); /* Nền tối hơn cho câu trả lời */
    border-radius: 0 0 10px 10px;
}

.page-contact__faq-answer p {
    margin-bottom: 15px;
}

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

/* Why Choose Us Section */
.page-contact__why-choose-us-section {
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

/* Legal Links Section */
.page-contact__legal-links-section {
    padding: 60px 0;
    background-color: var(--clup789-deep-red);
}

.page-contact__legal-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.page-contact__legal-list li a {
    color: var(--clup789-gold);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-contact__legal-list li a:hover {
    color: var(--clup789-text-main);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-content {
        padding: 80px 15px;
    }

    .page-contact__form-wrapper {
        flex-direction: column;
    }

    .page-contact__form-wrapper img {
        width: 80%;
    }

    .page-contact__faq-grid {
        flex-direction: column;
    }

    .page-contact__faq-grid img {
        width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-contact__hero-section {
        padding-top: 10px; /* Vẫn giữ 10px */
    }

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

    .page-contact__main-title {
        font-size: 2.2rem;
    }

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

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* General Sections */
    .page-contact__section-title {
        font-size: 1.8rem;
    }

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

    .page-contact__dark-section,
    .page-contact__contact-form-section,
    .page-contact__faq-section,
    .page-contact__why-choose-us-section,
    .page-contact__legal-links-section {
        padding: 40px 0;
        margin-bottom: 30px;
    }

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

    /* Images & Containers (Mobile specific) */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-wrapper,
    .page-contact__faq-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Contact Methods Section */
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

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

    .page-contact__method-title {
        font-size: 1.5rem;
    }

    /* Contact Form Section */
    .page-contact__form-wrapper {
        padding: 30px 15px;
        gap: 30px;
    }

    .page-contact__form-wrapper img {
        width: 100%;
    }

    .page-contact__form-label {
        font-size: 1rem;
    }

    .page-contact__form-input,
    .page-contact__form-textarea,
    .page-contact__btn-submit {
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* FAQ Section */
    .page-contact__faq-grid {
        gap: 30px;
        margin-top: 30px;
    }

    .page-contact__faq-grid img {
        width: 100%;
    }

    .page-contact__faq-question {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .page-contact__faq-toggle {
        font-size: 1.5rem;
    }

    .page-contact__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    /* Legal Links Section */
    .page-contact__legal-list {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
    }

    .page-contact__legal-list li a {
        font-size: 0.95rem;
    }

    /* Buttons (Mobile specific) */
    .page-contact__cta-button,
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Button containers (Mobile specific) */
    .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;
        flex-direction: column;
    }
}