/* style/responsible-gaming-self-assessment.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #28a745;
    --dark-text: #333333;
    --light-text: #ffffff;
    --light-bg-1: #f8f9fa;
    --light-bg-2: #e9ecef;
    --border-color: #dee2e6;
}

.page-responsible-gaming-self-assessment {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--light-text); /* Assuming body background is dark from shared.css */
    background-color: var(--dark-bg-1); /* Placeholder for actual dark background */
}

.page-responsible-gaming-self-assessment__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Fixed navigation bar spacing */
.page-responsible-gaming-self-assessment__assessment-section {
    padding-top: 120px; /* Desktop: Adjust based on actual fixed header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3); /* Darker blue gradient for contrast */
    color: var(--light-text);
}

.page-responsible-gaming-self-assessment__main-title {
    font-size: 3em;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-responsible-gaming-self-assessment__introduction-text {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gaming-self-assessment__assessment-card {
    background: var(--light-bg-1); /* Light background for card */
    color: var(--dark-text); /* Dark text on light background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

.page-responsible-gaming-self-assessment__card-title {
    font-size: 2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-responsible-gaming-self-assessment__card-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
}

.page-responsible-gaming-self-assessment__assessment-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-responsible-gaming-self-assessment__form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
}

.page-responsible-gaming-self-assessment__form-group:last-of-type {
    border-bottom: none;
}

.page-responsible-gaming-self-assessment__form-group label {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-text);
}

.page-responsible-gaming-self-assessment__radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.page-responsible-gaming-self-assessment__radio-group input[type="radio"] {
    margin-right: 5px;
    accent-color: var(--primary-color);
}

.page-responsible-gaming-self-assessment__radio-group label {
    font-weight: normal;
    cursor: pointer;
    color: var(--dark-text);
}

.page-responsible-gaming-self-assessment__submit-button {
    display: block;
    width: 100%;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 30px;
}

.page-responsible-gaming-self-assessment__submit-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-responsible-gaming-self-assessment__assessment-results {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

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

.page-responsible-gaming-self-assessment__result-text {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-responsible-gaming-self-assessment__advice-text {
    font-size: 1em;
    margin-bottom: 25px;
}

.page-responsible-gaming-self-assessment__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming-self-assessment__cta-button:hover {
    background-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Principles Section */
.page-responsible-gaming-self-assessment__principles-section {
    background-color: var(--light-bg-2); /* Lighter background for this section */
    color: var(--dark-text);
    padding: 60px 0;
}

.page-responsible-gaming-self-assessment__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-responsible-gaming-self-assessment__principle-item {
    background: var(--light-bg-1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming-self-assessment__principle-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-responsible-gaming-self-assessment__principle-icon {
    width: 150px; /* Minimum 200px, but for icons, this is illustrative. Will be replaced by actual image */
    height: auto;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gaming-self-assessment__principle-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-responsible-gaming-self-assessment__principle-description {
    font-size: 1em;
    color: var(--dark-text);
}

.page-responsible-gaming-self-assessment__conclusion-text {
    font-size: 1.1em;
    text-align: center;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark-text);
}

/* Resources Section */
.page-responsible-gaming-self-assessment__resources-section {
    background-color: var(--dark-bg-1); /* Dark background */
    color: var(--light-text);
    padding: 60px 0;
}

.page-responsible-gaming-self-assessment__resources-section .page-responsible-gaming-self-assessment__section-title {
    color: var(--light-text);
}

.page-responsible-gaming-self-assessment__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gaming-self-assessment__resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-responsible-gaming-self-assessment__resource-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--light-text);
}

.page-responsible-gaming-self-assessment__resource-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-responsible-gaming-self-assessment__resource-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-responsible-gaming-self-assessment__resource-text {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-responsible-gaming-self-assessment__resource-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-responsible-gaming-self-assessment__resource-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-responsible-gaming-self-assessment__faq-section {
    background-color: var(--light-bg-1); /* Light background for FAQ */
    color: var(--dark-text);
    padding: 60px 0;
}

.page-responsible-gaming-self-assessment__faq-section .page-responsible-gaming-self-assessment__section-title {
    color: var(--primary-color);
}

.page-responsible-gaming-self-assessment__faq-list {
    margin-top: 40px;
}

.page-responsible-gaming-self-assessment__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-responsible-gaming-self-assessment__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-responsible-gaming-self-assessment__faq-item.active .page-responsible-gaming-self-assessment__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-responsible-gaming-self-assessment__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--dark-text);
}

.page-responsible-gaming-self-assessment__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-responsible-gaming-self-assessment__faq-question:active {
    background: #eeeeee;
}

.page-responsible-gaming-self-assessment__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--dark-text);
}

.page-responsible-gaming-self-assessment__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-responsible-gaming-self-assessment__faq-item.active .page-responsible-gaming-self-assessment__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change + to X for active state */
}

/* General link styling */
.page-responsible-gaming-self-assessment__link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-responsible-gaming-self-assessment__link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-responsible-gaming-self-assessment__main-title {
        font-size: 2.5em;
    }
    .page-responsible-gaming-self-assessment__section-title {
        font-size: 2em;
    }
    .page-responsible-gaming-self-assessment__assessment-card {
        padding: 30px;
    }
    .page-responsible-gaming-self-assessment__principles-grid, .page-responsible-gaming-self-assessment__resource-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-responsible-gaming-self-assessment {
        font-size: 15px;
        line-height: 1.6;
    }
    .page-responsible-gaming-self-assessment__assessment-section {
        padding-top: 100px !important; /* Mobile: Adjust based on actual fixed header height */
        padding-bottom: 40px;
    }
    .page-responsible-gaming-self-assessment__main-title {
        font-size: 2em;
    }
    .page-responsible-gaming-self-assessment__introduction-text,
    .page-responsible-gaming-self-assessment__card-description,
    .page-responsible-gaming-self-assessment__result-text,
    .page-responsible-gaming-self-assessment__advice-text,
    .page-responsible-gaming-self-assessment__conclusion-text,
    .page-responsible-gaming-self-assessment__section-description {
        font-size: 1em;
    }
    .page-responsible-gaming-self-assessment__assessment-card {
        padding: 20px;
        margin-top: 20px;
    }
    .page-responsible-gaming-self-assessment__card-title {
        font-size: 1.6em;
    }
    .page-responsible-gaming-self-assessment__form-group label {
        font-size: 1em;
    }
    .page-responsible-gaming-self-assessment__submit-button,
    .page-responsible-gaming-self-assessment__cta-button,
    .page-responsible-gaming-self-assessment__resource-button {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-responsible-gaming-self-assessment__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-responsible-gaming-self-assessment__principle-item,
    .page-responsible-gaming-self-assessment__resource-card {
        padding: 20px;
    }
    .page-responsible-gaming-self-assessment__principle-icon {
        width: 120px;
    }
    .page-responsible-gaming-self-assessment__principle-title,
    .page-responsible-gaming-self-assessment__resource-title {
        font-size: 1.3em;
    }
    .page-responsible-gaming-self-assessment__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-responsible-gaming-self-assessment__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-responsible-gaming-self-assessment__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-responsible-gaming-self-assessment__faq-answer {
        padding: 0 15px;
    }
    .page-responsible-gaming-self-assessment__faq-item.active .page-responsible-gaming-self-assessment__faq-answer {
        padding: 15px !important;
    }
    .page-responsible-gaming-self-assessment img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-responsible-gaming-self-assessment__section,
    .page-responsible-gaming-self-assessment__card,
    .page-responsible-gaming-self-assessment__container,
    .page-responsible-gaming-self-assessment__assessment-section,
    .page-responsible-gaming-self-assessment__principles-section,
    .page-responsible-gaming-self-assessment__resources-section,
    .page-responsible-gaming-self-assessment__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}