/* style/register.css */

/* Variables for colors, adhering to the provided scheme */
:root {
    --page-register-primary-color: #113B7A;
    --page-register-secondary-color: #1D5FD1;
    --page-register-card-bg: #10233F;
    --page-register-text-main: #F3F8FF;
    --page-register-text-secondary: #AFC4E8;
    --page-register-border-color: #244D84;
    --page-register-glow-color: #4FA8FF;
    --page-register-gold-color: #F2C14E;
    --page-register-divider-color: #1B3357;
    --page-register-deep-navy-color: #08162B;
    --page-register-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-register {
    background-color: var(--page-register-deep-navy-color); /* Deep Navy for overall background */
    color: var(--page-register-text-main);
    font-family: Arial, sans-serif; /* Roboto气质, so Arial/sans-serif is a safe fallback */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section */
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Ensure body padding-top is handled by shared.css */
/* .page-register should not add redundant padding-top for header offset */

.page-register__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile first */
    align-items: center;
    text-align: center;
    padding: 0 20px 40px;
    background-color: var(--page-register-deep-navy-color);
    position: relative;
    overflow: hidden; /* For image contained */
}

.page-register__hero-visual {
    width: 100%;
    margin-bottom: 20px; /* Space between image and content on mobile */
}

.page-register__hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/5; /* Adjust aspect ratio as needed for hero */
    border-radius: 8px;
}

.page-register__hero-content {
    max-width: 900px;
    padding: 0 10px;
    position: relative; /* Ensure content is in normal flow */
    z-index: 1; /* Ensure text is above any background elements if present */
}

.page-register__main-title {
    font-weight: bold;
    color: var(--page-register-gold-color); /* Use gold for h1 for impact */
    line-height: 1.2;
    margin-bottom: 15px;
    /* Use clamp for responsive font size, avoiding fixed large values */
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.page-register__hero-description {
    color: var(--page-register-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__cta-button,
.page-register__secondary-cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__cta-button {
    background: var(--page-register-button-gradient);
    color: var(--page-register-text-main);
    border: none;
}

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

.page-register__secondary-cta-button {
    background-color: transparent;
    color: var(--page-register-secondary-color);
    border: 2px solid var(--page-register-secondary-color);
    margin-top: 20px;
}

.page-register__secondary-cta-button:hover {
    background-color: var(--page-register-secondary-color);
    color: var(--page-register-text-main);
}

.page-register__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-register-text-main);
}

.page-register__section-title--gradient {
    background: linear-gradient(to right, var(--page-register-gold-color), var(--page-register-secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for browsers that don't support text-fill-color */
}

.page-register__description {
    font-size: 1rem;
    color: var(--page-register-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Sections common styling */
.page-register__benefits-section,
.page-register__steps-section,
.page-register__security-section,
.page-register__faq-section,
.page-register__final-cta-section {
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Card styling */
.page-register__card {
    background-color: var(--page-register-card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-register-border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-register__card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    /* Ensure images are at least 200x200px display size */
    min-width: 200px;
    min-height: 200px;
}

.page-register__card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--page-register-text-main);
    margin-bottom: 10px;
}

.page-register__card-description {
    font-size: 0.95rem;
    color: var(--page-register-text-secondary);
}

/* Benefits Grid */
.page-register__benefits-grid,
.page-register__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Security Section */
.page-register__security-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    align-items: center;
    gap: 40px;
    text-align: center;
}

.page-register__security-content {
    max-width: 600px;
}

.page-register__security-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
}

.page-register__security-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--page-register-text-secondary);
}

.page-register__icon {
    font-size: 1.2rem;
    color: var(--page-register-gold-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.page-register__security-image {
    max-width: 100%;
}

.page-register__security-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-register__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-register__faq-item {
    background-color: var(--page-register-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--page-register-border-color);
    overflow: hidden;
}

.page-register__faq-question {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--page-register-text-main);
    padding: 20px 25px;
    cursor: pointer;
    position: relative;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-register__faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--page-register-gold-color);
    transition: transform 0.3s ease;
}

.page-register__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-register__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: var(--page-register-text-secondary);
}

.page-register__faq-answer.active {
    max-height: 200px; /* Adjust as needed, or use JS to calculate */
    padding-bottom: 20px;
}

.page-register__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-register__final-cta-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-register__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2rem;
}


/* Responsive adjustments */
@media (min-width: 769px) {
    .page-register__hero-section {
        flex-direction: column; /* Image on top, content below for desktop too */
        padding-top: 40px;
        padding-bottom: 80px;
    }
    .page-register__hero-visual {
        order: 1; /* Image first */
        margin-bottom: 40px;
    }
    .page-register__hero-content {
        order: 2; /* Content second */
        padding: 0;
    }

    .page-register__security-section {
        flex-direction: row;
        text-align: left;
    }

    .page-register__security-content {
        margin-right: 40px;
    }

    .page-register__security-image {
        flex-shrink: 0;
        max-width: 50%; /* Adjust image width on desktop */
    }
}

@media (max-width: 768px) {
    .page-register img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure all content images are at least 200x200px on display */
    .page-register img {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 549px) {
    .page-register__hero-section {
        padding-top: 20px;
        padding-bottom: 60px;
    }
    .page-register__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem); /* Even smaller on very small screens */
    }
    .page-register__hero-description {
        font-size: 1rem;
    }
    .page-register__cta-button,
    .page-register__secondary-cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .page-register__benefits-grid,
    .page-register__steps-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }

    .page-register__card {
        padding: 20px;
    }

    .page-register__card img {
        margin-bottom: 15px;
    }

    .page-register__section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .page-register__security-section {
        flex-direction: column; /* Always column on mobile */
    }

    .page-register__security-content {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .page-register__security-image {
        max-width: 100%;
    }

    .page-register__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-register__faq-answer.active {
        padding-bottom: 15px;
    }
}

/* Image CSS rules for min-width 200px and no filters */
.page-register img {
    filter: none !important; /* Absolutely no filters */
}

/* Content area images CSS size constraint */
.page-register img {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow width to be determined by max-width: 100% and aspect ratio */
    height: auto;
}
.page-register__card img,
.page-register__security-image img {
    width: 100%; /* Ensure these take full width of their container */
    height: auto;
}

/* Mobile responsive for images within .page-register */
@media (max-width: 768px) {
    .page-register img {
        max-width: 100%;
        height: auto;
    }
}