/* style/contact.css */

/* Variables for consistent styling */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-dark: #0a0a0a; /* From body background info */
    --button-register: #C30808;
    --button-login: #C30808;
    --font-register-login: #FFFF00;
}

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Dark body background requires light text */
    background-color: var(--background-dark);
}

.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: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-intro {
    font-size: 1.1em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background-size: cover;
    background-position: center;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

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

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: var(--secondary-color);
}

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.page-contact__hero-cta {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

/* Buttons */
.page-contact__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-contact__btn-primary:hover {
    background-color: #005f2c; /* Darken primary color */
    border-color: #005f2c;
}

.page-contact__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: var(--primary-color);
}

/* Channels Section */
.page-contact__channels-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Brand color as background */
    color: var(--text-light); /* Light text for contrast */
}

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

.page-contact__channel-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.page-contact__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: bold;
}

.page-contact__card-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--secondary-color);
}

.page-contact__email-address, .page-contact__phone-number {
    margin-top: 15px;
    font-weight: bold;
    color: var(--font-register-login); /* Use specific color for emphasis */
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

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

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--secondary-color);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    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 {
    border-color: var(--primary-color);
    outline: none;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-contact__faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__faq-heading {
    font-size: 1.2em;
    margin: 0;
    color: var(--secondary-color);
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--font-register-login);
    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;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 15px 25px;
}

.page-contact__faq-answer p {
    margin: 0;
    color: var(--secondary-color);
}

/* Responsible Gaming Section */
.page-contact__responsible-gaming-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

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

.page-contact__responsible-gaming-text {
    flex: 1;
}

.page-contact__responsible-gaming-text .page-contact__section-title {
    text-align: left;
    margin-bottom: 20px;
}

.page-contact__responsible-gaming-text .page-contact__section-intro {
    text-align: left;
    margin-bottom: 30px;
    max-width: none;
}

.page-contact__responsible-gaming-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.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;
    display: block;
    margin: 0 auto;
}

/* General button styling */
.page-contact a[class*="btn"], .page-contact button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap; /* Prevent text wrapping by default */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__hero-description {
        font-size: 1.2em;
    }
    .page-contact__responsible-gaming-content {
        flex-direction: column;
        text-align: center;
    }
    .page-contact__responsible-gaming-text .page-contact__section-title,
    .page-contact__responsible-gaming-text .page-contact__section-intro {
        text-align: center;
    }
    .page-contact__responsible-gaming-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-contact__hero-section {
        min-height: 400px;
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__section-intro {
        font-size: 1em;
    }
    .page-contact__channels-section, .page-contact__form-section, .page-contact__faq-section, .page-contact__responsible-gaming-section {
        padding: 50px 0;
    }
    .page-contact__channels-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px;
    }
    .page-contact__responsible-gaming-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* --- Mobile Responsive Images, Videos, Buttons --- */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper,
    .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;
        overflow: hidden !important; /* Ensure no overflow for containers */
    }
    .page-contact a[class*="btn"],
    .page-contact button[type="submit"] {
        max-width: 100% !important;
        width: 100% !important; /* Full width for buttons on mobile */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-section {
      padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__hero-description {
        font-size: 0.9em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__card-title {
        font-size: 1.5em;
    }
    .page-contact__faq-heading {
        font-size: 1.1em;
    }
}