/* style/register.css */

/* Base styles for the register page */
.page-register {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    line-height: 1.6;
}

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

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

.page-register__section-description {
    font-size: 18px;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding-top: 0; /* Assumes shared.css handles body padding-top */
    padding-bottom: 80px;
    background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Red to Gold gradient */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 450px; /* Minimum height for hero */
}

.page-register__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-register__hero-title {
    font-size: 56px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.5;
}

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

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-register__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #121212; /* Dark text for contrast */
    border: 2px solid #FFD700;
}

.page-register__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

.page-register__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-register__btn-secondary:hover {
    background-color: #FFD700;
    color: #121212; /* Dark text on hover */
    transform: translateY(-2px);
}

.page-register__btn-center {
    display: block;
    margin: 40px auto 0 auto;
}

/* Registration Form Section */
.page-register__form-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for form contrast */
}

.page-register__form-section .page-register__section-title {
    color: #FFD700;
}

.page-register__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.page-register__registration-form {
    background-color: #222222;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

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

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

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #FFD700; /* Gold border */
    border-radius: 5px;
    background-color: #333333;
    color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

.page-register__form-input:focus {
    border-color: #e6c200;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.page-register__verification-group {
    display: flex;
    flex-direction: column;
}

.page-register__verification-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-register__verification-input {
    flex: 1;
}

.page-register__btn-get-code {
    background-color: #8B0000; /* Dark Red */
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-register__btn-get-code:hover {
    background-color: #6a0000;
}

.page-register__terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin-top: 25px;
}

.page-register__checkbox {
    margin-right: 10px;
    margin-top: 3px;
    transform: scale(1.2);
    accent-color: #FFD700; /* Gold checkbox */
}

.page-register__checkbox-label {
    font-size: 15px;
    color: #cccccc;
}

.page-register__text-link {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-register__text-link:hover {
    color: #e6c200;
    text-decoration: underline;
}

.page-register__btn-submit {
    width: 100%;
    padding: 15px 20px;
    background-color: #FFD700;
    color: #121212;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 30px;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

.page-register__form-image-container {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-register__form-image-container img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

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

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #8B0000; /* Dark Red background */
    color: #ffffff; /* Light text */
}

.page-register__benefits-section .page-register__section-title {
    color: #FFD700; /* Gold title on dark red */
}

.page-register__benefits-section .page-register__section-description {
    color: #f0f0f0;
}

.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.1); /* Semi-transparent white */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__benefit-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

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

.page-register__benefit-text {
    font-size: 16px;
    color: #f0f0f0;
}

/* Payment Section */
.page-register__payment-section {
    padding: 80px 0;
    background-color: #121212; /* Dark background */
}

.page-register__payment-section .page-register__section-title {
    color: #FFD700;
}

.page-register__payment-section .page-register__section-description {
    color: #f0f0f0;
}

.page-register__payment-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-register__payment-card {
    background-color: #222222;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 45%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-register__payment-text {
    font-size: 16px;
    color: #f0f0f0;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

.page-register__faq-section .page-register__section-title {
    color: #FFD700;
}

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

/* FAQ容器样式 */
.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.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;
    padding: 0 15px;
    opacity: 0;
    color: #f0f0f0; /* Light text for dark background */
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-register__faq-item.active .page-register__faq-answer {
    max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
    padding: 20px 15px !important;
    opacity: 1;
    background: #222222; /* Darker background for answer */
    border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #333333; /* Darker background for question */
    border: 1px solid #FFD700; /* Gold border */
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-register__faq-question:hover {
    background: #444444;
    border-color: #e6c200;
}

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

/* 问题标题样式 */
.page-register__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px; /* Slightly larger for readability */
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* 防止h3标签阻止点击事件 */
    color: #FFD700; /* Gold text for question */
}

/* 切换图标 */
.page-register__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    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-register__faq-item.active .page-register__faq-toggle {
    color: #ffffff; /* White when active */
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* CTA Section */
.page-register__cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFD700 0%, #8B0000 100%); /* Gold to Red gradient */
    text-align: center;
}

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

.page-register__cta-section .page-register__section-description {
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-register__cta-section .page-register__btn-primary {
    margin-right: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 48px;
    }

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

    .page-register__form-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .page-register__registration-form,
    .page-register__form-image-container {
        max-width: 100%;
    }

    .page-register__payment-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* General mobile padding and font adjustments */
    .page-register__container {
        padding: 0 15px;
    }

    .page-register__hero-section,
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__payment-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding: 40px 0;
    }

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

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

    .page-register__section-title {
        font-size: 28px;
        padding-top: 20px;
    }

    .page-register__section-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* Buttons responsive */
    .page-register__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register__btn-get-code,
    .page-register__btn-submit,
    .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;
        padding-right: 15px;
    }
    .page-register__hero-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;
    }
    .page-register__cta-section .page-register__btn-primary {
        margin-right: 0;
        margin-bottom: 15px; /* Add space between stacked buttons */
    }

    /* Images responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important; /* Ensure min size */
    }
    .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;
    }

    /* FAQ mobile */
    .page-register__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-register__faq-question h3 {
        font-size: 16px;
        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;
    }
}