/* style/register.css */

/* Base styles for the register page */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #000; /* Ensuring consistency, though body bg is from shared */
}

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

.page-register__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-register__section-intro {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-register__hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    background: #1a1a1a; /* Dark background for the section */
    flex-wrap: wrap;
    padding-top: 0; /* Assuming shared.css sets body padding-top */
}

.page-register__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    margin-right: 40px;
    text-align: left;
}

.page-register__hero-title {
    font-size: 42px;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-register__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 800px;
    text-align: right;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Registration Form */
.page-register__register-form-wrapper {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

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

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

.page-register__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #8B0000;
    border-radius: 5px;
    background-color: #3a3a3a;
    color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
}

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

.page-register__captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-register__captcha-input {
    flex-grow: 1;
}

.page-register__captcha-image {
    border-radius: 5px;
    border: 1px solid #8B0000;
    height: 40px;
    width: 120px;
    object-fit: cover;
}

.page-register__refresh-captcha-button {
    background-color: #8B0000;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.page-register__refresh-captcha-button:hover {
    background-color: #a00000;
}

.page-register__form-terms {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.page-register__form-terms input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
    min-width: 18px;
    min-height: 18px;
}

.page-register__form-terms a {
    color: #FFD700;
    text-decoration: none;
}

.page-register__form-terms a:hover {
    text-decoration: underline;
}

.page-register__submit-button {
    width: 100%;
    padding: 15px;
    background-color: #FFD700;
    color: #000000;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-register__submit-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    color: #f0f0f0;
}

.page-register__login-prompt a {
    color: #FFD700;
    text-decoration: none;
}

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

/* Why Join Section (Benefits/Features) */
.page-register__why-join-section {
    padding: 60px 0;
    background-color: #0d0d0d;
}

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

.page-register__feature-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #8B0000;
}

.page-register__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__feature-icon {
    width: 100%;
    height: 200px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-register__feature-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
}

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

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

.page-register__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid #8B0000;
}

.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 25px;
    opacity: 0;
    color: #e0e0e0;
    background: #2a2a2a;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid #8B0000;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #1a1a1a;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-register__faq-question:hover {
    background: #2a2a2a;
}

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

.page-register__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #FFD700;
}

.page-register__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    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: 30px;
    height: 30px;
}

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

/* CTA Section */
.page-register__cta-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    text-align: center;
}

.page-register__cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-register__cta-title {
    font-size: 38px;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-register__cta-description {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-register__cta-button {
    display: inline-block;
    padding: 18px 40px;
    background-color: #FFD700;
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-register__hero-content {
        margin-right: 20px;
    }

    .page-register__hero-title {
        font-size: 36px;
    }

    .page-register__section-title {
        font-size: 32px;
    }

    .page-register__cta-title {
        font-size: 32px;
    }

    .page-register__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-register__container {
        padding: 0 15px;
    }

    .page-register__hero-section {
        flex-direction: column;
        padding: 40px 15px;
    }

    .page-register__hero-content {
        margin-right: 0;
        text-align: center;
        margin-bottom: 30px;
    }

    .page-register__hero-title {
        font-size: 28px;
    }

    .page-register__hero-description {
        font-size: 16px;
    }

    .page-register__hero-image-wrapper {
        text-align: center;
    }

    .page-register__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-register__section-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .page-register__register-form-wrapper {
        padding: 20px;
        margin-top: 20px;
    }

    .page-register__form-input {
        padding: 10px;
        font-size: 15px;
    }
    
    .page-register__captcha-image {
        height: 36px;
        width: 100px;
    }

    .page-register__refresh-captcha-button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .page-register__form-terms label {
        font-size: 14px;
    }

    .page-register__submit-button {
        font-size: 18px;
        padding: 12px;
    }
    
    .page-register__login-prompt {
        font-size: 14px;
    }

    .page-register__why-join-section {
        padding: 40px 0;
    }

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

    .page-register__feature-card {
        padding: 20px;
    }
    
    .page-register__feature-icon {
        height: 150px;
    }

    .page-register__feature-title {
        font-size: 20px;
    }

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

    .page-register__faq-section {
        padding: 40px 0;
    }

    .page-register__faq-list {
        margin-top: 30px;
    }
    
    .page-register__faq-question {
        padding: 15px 20px;
    }
    
    .page-register__faq-question h3 {
        font-size: 16px;
    }
    
    .page-register__faq-toggle {
        font-size: 24px;
        width: 26px;
        height: 26px;
    }
    
    .page-register__faq-answer {
        padding: 0 20px;
    }
    
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px 20px !important;
    }

    .page-register__cta-section {
        padding: 60px 0;
    }

    .page-register__cta-title {
        font-size: 28px;
    }

    .page-register__cta-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-register__cta-button {
        padding: 15px 30px;
        font-size: 18px;
    }

    /* 🚨 Mobile image responsive adaptation */
    .page-register img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    /* 🚨 Ensure containers also adapt */
    .page-register__hero-image-wrapper,
    .page-register__feature-card,
    .page-register__benefit-card,
    .page-register__register-form-wrapper,
    .page-register__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific overrides for sections that already have padding */
    .page-register__hero-section,
    .page-register__why-join-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 🚨 Mobile button responsive adaptation */
    .page-register__submit-button,
    .page-register__cta-button,
    .page-register__refresh-captcha-button,
    .page-register a[class*="button"],
    .page-register a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
    }
    
    .page-register__form-terms {
        padding-left: 0;
        padding-right: 0;
    }

    /* If multiple buttons horizontally, allow wrapping */
    .page-register__button-group { /* Example class if present */
        display: flex;
        flex-direction: column; /* Stack vertically on mobile */
        gap: 10px;
    }
}