/* style/register.css */

/* --- Base Styles --- */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text on light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default white */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* --- Buttons --- */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-register__btn-primary {
    background-color: #C30808; /* Custom color for Register */
    color: #FFFF00; /* Custom font color for Register */
    border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-register__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

/* --- Hero Section --- */
.page-register__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #f8f8f8;
}

.page-register__hero-content {
    max-width: 800px;
    margin-bottom: 40px;
}

.page-register__hero-title {
    font-size: 3.5em;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: 1.3em;
    color: #555555;
    margin-bottom: 30px;
}

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

.page-register__hero-image-container {
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Why Join Section --- */
.page-register__why-join-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.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-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-register__feature-card:hover {
    transform: translateY(-5px);
}

.page-register__feature-icon {
    width: 200px; /* Min size 200px */
    height: 150px; /* Maintain aspect ratio */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-register__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-register__feature-description {
    color: #666666;
}

/* --- Steps Section --- */
.page-register__steps-section {
    padding: 60px 0;
    background-color: #f1f1f1;
}

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

.page-register__step-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-register__step-number {
    font-size: 3em;
    font-weight: bold;
    color: #C30808; /* Custom color */
    margin-bottom: 15px;
}

.page-register__step-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

.page-register__step-description {
    color: #666666;
    margin-bottom: 20px;
}

.page-register__step-image {
    width: 100%;
    height: auto;
    max-height: 300px; /* Limit height to prevent overly long images */
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

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

/* --- Promotions Section --- */
.page-register__promotions-section {
    padding: 60px 0;
}

.page-register__dark-section {
    background-color: #017439; /* Brand primary color as background */
    color: #FFFFFF; /* White text for contrast */
}

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__section-intro,
.page-register__dark-section .page-register__promotion-title,
.page-register__dark-section .page-register__promotion-description {
    color: #FFFFFF; /* Ensure white text */
}

.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-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-register__promotion-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, will be responsive */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-register__promotion-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* --- FAQ Section --- */
.page-register__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

.page-register__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: #e5e5e5;
}

.page-register__faq-title {
    margin: 0;
    color: #017439;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #C30808; /* Custom color */
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg); /* Plus to X (minus visual) */
    color: #017439;
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding is 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #666666;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px; /* Expanded padding */
}

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

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

.page-register__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__section-intro {
    color: #FFFFFF;
}

.page-register__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 3em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
}

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

    /* Fixed header offset for mobile */
    .page-register {
      padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    }

    /* Images responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Image containers responsive */
    .page-register__hero-image-container,
    .page-register__feature-icon,
    .page-register__step-image,
    .page-register__promotion-image,
    .page-register__feature-card,
    .page-register__step-card,
    .page-register__promotion-card,
    .page-register__hero-section,
    .page-register__why-join-section,
    .page-register__steps-section,
    .page-register__promotions-section,
    .page-register__faq-section,
    .page-register__final-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow */
        padding-left: 0;
        padding-right: 0;
    }

    .page-register__hero-section,
    .page-register__why-join-section,
    .page-register__steps-section,
    .page-register__promotions-section,
    .page-register__faq-section,
    .page-register__final-cta-section {
      padding-left: 15px !important;
      padding-right: 15px !important;
    }

    /* Buttons responsive */
    .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: 12px 20px !important; /* Adjust padding for smaller screens */
    }

    .page-register__hero-cta-group,
    .page-register__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-register__hero-title {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__feature-icon {
        width: 150px;
        height: 112px;
    }
    .page-register__feature-title,
    .page-register__step-title,
    .page-register__promotion-title {
        font-size: 1.3em;
    }
    .page-register__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-register__faq-answer {
        padding: 0 15px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
      padding: 15px !important;
    }
}