/* General styles for the page-register scope */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Text Main */
    background: #140C0C; /* Background */
}

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

.page-register__section-title {
    font-size: 3em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #F3C54D; /* Gold */
    line-height: 1.2;
}

.page-register__sub-title {
    font-size: 2em;
    font-weight: 600;
    color: #FFB04A;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-register__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF1E8;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register a[class*="button"],
.page-register a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* For responsiveness */
    word-wrap: break-word; /* For responsiveness */
}

.page-register__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #140C0C; /* Dark text for light button */
    border: none;
}

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

.page-register__btn-secondary {
    background: #2A1212; /* Card BG */
    color: #FFB04A; /* Gold-like for secondary button text */
    border: 1px solid #6A1E1E; /* Border */
    margin-left: 20px;
}

.page-register__btn-secondary:hover {
    background: #7E0D0D; /* Deep Red */
    color: #FFF1E8;
    border-color: #FFB04A;
}

/* Hero Section */
.page-register__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background: #140C0C; /* Background */
}

.page-register__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover; /* Default cover for desktop */
}

.page-register__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 800;
    color: #F3C54D; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-register__description {
    font-size: 1.2em;
    color: #FFF1E8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__hero-text-block .page-register__btn-primary {
    margin-left: 0;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
}

.page-register__dark-section {
    background: #2A1212; /* Card BG */
}

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

.page-register__benefit-card {
    background: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__card-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Constrain image size */
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-register__card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #FFB04A; /* Gold-like */
    margin-bottom: 15px;
}

.page-register__card-text {
    font-size: 1em;
    color: #FFF1E8;
}

/* How to Register Section */
.page-register__how-to-register-section {
    padding: 80px 0;
    background: #140C0C; /* Background */
}

.page-register__steps-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.page-register__step-item {
    background: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #140C0C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
}

.page-register__step-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #FFB04A;
    margin-bottom: 15px;
}

.page-register__step-text {
    color: #FFF1E8;
}

.page-register__cta-block {
    text-align: center;
    margin-top: 40px;
}

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

/* Verification Section */
.page-register__verification-section {
    padding: 80px 0;
}

.page-register__verification-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-register__verification-text,
.page-register__verification-image {
    flex: 1;
}

.page-register__verification-text ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-register__verification-text ul li {
    background: #140C0C; /* Background */
    border-left: 4px solid #F3C54D; /* Gold */
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #FFF1E8;
}

.page-register__verification-text ul li p {
    margin: 0;
}

.page-register__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

/* Deposit Bonus Section */
.page-register__deposit-bonus-section {
    padding: 80px 0;
    background: #140C0C; /* Background */
}

.page-register__deposit-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-direction: row-reverse; /* Image on right, text on left */
}

.page-register__deposit-text,
.page-register__deposit-image {
    flex: 1;
}

.page-register__deposit-text ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-register__deposit-text ul li {
    background: #2A1212; /* Card BG */
    border-left: 4px solid #FFB04A;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #FFF1E8;
}

.page-register__deposit-text ul li p {
    margin: 0;
}

.page-register__deposit-bonus-section .page-register__btn-primary,
.page-register__deposit-bonus-section .page-register__btn-secondary {
    margin-top: 20px;
}

/* FAQ Section */
details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  color: #FFF1E8;
}
details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFB04A; /* Question text color */
}
details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #7E0D0D; /* Deep Red */
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04A;
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: #140C0C; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8;
}
.page-register__faq-answer p {
    margin-top: 10px;
    margin-bottom: 0;
}


/* Final CTA Section */
.page-register__cta-final-section {
    padding: 80px 0;
    background: #140C0C; /* Background */
    text-align: center;
}

.page-register__cta-final-section .page-register__btn-primary,
.page-register__cta-final-section .page-register__btn-secondary {
    margin-top: 30px;
    margin-bottom: 10px;
}
.page-register__cta-final-section .page-register__btn-primary {
    margin-right: 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-register__container {
        padding: 0 15px;
    }

    .page-register__section-title {
        font-size: 2.5em;
    }

    .page-register__sub-title {
        font-size: 1.8em;
    }

    .page-register__hero-image-container {
        margin-bottom: 20px;
    }

    .page-register__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

    .page-register__description {
        font-size: 1.1em;
    }

    .page-register__benefits-grid,
    .page-register__steps-wrapper {
        gap: 20px;
    }

    .page-register__verification-content,
    .page-register__deposit-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-register__deposit-content {
        flex-direction: column; /* Ensure consistent stacking on smaller screens */
    }
}

@media (max-width: 768px) {
    /* General content area padding and overflow for mobile */
    .page-register__container,
    .page-register__hero-content-wrapper,
    .page-register__benefits-section .page-register__container,
    .page-register__how-to-register-section .page-register__container,
    .page-register__verification-section .page-register__container,
    .page-register__deposit-bonus-section .page-register__container,
    .page-register__faq-section .page-register__container,
    .page-register__cta-final-section .page-register__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Ensure no horizontal scroll */
    }

    /* HERO 主图区域 - Mobile */
    .page-register__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-bottom: 40px;
    }
    .page-register__hero-image {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        width: 100% !important;
        height: auto !important;
    }
    .page-register__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em); /* Smaller font size for mobile */
    }
    .page-register__description {
        font-size: 1em;
    }

    /* 产品展示图区域 / Benefits Grid - Mobile */
    .page-register__benefits-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-register__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 装饰主标题 + 长文 SEO 区 - Mobile */
    .page-register__section-title {
        font-size: 2em;
        text-align: center;
        padding: 0 10px;
    }
    .page-register__section-intro {
        font-size: 0.95em;
        padding: 0 10px;
    }
    .page-register__sub-title {
        font-size: 1.5em;
        text-align: center;
    }
    .page-register__verification-content,
    .page-register__deposit-content {
        flex-direction: column; /* Stack content vertically */
    }
    .page-register__verification-text ul li,
    .page-register__deposit-text ul li {
        padding: 8px 10px;
        font-size: 0.95em;
    }

    /* 通用图片与容器 - Mobile */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* 按钮与按钮容器 - Mobile */
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .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;
        margin-left: 0 !important; /* Override desktop margin */
        margin-right: 0 !important; /* Override desktop margin */
        margin-bottom: 15px; /* Add vertical spacing between stacked buttons */
    }

    .page-register__cta-block,
    .page-register__cta-final-section .page-register__container {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        align-items: center;
    }
    .page-register__cta-block .page-register__btn-primary {
        margin-bottom: 10px; /* Space between stacked buttons */
    }
    .page-register__cta-final-section .page-register__btn-primary {
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    /* FAQ Section - Mobile */
    details.page-register__faq-item summary.page-register__faq-question {
        padding: 15px;
    }
    .page-register__faq-qtext {
        font-size: 1em;
    }
    .page-register__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-register__faq-item .page-register__faq-answer {
        padding: 0 15px 15px;
    }

    /* Steps Wrapper - Mobile */
    .page-register__steps-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .page-register__step-item {
        width: 100%;
        max-width: 100%;
        min-width: unset;
    }
}