/* style/contact.css */

/* Base Styles for .page-contact */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    background-color: #017439; /* Brand primary color for hero */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-contact__btn-primary {
    background-color: #C30808; /* Custom color for primary action (Login/Register) */
    color: #FFFF00; /* Custom font color for primary action */
    border: 2px solid #C30808;
}

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

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

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

/* Section common styles */
.page-contact__methods-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__responsible-gambling-section {
    padding: 80px 0;
    text-align: center;
}

.page-contact__methods-section,
.page-contact__faq-section {
    background-color: #1a1a1a; /* Body background from shared.css */
    color: #ffffff; /* Light text for dark background */
}

.page-contact__form-section,
.page-contact__responsible-gambling-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-contact__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 50px;
    color: #f0f0f0;
}

/* Contact Methods Section */
.page-contact__method-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); /* Slightly transparent white for cards on dark background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__method-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 200px;
    min-height: 200px;
}

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

.page-contact__method-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-contact__email-address,
.page-contact__phone-number {
    font-size: 1.1em;
    font-weight: bold;
    color: #FFFF00; /* Custom font color for important info */
    margin-bottom: 20px;
}

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

.page-contact__social-link {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-contact__social-link:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}


/* Contact Form Section */
.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px 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: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #005f2e;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFFF00; /* Highlight on focus */
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-contact__form-submit-btn {
    width: auto;
    padding: 15px 40px;
    margin-top: 20px;
}

/* FAQ Section */
.page-contact__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
    text-align: left;
}

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

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

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00; /* Custom font color for toggle icon */
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.02);
    color: #e0e0e0;
}

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

.page-contact__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Responsible Gambling Section */
.page-contact__responsible-gambling-section {
    padding: 60px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-contact__link {
    color: #FFFF00; /* Custom font color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-contact__link:hover {
    color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__method-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Ensure content padding and header offset on mobile */
    .page-contact__hero-section,
    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__responsible-gambling-section {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header on mobile */
        padding-bottom: 60px;
    }

    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__social-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-contact__method-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__method-card {
        padding: 25px;
    }

    .page-contact__method-icon {
        width: 150px; /* Adjust display size for mobile, but ensure generated size is 200x200 */
        height: 150px;
        min-width: 200px !important; /* Still ensure min 200px for generation, but display smaller if needed */
        min-height: 200px !important;
    }

    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }

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

    /* Image responsive handling */
    .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__responsible-gambling-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}