/* General page styling */
.page-register {
    background-color: #140C0C; /* Background */
    color: #FFF1E8; /* Text Main */
    font-family: Arial, sans-serif; /* Roboto气质 - use a common sans-serif */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding to avoid header overlap if body padding-top is not active */
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px; /* Adjust as needed */
    object-fit: cover;
    margin-bottom: 20px; /* Space between image and text */
    border-radius: 8px;
}

.page-register__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-register__hero-title {
    font-size: clamp(2em, 4vw, 3em); /* H1 font size constraint */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    background: linear-gradient(to right, #F3C54D, #FFB04A); /* Gold to Orange gradient for h1 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    max-width: 100%; /* Ensure it doesn't overflow */
}

.page-register__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__hero-cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
    color: #140C0C; /* Dark text for contrast */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px; /* Ensure sufficient size for button */
    text-align: center;
}

.page-register__hero-cta-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Form Section */
.page-register__form-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__form-container {
    background-color: #2A1212; /* Card BG */
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #6A1E1E; /* Border */
}

.page-register__form-title {
    font-size: 2em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: #F3C54D; /* Gold */
}

.page-register__registration-form {
    display: flex;
    flex-direction: column;
}

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

.page-register__form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1em;
    color: #FFF1E8; /* Text Main */
}

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.4); /* Slightly transparent for depth */
    color: #FFF1E8; /* Text Main */
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width */
}

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

.page-register__form-input:focus {
    outline: none;
    border-color: #FFB04A; /* Gold */
    box-shadow: 0 0 0 3px rgba(255, 176, 74, 0.3);
}

.page-register__form-terms {
    display: flex;
    align-items: flex-start;
}

.page-register__form-terms input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 10px;
    min-width: 20px; /* Ensure checkbox is clickable */
    min-height: 20px;
    accent-color: #FFB04A; /* Custom color for checkbox */
}

.page-register__form-link {
    color: #FFB04A; /* Gold for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-register__form-link:hover {
    color: #F3C54D; /* Slightly lighter gold on hover */
    text-decoration: underline;
}

.page-register__form-button {
    padding: 15px 25px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
    color: #140C0C; /* Dark text for contrast */
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-top: 10px;
}

.page-register__form-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-register__form-login-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95em;
    color: #FFF1E8; /* Text Main */
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 60px 20px;
    text-align: center;
}

.page-register__benefits-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 40px;
    color: #F3C54D; /* Gold */
}

.page-register__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.page-register__benefit-item {
    background-color: #2A1212; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #6A1E1E; /* Border */
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-register__benefit-icon {
    width: 100%; /* Ensure image fills card space */
    max-width: 400px; /* Max width for images */
    height: auto;
    min-height: 200px; /* Min height as per requirement */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #E53030; /* Accent color border */
}

.page-register__benefit-heading {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFB04A; /* Button gradient start for heading */
}

.page-register__benefit-description {
    font-size: 0.95em;
    color: #FFF1E8; /* Text Main */
}

/* FAQ Section */
.page-register__faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-register__faq-title {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F3C54D; /* Gold */
}

.page-register__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-register__faq-item {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-register__faq-item:hover {
    background-color: #140C0C; /* Slightly darker on hover */
}

.page-register__faq-question {
    font-size: 1.2em;
    font-weight: 600;
    padding: 18px 25px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFB04A; /* Gold for questions */
    position: relative;
}

.page-register__faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: #FFB04A;
    transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
    padding: 0 25px 18px;
    margin: 0;
    font-size: 1em;
    color: #FFF1E8; /* Text Main */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 200px; /* Arbitrary max-height, will expand with content */
    padding-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-register__hero-section {
        padding: 30px 15px;
    }

    .page-register__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-register__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-register__hero-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-register__form-section {
        padding: 40px 15px;
    }

    .page-register__form-container {
        padding: 30px 20px;
    }

    .page-register__form-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-register__form-input {
        padding: 10px 12px;
    }

    .page-register__form-button {
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-register__benefits-section {
        padding: 40px 15px;
    }

    .page-register__benefits-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-register__benefits-list {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

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

    .page-register__faq-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-register__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    /* Enforce image max-width for content area images */
    .page-register img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure all content images in .page-register are at least 200px wide */
.page-register img:not(.page-register__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast check for text on background */
/* Text Main (#FFF1E8) on Background (#140C0C) -> Ratio 16.48:1 (AA/AAA Pass) */
/* Gold (#F3C54D) on Background (#140C0C) -> Ratio 10.99:1 (AA/AAA Pass) */
/* Button Text (#140C0C) on Button Background (linear-gradient #FFB04A to #D86A14) -> Ratio approx 10:1 (AA/AAA Pass) */
/* Form Input text (#FFF1E8) on Input Background (rgba(0,0,0,0.4)) -> Ratio approx 10:1 (AA/AAA Pass) */