/* style/register.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0a0a0a;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

.page-register {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Dark body background, so light text */
    background-color: var(--bg-dark); /* Inherited from shared.css, but set explicitly for clarity */
    line-height: 1.6;
}

/* Ensure page content has enough top padding to clear fixed header */
.page-register__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Desktop: Adjust based on actual header height */
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-light);
}

.page-register__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-register__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-register__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-register__hero-title {
    font-size: 44px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
    font-size: 18px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color); /* Contrasting text for button */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__cta-button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.page-register__cta-button--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-register__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-register__section {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-register__section:nth-of-type(odd) {
    background-color: var(--bg-dark);
}

.page-register__section:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
}

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

.page-register__container--small {
    max-width: 700px;
}

.page-register__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-register__section-description {
    font-size: 17px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

/* Why Join Section */
.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: var(--card-bg-dark);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

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

/* 🚨 feature-icon 强制尺寸要求（必须严格遵守） */
.page-register__feature-icon {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-register__feature-icon img {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
    object-fit: contain;
}

.page-register__feature-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-register__feature-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Registration Steps Section */
.page-register__steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-register__step-item {
    background: var(--card-bg-dark);
    border-radius: 10px;
    padding: 35px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    position: relative;
    padding-top: 80px; /* Space for step number */
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-register__step-number {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-register__step-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-register__step-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

.page-register__text-center {
    text-align: center;
    margin-top: 50px;
}

/* Registration Form Section */
.page-register__registration-form {
    background: var(--card-bg-dark);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    margin-top: 40px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.page-register__form-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.page-register__form-group input[type="text"],
.page-register__form-group input[type="password"],
.page-register__form-group input[type="email"],
.page-register__form-group input[type="tel"],
.page-register__form-group input[type="date"] {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-register__form-group input[type="text"]:focus,
.page-register__form-group input[type="password"]:focus,
.page-register__form-group input[type="email"]:focus,
.page-register__form-group input[type="tel"]:focus,
.page-register__form-group input[type="date"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
    outline: none;
}

.page-register__form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

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

.page-register__form-group--checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: var(--primary-color);
}

.page-register__form-group--checkbox label {
    margin-bottom: 0;
    color: var(--text-light);
    font-weight: normal;
    font-size: 15px;
}

.page-register__form-group--checkbox label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-register__form-group--checkbox label a:hover {
    text-decoration: underline;
}

.page-register__submit-button {
    width: 100%;
    padding: 15px 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__submit-button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__form-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    text-align: center;
}

/* Promotions Section */
.page-register__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__promotion-card {
    background: var(--card-bg-dark);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-register__promotion-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__promotion-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-register__promotion-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 15px;
}

.page-register__promotion-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-register__promotion-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* FAQ Section */
.page-register__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--card-bg-dark);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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;
    color: var(--text-light);
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.08); /* Slightly different background for active answer */
    border-radius: 0 0 5px 5px;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--primary-color);
}

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

.page-register__faq-question:active {
    background: rgba(255, 255, 255, 0.2);
}

.page-register__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-register__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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: var(--secondary-color);
    transform: rotate(45deg); /* Rotate for 'minus' effect */
}

.page-register__faq-answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Contact Section */
.page-register__section--contact {
    background-color: var(--secondary-color);
    padding: 60px 20px;
}

.page-register__section--contact .page-register__section-title {
    color: var(--primary-color);
}

.page-register__section--contact .page-register__section-description {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 38px;
    }
    .page-register__section-title {
        font-size: 32px;
    }
    .page-register__hero-description,
    .page-register__section-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        padding-top: 10px !important; /* Mobile: Adjust based on actual mobile header height */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__hero-title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .page-register__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-register__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-register__cta-button--large {
        padding: 15px 40px;
        font-size: 18px;
    }
    .page-register__section {
        padding: 60px 15px;
    }
    .page-register__section-title {
        font-size: 28px;
    }
    .page-register__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-register__features-grid,
    .page-register__steps-list,
    .page-register__promotions-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-register__feature-card,
    .page-register__step-item,
    .page-register__promotion-card {
        padding: 25px;
    }
    .page-register__feature-icon,
    .page-register__feature-icon img {
        width: 200px !important;
        height: 200px !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-register__registration-form {
        padding: 30px 20px;
    }
    .page-register__form-group label {
        font-size: 15px;
    }
    .page-register__form-group input {
        font-size: 15px;
    }
    .page-register__form-group--checkbox label {
        font-size: 14px;
    }
    .page-register__submit-button {
        font-size: 16px;
        padding: 14px;
    }
    .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;
    }
    /* Ensure all images are responsive and don't cause horizontal scroll */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__feature-card,
    .page-register__step-item,
    .page-register__promotion-card,
    .page-register__registration-form,
    .page-register__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__container {
        padding: 0;
    }
    .page-register__section--contact .page-register__cta-button--secondary {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 26px;
    }
    .page-register__section-title {
        font-size: 24px;
    }
    .page-register__hero-description,
    .page-register__section-description {
        font-size: 14px;
    }
    .page-register__feature-title {
        font-size: 19px;
    }
    .page-register__step-title {
        font-size: 18px;
    }
    .page-register__promotion-title {
        font-size: 18px;
    }
    .page-register__faq-question h3 {
        font-size: 14px;
    }
}