/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default background for light sections */
}

.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;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Use custom color for register/login type actions */
    color: #FFFF00; /* Custom font color for register/login type actions */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
}

.page-contact__btn-primary:hover {
    background-color: #E01A1A;
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    display: inline-block;
    background-color: #FFFFFF;
    color: #017439;
    padding: 15px 30px;
    border: 2px solid #017439;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
}

.page-contact__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.page-contact__link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__link:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Adjusted padding-top to use var(--header-offset) */
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.page-contact__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-contact__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* filter: brightness(0.6); -- Removed as per instruction to not use filter on images */
}

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

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #F0F0F0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-contact__hero-section .page-contact__btn-primary {
    background-color: #C30808; /* Use custom color for register/login type actions */
    color: #FFFF00; /* Custom font color for register/login type actions */
}

.page-contact__hero-section .page-contact__btn-primary:hover {
    background-color: #E01A1A;
}

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

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

.page-contact__card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-contact__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-contact__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-contact__social-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.page-contact__social-link {
    display: inline-block;
    font-size: 1.1em;
    color: #017439;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #017439;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-contact__social-link:hover {
    background-color: #017439;
    color: #FFFFFF;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #017439;
    color: #FFFFFF;
}

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__section-description {
    color: #FFFFFF;
}

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 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-title {
    font-size: 1.2em;
    color: #FFFFFF;
    margin: 0;
    font-weight: bold;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00; /* Custom color for toggle icon */
    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;
    color: #F0F0F0;
}

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

.page-contact__faq-answer p {
    margin: 0;
    font-size: 1em;
}

.page-contact__faq-image {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__cta-group {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-contact__responsible-gaming-image {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Feedback Section */
.page-contact__feedback-section {
    padding: 80px 0;
    background-color: #017439;
    color: #FFFFFF;
    text-align: center;
}

.page-contact__feedback-section .page-contact__section-title,
.page-contact__feedback-section .page-contact__section-description {
    color: #FFFFFF;
}

.page-contact__feedback-form {
    max-width: 700px;
    margin: 40px auto 0;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #F0F0F0;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    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.7);
}

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

.page-contact__feedback-form .page-contact__btn-primary {
    width: auto;
    margin-top: 20px;
    float: right;
}

/* CTA Register Section */
.page-contact__cta-register-section {
    padding: 80px 0;
    text-align: center;
    background-color: #FFFFFF;
    color: #333333;
}

.page-contact__cta-register-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__cta-register-section .page-contact__btn-primary {
    margin-top: 30px;
}

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

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
        padding-bottom: 40px;
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.9em;
    }
    .page-contact__grid {
        grid-template-columns: 1fr;
    }
    .page-contact__card {
        padding: 20px;
    }
    .page-contact__card-image {
        height: 180px;
    }
    .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: 15px 20px;
    }
    .page-contact__feedback-form {
        padding: 25px;
    }
    .page-contact__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of container */
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Mobile video responsiveness - no video on this page */

    /* Mobile button responsiveness */
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .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 {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* Ensure content containers don't overflow */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__feedback-form,
    .page-contact__faq-list,
    .page-contact__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    /* Specific override for hero section container to avoid double padding */
    .page-contact__hero-section .page-contact__container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__hero-description {
        font-size: 0.9em;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__card-title {
        font-size: 1.3em;
    }
    .page-contact__faq-title {
        font-size: 1em;
    }
    .page-contact__feedback-form {
        padding: 20px;
    }
}