/* style/contact.css */

/* Base styles for the page content */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #FFF5E1); /* Default text color from custom palette */
    background-color: var(--page-bg-color, #B71C1C); /* Default page background */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: var(--primary-color, #C91F17); /* Primary brand color for hero background */
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
}

.page-contact__hero-image-container {
    width: 100%;
    max-height: 675px; /* Limit height for large images */
    overflow: hidden;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no CSS filter changes image color */
}

.page-contact__hero-content {
    padding: 20px;
    max-width: 900px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-contact__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: #FFF5E1; /* Main text color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__description {
    font-size: 1.1rem;
    color: #FFF5E1; /* Main text color */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Limit max width for buttons group */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red for contrast on gold */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-contact__btn-secondary {
    background: #D32F2F; /* Card BG for secondary button */
    color: #FFF5E1; /* Main text color */
    border: 2px solid #F2B544; /* Border color */
}

.page-contact__btn-secondary:hover {
    background: #C91F17; /* Primary color on hover */
    border-color: #FFCC66; /* Glow color on hover */
}

.page-contact__btn-tertiary {
    background: transparent;
    color: #F4D34D; /* Gold color */
    border: 2px solid #F4D34D;
}

.page-contact__btn-tertiary:hover {
    background: #F4D34D;
    color: #7A0E0E; /* Deep Red for contrast */
}

/* General Section Styling */
.page-contact__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #FFF5E1; /* Main text color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-contact__section-description {
    font-size: 1.1rem;
    color: #FFF5E1; /* Main text color */
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Channels Section */
.page-contact__contact-channels-section {
    padding: 60px 0;
    background-color: var(--page-bg-color, #B71C1C);
}

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

.page-contact__channel-card {
    background-color: var(--card-bg-color, #D32F2F); /* Card BG color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFF5E1; /* Text Main color */
    border: 1px solid var(--border-color, #F2B544); /* Border color */
}

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

.page-contact__channel-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    filter: none; /* Ensure no CSS filter changes image color */
}

.page-contact__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #F4D34D; /* Gold color for titles */
    margin-bottom: 15px;
}

.page-contact__card-text {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Push link to bottom */
}

.page-contact__email-list,
.page-contact__phone-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.page-contact__email-list li,
.page-contact__phone-list li {
    margin-bottom: 8px;
    font-size: 1rem;
}

.page-contact__email-list strong,
.page-contact__phone-list strong {
    color: #F4D34D; /* Gold for emphasis */
}

.page-contact__email-link,
.page-contact__phone-link,
.page-contact__social-link,
.page-contact__link {
    color: #FFCC66; /* Glow color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover,
.page-contact__social-link:hover,
.page-contact__link:hover {
    color: #FFF5E1; /* Text Main on hover */
    text-decoration: underline;
}

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

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: var(--primary-color, #C91F17); /* Primary color for FAQ background */
}

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

.page-contact__faq-item {
    background-color: var(--card-bg-color, #D32F2F);
    border: 1px solid var(--border-color, #F2B544);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF5E1; /* Text Main color */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F4D34D; /* Gold color for questions */
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1); /* Slightly darker background for summary */
    list-style: none; /* Hide default marker for details */
}

.page-contact__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-contact__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #FFCC66; /* Glow color for toggle */
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-contact__faq-answer {
    padding: 0 25px 18px;
    font-size: 1rem;
    color: #FFF5E1; /* Text Main color */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    transition: max-height 0.4s ease-in;
}

.page-contact__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Responsible Gaming Section */
.page-contact__responsible-gaming-section {
    padding: 60px 0;
    background-color: var(--page-bg-color, #B71C1C);
}

.page-contact__responsible-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    color: #FFF5E1; /* Text Main color */
}

.page-contact__responsible-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    filter: none; /* Ensure no CSS filter changes image color */
}

.page-contact__responsible-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Feedback Form Section */
.page-contact__feedback-form-section {
    padding: 60px 0;
    background-color: var(--primary-color, #C91F17);
}

.page-contact__feedback-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--card-bg-color, #D32F2F);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color, #F2B544);
}

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

.page-contact__form-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F4D34D; /* Gold for labels */
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color, #F2B544);
    border-radius: 8px;
    background-color: #7A0E0E; /* Deep Red for input background */
    color: #FFF5E1; /* Text Main color */
    font-size: 1rem;
    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: rgba(255, 245, 225, 0.6); /* Lighter placeholder text */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFCC66; /* Glow color on focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 204, 102, 0.3);
}

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

.page-contact__form-submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #7A0E0E; /* Deep Red for contrast */
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-contact__form-submit-btn:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

/* Why Us Section */
.page-contact__why-us-section {
    padding: 60px 0;
    background-color: var(--page-bg-color, #B71C1C);
}

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

.page-contact__why-us-item {
    background-color: var(--card-bg-color, #D32F2F);
    border: 1px solid var(--border-color, #F2B544);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #FFF5E1; /* Text Main color */
}

.page-contact__why-us-heading {
    font-size: 1.4rem;
    font-weight: 600;
    color: #F4D34D; /* Gold color */
    margin-bottom: 15px;
}

.page-contact__why-us-text {
    font-size: 1rem;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-contact__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

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

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 350px;
    }

    .page-contact__channel-card,
    .page-contact__why-us-item {
        padding: 25px;
    }

    .page-contact__responsible-content {
        flex-direction: column;
        text-align: center;
    }

    .page-contact__responsible-image {
        max-width: 100%;
    }
}


/* Mobile (max-width: 768px) - All required media queries must be here */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 30px;
    }

    .page-contact__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-contact__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* 通用图片与容器 */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-contact__container,
    .page-contact__section,
    .page-contact__channel-card,
    .page-contact__why-us-item,
    .page-contact__feedback-form,
    .page-contact__cta-buttons,
    .page-contact__channels-grid,
    .page-contact__why-us-grid,
    .page-contact__responsible-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important; /* Ensure buttons container takes full width */
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__btn-tertiary,
    .page-contact__form-submit-btn,
    .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: 12px 15px; /* Adjust padding for smaller screens */
    }

    /* 其他内容模块 */
    .page-contact__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 15px;
    }

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

    .page-contact__channel-card,
    .page-contact__why-us-item {
        padding: 20px;
    }

    .page-contact__card-title {
        font-size: 1.3rem;
    }

    .page-contact__card-text {
        font-size: 0.9rem;
    }

    .page-contact__email-list li,
    .page-contact__phone-list li {
        font-size: 0.9rem;
    }

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

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

    .page-contact__responsible-content {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .page-contact__feedback-form {
        padding: 30px 20px;
    }

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

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .page-contact__form-submit-btn {
        font-size: 1.1rem;
        padding: 12px;
    }
}