/* style/contact.css */

/* Base Styles */
.page-contact {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--bg-color, #ffffff); /* Inherit from shared or default to white */
    font-size: 16px;
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
    line-height: 1.6;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__faq-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

.page-contact__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

.page-contact__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

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

/* Dark/Light Background Helpers */
.page-contact__dark-bg {
    background-color: #017439; /* Brand main color */
    color: #ffffff;
}
.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__hero-title {
    color: #ffffff;
}
.page-contact__dark-bg .page-contact__section-description,
.page-contact__dark-bg .page-contact__method-text,
.page-contact__dark-bg .page-contact__email,
.page-contact__dark-bg .page-contact__phone {
    color: #f0f0f0;
}

.page-contact__light-bg {
    background-color: #ffffff; /* Auxiliary color */
    color: #333333;
}
.page-contact__light-bg .page-contact__section-title {
    color: #017439;
}
.page-contact__light-bg .page-contact__section-description,
.page-contact__light-bg .page-contact__feature-text,
.page-contact__light-bg .page-contact__responsible-gaming-text p,
.page-contact__light-bg .page-contact__responsible-gaming-text li {
    color: #555555;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

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

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

/* Info Section */
.page-contact__info-section {
    padding: 80px 0;
}

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

.page-contact__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

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

.page-contact__feature-text {
    font-size: 1.05em;
}

/* Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-contact__methods-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
}

.page-contact__methods-section .page-contact__container {
    position: relative;
    z-index: 1;
}

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

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-contact__method-text,
.page-contact__email,
.page-contact__phone {
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__email,
.page-contact__phone {
    font-weight: bold;
    font-size: 1.1em;
}

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

.page-contact__faq-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
    z-index: 0;
}

.page-contact__faq-section .page-contact__container {
    position: relative;
    z-index: 1;
}

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #f0f0f0;
}

.page-contact__faq-title {
    font-size: 1.2em;
    color: #017439;
    margin: 0;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px 25px 25px;
}

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

.page-contact__faq-link {
    color: #017439;
    text-decoration: underline;
    font-weight: normal;
}
.page-contact__faq-link:hover {
    color: #005f2c;
}

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

.page-contact__responsible-gaming-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.page-contact__responsible-gaming-text {
    flex: 1;
    min-width: 300px;
}

.page-contact__responsible-gaming-text ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 30px;
}

.page-contact__responsible-gaming-text li {
    margin-bottom: 10px;
}

.page-contact__responsible-gaming-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-contact__responsible-gaming-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-contact__cta-content {
    max-width: 900px;
}

.page-contact__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-contact__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 15px;
    }
    .page-contact__hero-section {
        padding: 80px 20px;
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__hero-buttons .page-contact__btn-primary,
    .page-contact__hero-buttons .page-contact__btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-contact__info-section,
    .page-contact__methods-section,
    .page-contact__faq-section,
    .page-contact__responsible-gaming-section,
    .page-contact__cta-section {
        padding: 50px 0;
    }

    .page-contact__features-grid,
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__method-card .page-contact__btn-primary {
        max-width: 100%;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-title {
        font-size: 1.1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    .page-contact__responsible-gaming-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-contact__responsible-gaming-image-wrapper {
        order: -1;
    }

    .page-contact__cta-title {
        font-size: 2em;
    }
    .page-contact__cta-description {
        font-size: 1.1em;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__cta-buttons .page-contact__btn-primary,
    .page-contact__cta-buttons .page-contact__btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Mobile image responsiveness (mandatory) */
    .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__info-section,
    .page-contact__methods-section,
    .page-contact__faq-section,
    .page-contact__responsible-gaming-section,
    .page-contact__cta-section,
    .page-contact__methods-grid,
    .page-contact__features-grid,
    .page-contact__faq-list,
    .page-contact__responsible-gaming-content,
    .page-contact__hero-buttons,
    .page-contact__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button responsiveness (mandatory) */
    .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;
    }
    
    .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;
    }
    .page-contact__cta-buttons {
        flex-direction: column; /* Ensure vertical stacking on mobile */
    }
}