:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
    --light-text-on-dark: #F3F8FF; /* Text Main */
    --dark-text-on-light: #333333; /* Default dark text */
}

.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--light-text-on-dark); /* Default text color for the page, assuming body is dark */
    background-color: var(--deep-navy); /* Fallback, but body should be handled by shared.css */
    padding-bottom: 50px; /* Add some bottom padding */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    padding-bottom: 50px;
    background-color: var(--primary-color);
}

.page-contact__hero-image {
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    margin-top: -150px; /* Overlap slightly with image for visual effect */
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__main-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color); /* Gold color for main title */
}

.page-contact__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-main);
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-contact__btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: rgba(29, 95, 209, 0.2); /* Slight background on hover */
}

/* Section Common Styles */
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__about-bl88,
.page-contact__responsible-gambling {
    padding: 80px 0;
}

.page-contact__dark-section {
    background-color: var(--deep-navy);
    color: var(--light-text-on-dark);
}

.page-contact__light-bg {
    background-color: #F3F8FF; /* Light background for contrast */
    color: var(--dark-text-on-light);
}

.page-contact__text-dark {
    color: var(--dark-text-on-light);
}

.page-contact__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--gold-color); /* Gold color for section titles */
}

.page-contact__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-secondary);
}

/* Contact Methods Grid */
.page-contact__contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-contact__method-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-contact__method-icon {
    width: 200px; /* Min size 200x200px */
    height: 150px; /* Adjust height to maintain aspect ratio for content images */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-contact__method-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-contact__method-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    flex-grow: 1; /* Allow text to grow */
}

.page-contact__btn-small {
    padding: 10px 20px;
    font-size: 16px;
}

.page-contact__phone-number {
    font-size: 18px;
    font-weight: 500;
    margin-top: 20px;
    color: var(--text-main);
}

.page-contact__strong-text {
    color: var(--gold-color);
}

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

.page-contact__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    background-color: var(--secondary-color);
    color: var(--text-main);
    transition: background-color 0.3s ease;
}

.page-contact__social-btn:hover {
    background-color: var(--primary-color);
}

/* Contact Form */
.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff; /* White background for the form */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

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

.page-contact__form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text-on-light);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    background-color: #f9f9f9;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.2);
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__form-submit {
    width: auto;
    min-width: 180px;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    border: none;
}

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

details.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-contact__faq-item summary.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
    display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
    background: rgba(var(--primary-color), 0.5); /* Lighter hover for dark background */
}
.page-contact__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}
.page-contact__faq-toggle {
    font-size: 28px; /* Larger for better visibility */
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
    background: rgba(var(--primary-color), 0.3); /* Slightly lighter background for answer */
    border-radius: 0 0 5px 5px;
    color: var(--text-secondary);
    font-size: 16px;
}
.page-contact__faq-answer p {
    margin-bottom: 10px;
}
.page-contact__faq-answer a {
    color: var(--glow-color); /* Highlight links in FAQ */
    text-decoration: underline;
}
.page-contact__faq-answer a:hover {
    color: var(--gold-color);
}

/* About bl88 Section */
.page-contact__about-bl88 {
    padding: 80px 0;
}

.page-contact__about-bl88 .page-contact__section-description {
    color: var(--dark-text-on-light);
}

.page-contact__content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.page-contact__text-block p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--dark-text-on-light);
}

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

/* Responsible Gambling Section */
.page-contact__responsible-gambling {
    padding: 80px 0;
}

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

.page-contact__responsible-gambling-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__responsible-gambling-icon {
    width: 200px; /* Min size 200x200px */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-contact__item-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-contact__item-text {
    font-size: 16px;
    color: var(--text-secondary);
    flex-grow: 1;
}

.page-contact__responsible-gambling-footer {
    text-align: center;
    margin-top: 50px;
    font-size: 16px;
    color: var(--text-secondary);
}

.page-contact__responsible-gambling-footer a {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-contact__responsible-gambling-footer a:hover {
    color: var(--gold-color);
}

/* --- Responsive Styles --- */
/* General image and button responsiveness */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact a[class*="button"],
.page-contact a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-buttons,
.page-contact__button-group,
.page-contact__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .page-contact__hero-image {
        height: 500px;
    }
    .page-contact__hero-content {
        margin-top: -120px;
        padding: 30px;
        max-width: 700px;
    }
    .page-contact__main-title {
        font-size: 40px;
    }
    .page-contact__section-title {
        font-size: 32px;
    }
    .page-contact__content-grid {
        grid-template-columns: 1fr; /* Stack on smaller desktops/tablets */
    }
    .page-contact__image-block {
        order: -1; /* Image above text on smaller screens */
    }
}


@media (max-width: 768px) {
    /* General Mobile Styles */
    .page-contact__container {
        padding: 0 15px;
    }

    /* Images */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__about-bl88,
    .page-contact__responsible-gambling {
        padding: 40px 0;
    }

    /* Hero Section */
    .page-contact__hero-image {
        height: 300px; /* Smaller height for mobile */
        object-fit: contain; /* Use contain for mobile hero image */
        padding-top: 20px; /* Adjusted padding for mobile */
    }
    .page-contact__hero-content {
        margin-top: -80px;
        padding: 20px;
        max-width: 95%;
    }
    .page-contact__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-contact__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }
    .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;
    }

    /* Section Titles & Descriptions */
    .page-contact__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Contact Methods */
    .page-contact__contact-methods-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }
    .page-contact__method-card {
        padding: 20px;
    }
    .page-contact__method-icon {
        width: 150px; /* Smaller icons on mobile */
        height: 100px;
    }
    .page-contact__method-title {
        font-size: 20px;
    }
    .page-contact__method-text {
        font-size: 15px;
    }
    .page-contact__phone-number {
        font-size: 16px;
    }
    .page-contact__social-links {
        flex-direction: column;
        gap: 10px;
    }
    .page-contact__social-btn {
        width: 100%;
    }

    /* Contact Form */
    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__form-label {
        font-size: 15px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
    .page-contact__form-submit {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* FAQ Section */
    details.page-contact__faq-item summary.page-contact__faq-question {
        padding: 15px;
    }
    .page-contact__faq-qtext {
        font-size: 16px;
    }
    .page-contact__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-contact__faq-item .page-contact__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    /* About bl88 Section */
    .page-contact__content-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__text-block p {
        font-size: 15px;
    }
    .page-contact__image-block {
        order: -1; /* Image above text on mobile */
    }

    /* Responsible Gambling */
    .page-contact__responsible-gambling-content {
        grid-template-columns: 1fr;
    }
    .page-contact__item-title {
        font-size: 20px;
    }
    .page-contact__item-text {
        font-size: 15px;
    }
    .page-contact__responsible-gambling-footer {
        font-size: 15px;
    }
}