/* style/contact.css */
.page-contact {
    background-color: #08162B; /* Deep Navy from custom colors */
    color: #F3F8FF; /* Text Main from custom colors */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden;
}

.page-contact__hero-image-wrapper {
    margin-bottom: 20px;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

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

.page-contact__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #F2C14E; /* Gold from custom colors */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.1rem;
    color: #AFC4E8; /* Text Secondary from custom colors */
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Section General */
.page-contact__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #F2C14E; /* Gold from custom colors */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1.05rem;
    color: #AFC4E8; /* Text Secondary from custom colors */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Contact Methods Section */
.page-contact__contact-methods-section {
    padding: 60px 0;
    background-color: #08162B;
}

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

.page-contact__contact-card {
    background-color: #10233F; /* Card B G from custom colors */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #244D84; /* Border from custom colors */
}

.page-contact__card-title {
    font-size: 1.8rem;
    color: #F3F8FF; /* Text Main from custom colors */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card-text {
    font-size: 1rem;
    color: #AFC4E8; /* Text Secondary from custom colors */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__card-note {
    font-size: 0.9rem;
    color: #AFC4E8;
    margin-top: 15px;
}

.page-contact__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

/* Contact Form */
.page-contact__contact-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.page-contact__form-group {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #F3F8FF; /* Text Main */
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #244D84; /* Border from custom colors */
    border-radius: 8px;
    background-color: #08162B; /* Deep Navy */
    color: #F3F8FF; /* Text Main */
    font-size: 1rem;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #AFC4E8; /* Text Secondary */
    opacity: 0.7;
}

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

.page-contact__submit-button {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__submit-button:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
}

/* Why Us Section */
.page-contact__why-us-section {
    padding: 60px 0;
    background-color: #08162B;
}

.page-contact__why-us-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__list-item {
    background-color: #10233F;
    border: 1px solid #244D84;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #F3F8FF;
}

.page-contact__list-item strong {
    color: #F2C14E;
}

.page-contact__why-us-conclusion {
    font-size: 1.1rem;
    color: #AFC4E8;
    text-align: center;
    max-width: 800px;
    margin: 40px auto 0;
}

/* Buttons */
.page-contact__btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    margin-bottom: 15px;
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    background-color: transparent;
    color: #F2C14E; /* Gold */
    border: 2px solid #F2C14E; /* Gold border */
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-secondary:hover {
    background-color: #F2C14E; /* Gold background on hover */
    color: #08162B; /* Deep Navy text on hover */
    transform: translateY(-2px);
}

.page-contact__btn-link {
    color: #4FA8FF; /* Glow color for links */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.2s ease;
}

.page-contact__btn-link:hover {
    color: #2B73F6;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #08162B;
}

.page-contact__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__faq-item {
    background-color: #10233F; /* Card B G */
    border: 1px solid #244D84; /* Border */
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    color: #F3F8FF; /* Text Main */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #F3F8FF; /* Text Main */
    background-color: #10233F; /* Card B G */
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #1B3357; /* Slightly lighter navy for hover */
}

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #1B3357; /* Divider color when open */
}

.page-contact__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: #F2C14E; /* Gold */
    transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #AFC4E8; /* Text Secondary */
}

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

/* Responsible Gaming Section */
.page-contact__responsible-gaming-section {
    padding: 60px 0;
    background-color: #08162B;
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #113B7A; /* Main color */
    text-align: center;
    border-top: 5px solid #F2C14E; /* Gold border for emphasis */
}

.page-contact__cta-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    color: #F3F8FF; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__cta-description {
    font-size: 1.1rem;
    color: #AFC4E8; /* Text Secondary */
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__container {
        padding: 15px;
    }

    .page-contact__contact-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__hero-title,
    .page-contact__section-title,
    .page-contact__cta-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-contact__list-item {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-contact__hero-section {
        padding-top: 10px !important;
    }

    .page-contact__hero-image,
    .page-contact__card-image,
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-contact__hero-content,
    .page-contact__contact-methods-section,
    .page-contact__why-us-section,
    .page-contact__faq-section,
    .page-contact__responsible-gaming-section,
    .page-contact__cta-section,
    .page-contact__container,
    .page-contact__contact-card,
    .page-contact__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-contact__contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-contact__section-title {
        font-size: 1.8rem;
    }

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

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

    .page-contact__faq-answer {
        padding: 0 20px 15px;
    }

    .page-contact__submit-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;
        margin-bottom: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-contact__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Placeholder for the required mobile rules (even if not present in HTML) */
    /* 1. 顶区轮播 (Hero Carousel) */
    .page-contact__hero-carousel-section { 
        padding-top: 10px !important;
    }
    .page-contact__hero-slider {
        height: auto !important;
    }
    .page-contact__hero-slide {
        width: 100% !important;
    }
    /* 2. 操作指引外框 + 五张 `team` 竖型卡 (Guide Box + 5 Team Cards) */
    .page-contact__guide-box { 
        padding: 10px !important;
    }
    .page-contact__guide-grid { 
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 10px !important;
    }
    .page-contact__guide-card { 
        padding-top: 0 !important;
    }
    .page-contact__guide-card--pos-1, .page-contact__guide-card--pos-2 { 
        grid-column: span 3 !important;
    }
    .page-contact__guide-card--pos-3, .page-contact__guide-card--pos-4, .page-contact__guide-card--pos-5 { 
        grid-column: span 2 !important;
    }
    .page-contact__guide-card img {
        aspect-ratio: 250/350 !important;
        object-fit: contain !important;
        width: 100% !important;
        height: auto !important;
    }
    /* 3. `home_content` 外框 (Home Content Box) */
    .page-contact__home-content-box { 
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        padding: 10px !important;
    }
    .page-contact__home-content-inner { 
        height: auto !important;
        overflow: visible !important;
    }
    /* 4. 博客卡片区 (Blog Card Section) */
    .page-contact__blog-section { 
        padding: 20px 15px !important;
    }
    .page-contact__blog-grid { 
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}