/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Inherited from body, ensuring consistency */
    padding-top: var(--header-offset, 120px); /* Apply header offset to main content */
}

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

.page-contact__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #ffffff; /* Auxiliary color */
    color: #333333;
}

.page-contact__hero-section {
    text-align: center;
    padding: 80px 0;
    background-image: url('[GALLERY:hero_bg:1920x1080:1win casino,contact us,customer support,vietnam,online gambling,green background]');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.page-contact__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Bright yellow for emphasis */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background-color: #C30808; /* Register/Login red */
    color: #FFFF00; /* Register/Login yellow text */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background-color: #e01e1e;
    border-color: #e01e1e;
}

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

.page-contact__btn-secondary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    color: #333333;
}

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

.page-contact__method-card {
    background-color: #f0f0f0;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-contact__method-icon {
    width: 100%;
    max-width: 250px; /* Max display width, but source image is 600x400 */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__method-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439;
}

.page-contact__method-description {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-contact__email-address,
.page-contact__phone-number {
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    margin-top: 15px;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    color: #ffffff;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1em;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1em;
    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: #FFFF00;
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.3);
}

.page-contact__contact-form button[type="submit"] {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
    margin-top: 20px;
}

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

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

.page-contact__faq-item {
    background-color: #f0f0f0;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-contact__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #e8e8e8;
    transition: background-color 0.3s ease;
    color: #017439;
}

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

.page-contact__faq-item summary:hover {
    background-color: #dfdfdf;
}

.page-contact__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1;
    color: #017439;
}

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 1.1em;
    border-top: 1px solid #ddd;
    background-color: #ffffff;
    color: #333333;
}

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

.page-contact__text-link {
    color: #017439;
    text-decoration: underline;
}

.page-contact__text-link:hover {
    color: #005a2d;
}

/* Social Media Section */
.page-contact__social-media-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-contact__social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.page-contact__social-link img {
    width: 200px; /* Enforcing min 200x200 display size */
    height: 200px; /* Enforcing min 200x200 display size */
    margin-bottom: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-contact__social-link:hover {
    color: #FFFF00;
}

.page-contact__social-link:hover img {
    transform: translateY(-5px) scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__hero-description,
    .page-contact__section-intro {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-contact {
        padding-top: var(--header-offset, 120px) !important; /* Ensure padding for mobile */
    }
    .page-contact__hero-section {
        padding: 60px 0;
    }
    .page-contact__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-contact__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__contact-form {
        padding: 30px;
    }
    .page-contact__form-label {
        font-size: 1em;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    .page-contact__faq-item summary {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-contact__faq-answer {
        font-size: 1em;
        padding: 18px 20px;
    }
    .page-contact__social-links {
        gap: 20px;
    }
    .page-contact__social-link img {
         /* Adjusted for better mobile display, but still large */
         /* Adjusted for better mobile display, but still large */
    }

    /* Ensure images and containers are responsive and don't overflow */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__social-media-section,
    .page-contact__contact-form,
    .page-contact__methods-grid,
    .page-contact__social-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__section-title {
        font-size: 1.6em;
    }
    .page-contact__methods-grid {
        gap: 20px;
    }
    .page-contact__social-links {
        gap: 15px;
    }
    .page-contact__social-link {
        font-size: 0.9em;
    }
}