/* style/contact.css */

/* --- General Styles --- */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #f8f9fa; /* A very light background for the overall page */
}

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

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

.page-contact__section-title {
    font-size: 36px;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* --- Color Contrast Classes --- */
.page-contact__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

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

.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-description,
.page-contact__dark-bg .page-contact__card-text,
.page-contact__dark-bg .page-contact__link {
    color: #ffffff;
}

/* --- Buttons --- */
.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-outline-white,
.page-contact__btn-login,
.page-contact__btn-register {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-contact__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-contact__btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-login {
    background-color: #EA7C07; /* Login specific color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-contact__btn-login:hover {
    background-color: #c96a06;
    border-color: #c96a06;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-register {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-contact__btn-register:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Links --- */
.page-contact__link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__link:hover {
    text-decoration: underline;
    color: #1e87c0;
}

.page-contact__link--white {
    color: #ffffff;
}

.page-contact__link--white:hover {
    text-decoration: underline;
    color: #f0f0f0;
}

/* --- 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); /* Ensures content is not hidden by fixed header */
    overflow: hidden; /* For image positioning */
}

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

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
}

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

.page-contact__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ffffff;
}

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

.page-contact__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.3; /* Slightly dim the background image for text readability */
    filter: none; /* Ensure no CSS filters are applied */
}

/* --- Contact Channels Section --- */
.page-contact__contact-channels {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-contact__channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-contact__channel-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.page-contact__channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.page-contact__card-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

.page-contact__email-address {
    font-weight: bold;
    margin-top: 15px;
    font-size: 16px;
}

.page-contact__email-address a {
    color: #26A9E0;
    text-decoration: none;
}

.page-contact__email-address a:hover {
    text-decoration: underline;
}

.page-contact__social-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.page-contact__social-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.page-contact__social-list li img {
    
    
    margin-right: 10px;
    border-radius: 4px;
    filter: none; /* Ensure no CSS filters are applied */
}

.page-contact__social-list li a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.page-contact__social-list li a:hover {
    text-decoration: underline;
}

.page-contact__card-note {
    font-size: 14px;
    color: #888888;
    margin-top: 15px;
}

.page-contact__image-placeholder {
    margin-top: 60px;
}

.page-contact__image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no CSS filters are applied */
}

/* --- Contact Form Section --- */
.page-contact__contact-form-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-contact__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.page-contact__form-content {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-contact__form-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no CSS filters are applied */
}

.page-contact__form {
    margin-top: 30px;
}

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

.page-contact__form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333333;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
    outline: none;
}

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

.page-contact__form-submit {
    width: auto;
    padding: 15px 40px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background-color: #26A9E0;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__form-submit:hover {
    background-color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- FAQ Section --- */
.page-contact__faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

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

/* FAQ默认状态 - 答案隐藏 */
.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;
    background-color: #f9f9f9;
    color: #555555;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.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 mọi nội dung */
    padding: 20px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 10px 10px;
}

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

.page-contact__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

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

/* Question title style */
.page-contact__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__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0;
    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__faq-item.active .page-contact__faq-toggle {
    color: #1e87c0;
    transform: rotate(45deg); /* Change to X or rotate */
}

.page-contact__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.page-contact__image-placeholder.faq-image {
    margin-top: 60px;
}

/* --- Responsible Gambling Section --- */
.page-contact__responsible-gambling {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-contact__responsible-gambling .page-contact__section-title {
    color: #ffffff;
}

.page-contact__responsible-gambling .page-contact__section-description {
    color: #e0e0e0;
}

/* --- Final CTA Section --- */
.page-contact__cta-final {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-contact__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}


/* --- Image Global Styles --- */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no CSS filters are applied globally */
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__hero-title {
        font-size: 32px;
    }

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

    .page-contact__section-title {
        font-size: 28px;
    }

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

    .page-contact__channels-grid,
    .page-contact__form-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-contact__channel-card {
        padding: 20px;
    }

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

    .page-contact__card-text {
        font-size: 15px;
    }

    .page-contact__form-content {
        padding: 20px;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        width: calc(100% - 20px); /* Adjust for padding */
        font-size: 15px;
    }

    .page-contact__form-submit {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-contact__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-contact__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-contact__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }

    .page-contact__button-group {
        flex-direction: column;
        gap: 15px;
    }

    /* All images must be responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Buttons responsive */
    .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;
    }
    
    .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;
    }
}