/* style/register.css */

/* Base Styles for Page Register */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Matching body background from shared.css */
}

/* Container for content */
.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #26A9E0; /* Main brand color for hero background */
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background-image: url('[GALLERY:hero_main:1920x1080:tt_thomo,register,hero,banner,online_betting]');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay; /* Blend with brand color */
}

.page-register__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(38, 169, 224, 0.7); /* Overlay with brand color for text readability */
    z-index: 1;
}

.page-register__hero-section .page-register__container {
    position: relative;
    z-index: 2;
}

.page-register__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
}

.page-register__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

/* Buttons */
.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-register__btn-primary,
.page-register__btn-secondary {
    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%;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary {
    background-color: #EA7C07; /* Custom color for Login/Register */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-register__btn-primary:hover {
    background-color: #d46f06;
    border-color: #d46f06;
}

.page-register__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-register__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Section Titles & Descriptions */
.page-register__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from parent section */
}

/* Registration Form Section */
.page-register__form-section {
    background-color: #ffffff; /* Light background for form */
    color: #333333; /* Dark text for light background */
    padding: 60px 20px;
}

.page-register__registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

.page-register__form-input::placeholder {
    color: #888888;
}

.page-register__form-checkbox {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.page-register__checkbox-input {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.page-register__checkbox-label {
    font-size: 0.95em;
    color: #555555;
}

.page-register__link {
    color: #26A9E0; /* Brand color for links */
    text-decoration: none;
}

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

.page-register__submit-button {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background-color: #26A9E0; /* Main brand color for submit */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-register__submit-button:hover {
    background-color: #1e87b7;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 60px 20px;
    background-color: #000000; /* Dark background */
    color: #ffffff; /* Light text */
}

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

.page-register__benefit-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
}

.page-register__benefit-icon {
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    max-width: 100%; /* Responsive, but won't shrink below 200px unless container is smaller */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure image fits without cropping */
    margin-bottom: 20px;
    border-radius: 5px;
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto; /* Center if width < 100% */
    margin-right: auto; /* Center if width < 100% */
}

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

.page-register__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Promotion Section */
.page-register__promo-section {
    padding: 60px 20px;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-register__promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 40px;
}

.page-register__promo-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    max-width: 100%; /* Responsive */
    height: auto; /* Responsive */
}

.page-register__promo-content {
    text-align: center;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 60px 20px;
    background-color: #000000; /* Dark background */
    color: #ffffff; /* Light text */
}

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

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
    margin: 0;
    color: #ffffff;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg);
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

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

.page-register__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: #f0f0f0;
}

/* Call to Action Bottom Section */
.page-register__cta-bottom-section {
    padding: 60px 20px;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-register__main-title {
        font-size: 2.5em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__intro-text,
    .page-register__section-description {
        font-size: 1.1em;
    }
    .page-register__promo-card {
        flex-direction: column;
    }
}

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

    /* Hero Section */
    .page-register__hero-section {
        padding: 60px 15px;
        min-height: 300px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-register__main-title {
        font-size: 2em;
    }
    .page-register__intro-text {
        font-size: 1em;
    }

    /* Buttons */
    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-register__cta-buttons,
    .page-register__button-group,
    .page-register__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;
    }

    /* Sections */
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-description {
        font-size: 0.95em;
    }
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__promo-section,
    .page-register__faq-section,
    .page-register__cta-bottom-section {
        padding: 40px 15px;
    }

    /* Form */
    .page-register__registration-form {
        padding: 20px;
    }
    .page-register__form-label {
        font-size: 0.9em;
    }
    .page-register__form-input {
        padding: 10px 12px;
    }
    .page-register__checkbox-label {
        font-size: 0.85em;
    }
    .page-register__submit-button {
        font-size: 1em;
    }

    /* Benefits Grid */
    .page-register__benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Promo Card */
    .page-register__promo-card {
        padding: 20px;
    }

    /* FAQ */
    .page-register__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-register__faq-answer {
        padding: 0 20px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Image responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register__section,
    .page-register__card,
    .page-register__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    /* Video responsiveness (if any) - Placeholder for strict requirement */
    .page-register video,
    .page-register__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-register__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: 1.8em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__intro-text,
    .page-register__section-description {
        font-size: 0.9em;
    }
}