/* style/register.css */

/* General styles for the register page content */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background: var(--background-color, #FFFFFF); /* Inherit from shared or default white */
}

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

.page-register__section-title {
    font-size: 32px;
    font-weight: bold;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.page-register__section-title--white {
    color: #ffffff;
}

.page-register__text-block {
    font-size: 16px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-register__text-block--white {
    color: #f0f0f0;
}

/* Button Styles */
.page-register__cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding/border included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-register__btn-primary {
    background-color: #EA7C07; /* Specific color for login/register */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-register__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.page-register__btn-secondary:hover {
    background-color: #1f8ec7;
    border-color: #1f8ec7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.page-register__btn-secondary--outline:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-register__btn-large {
    padding: 18px 50px;
    font-size: 20px;
}

/* HERO Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden; /* Prevent content overflow */
    background: linear-gradient(135deg, #26A9E0, #90CAF9); /* Light blue gradient background */
    color: #ffffff;
}

.page-register__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-register__hero-image-wrapper {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-register__hero-image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no CSS filter */
}

.page-register__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-register__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-register__intro-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-register__feature-item {
    text-align: center;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-register__feature-item:hover {
    transform: translateY(-10px);
}

.page-register__feature-item img {
    
    
    margin-bottom: 20px;
    object-fit: contain;
    filter: none; /* Ensure no CSS filter */
}

.page-register__feature-title {
    font-size: 22px;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-register__feature-description {
    font-size: 15px;
    color: #555555;
}

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-register__step-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.page-register__step-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

.page-register__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: #EA7C07; /* Login/Register specific color */
    color: #ffffff;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 25px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-register__step-description {
    font-size: 16px;
    color: #f0f0f0;
}

.page-register__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

/* Registration Form Section */
.page-register__form-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

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

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

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

.page-register__form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    color: #333333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

.page-register__form-input:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

.page-register__checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.page-register__form-checkbox {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    accent-color: #26A9E0;
}

.page-register__terms-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-register__terms-link:hover {
    text-decoration: underline;
}

.page-register__submit-button {
    width: 100%;
    margin-top: 30px;
}

.page-register__form-note {
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
    color: #555555;
}

.page-register__login-link {
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
}

.page-register__login-link:hover {
    text-decoration: underline;
}

/* Games Preview Section */
.page-register__games-preview {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-register__game-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.page-register__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    filter: none; /* Ensure no CSS filter */
    border-bottom: 1px solid #eee;
}

.page-register__game-title {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 15px 10px 15px;
}

.page-register__game-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-register__game-title a:hover {
    color: #EA7C07;
}

.page-register__game-description {
    font-size: 15px;
    color: #555555;
    padding: 0 15px 20px 15px;
}

/* Promotions Section */
.page-register__promotions-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

.page-register__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.page-register__promo-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.page-register__promo-card:hover {
    transform: translateY(-10px);
}

.page-register__promo-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    filter: none; /* Ensure no CSS filter */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__promo-title {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 15px 10px 15px;
}

.page-register__promo-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-register__promo-title a:hover {
    color: #f0f0f0;
}

.page-register__promo-description {
    font-size: 15px;
    color: #f0f0f0;
    padding: 0 15px 20px 15px;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

/* FAQ container styles */
.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-register__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;
}

/* FAQ expanded state - 🚨 Use !important and a sufficiently large max-height to ensure expansion */
.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important for priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Question styles */
.page-register__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;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.page-register__faq-item.active .page-register__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}


.page-register__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-register__faq-question:active {
  background: #eeeeee;
}

/* Question title styles */
.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 tag from blocking click events */
}

/* Toggle icon */
.page-register__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; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #26A9E0;
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* CTA Final Section */
.page-register__cta-final-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-register__main-title {
        font-size: 40px;
    }
    .page-register__hero-description {
        font-size: 18px;
    }
    .page-register__section-title {
        font-size: 28px;
    }
    .page-register__intro-features,
    .page-register__steps-grid,
    .page-register__game-categories,
    .page-register__promo-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-register__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-register__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-register__btn-large {
        padding: 15px 30px;
        font-size: 18px;
    }
    .page-register__button-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__button-group .page-register__cta-button {
        width: 100%;
    }

    .page-register__section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .page-register__text-block {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-register__container {
        padding: 15px;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__registration-form {
        padding: 25px;
    }
    .page-register__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-register__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-register__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-register__faq-answer {
        padding: 0 15px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px !important;
    }
}