/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css #1a1a2e */
}

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

.page-register__hero-section {
    position: relative;
    padding-top: calc(var(--header-offset, 120px) + 80px); /* Ensure space below fixed header */
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, #017439, #005f2f); /* Brand primary color gradient */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.page-register__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for register/login font */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.page-register__intro-text {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

.page-register__hero-image-wrapper {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box; /* Ensure button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

.page-register__btn-register:hover {
    background-color: #a00606;
    transform: translateY(-3px);
}

.page-register__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for register/login font */
    font-weight: bold;
}

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

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background for content section */
    color: #ffffff; /* Light text for dark background */
}

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

.page-register__benefit-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-register__benefit-image {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin: 0 auto 20px;
    border-radius: 8px;
    display: block;
}

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

.page-register__benefit-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Guide Section */
.page-register__guide-section {
    padding: 80px 0;
    background-color: #2a2a4a; /* Slightly lighter dark background */
    color: #ffffff;
}

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

.page-register__step-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.page-register__step-icon {
    width: 100%;
    height: auto;
    max-width: 180px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 50%; /* Make icons circular */
    border: 3px solid #017439;
}

.page-register__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-register__step-text {
    font-size: 1em;
    color: #e0e0e0;
}

.page-register__tip-text {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: #f0f0f0;
}

.page-register__tip-text a,
.page-register__step-text a {
    color: #FFFF00;
    text-decoration: none;
    font-weight: bold;
}

.page-register__tip-text a:hover,
.page-register__step-text a:hover {
    text-decoration: underline;
}

/* Terms Section */
.page-register__terms-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-register__terms-section .page-register__section-title {
    color: #017439; /* Brand primary color for title on light background */
}

.page-register__terms-section .page-register__section-description {
    color: #555555; /* Darker grey for description on light background */
}

.page-register__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-register__terms-item {
    background: #f8f8f8;
    border-left: 5px solid #017439;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-register__terms-item-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-register__terms-item-text {
    font-size: 1em;
    color: #444444;
}

.page-register__terms-item-text a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-register__terms-item-text a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff; /* Light text */
}

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

.page-register__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
    font-size: 1.2em;
    color: #FFFF00;
    margin: 0;
}

.page-register__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00;
    transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

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

.page-register__faq-text {
    font-size: 1em;
    color: #e0e0e0;
    margin: 0;
}

.page-register__faq-text a {
    color: #FFFF00;
    text-decoration: none;
    font-weight: bold;
}

.page-register__faq-text a:hover {
    text-decoration: underline;
}

/* Call to Action Section */
.page-register__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #005f2f, #017439); /* Brand primary color gradient */
    color: #ffffff;
}

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

.page-register__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 2.8em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__benefits-grid,
    .page-register__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-register__hero-section {
        padding-top: calc(var(--header-offset, 120px) + 60px);
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-register__container {
        padding: 0 15px;
    }
    .page-register__hero-section {
        padding-top: calc(var(--header-offset, 120px) + 30px) !important; /* Mobile fixed header offset + internal padding */
        padding-bottom: 30px !important;
    }
    .page-register__main-title {
        font-size: 2.2em;
    }
    .page-register__intro-text {
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-register__cta-button,
    .page-register__btn-register,
    .page-register__btn-primary {
        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;
        font-size: 1.1em;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__hero-image-wrapper,
    .page-register__benefits-grid,
    .page-register__guide-steps,
    .page-register__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-register__benefit-card,
    .page-register__step-item,
    .page-register__faq-item,
    .page-register__terms-item {
        padding: 20px;
    }
    .page-register__faq-question {
        padding: 15px 20px;
    }
    .page-register__faq-answer {
        padding: 15px 20px;
    }
    .page-register__benefits-section,
    .page-register__guide-section,
    .page-register__terms-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: 1.8em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__benefits-grid,
    .page-register__guide-steps {
        grid-template-columns: 1fr;
    }
}