/* style/register.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the page, based on dark body background */
    background-color: transparent; /* Main content background will be handled by sections */
}

/* Fixed header offset for desktop and mobile */
.page-register__hero-section {
    padding-top: var(--header-offset, 120px);
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    height: 700px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Fallback for image */
}

.page-register__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-register__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-register__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
    color: #ffffff; /* Light text on dark overlay */
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff; /* Title color on dark overlay */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly lighter for description */
}

/* General Section Styles */
.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-register__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand color for titles on light background */
}

.page-register__section-title--light {
    color: #ffffff; /* White title on dark background */
}

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    color: #333333; /* Dark text on light background */
}

.page-register__section-description--light {
    color: #f0f0f0; /* Light text on dark background */
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

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

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

.page-register__btn-secondary {
    background-color: transparent;
    color: #C30808; /* Custom red for login */
    border: 2px solid #C30808;
}

.page-register__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFF00; /* Custom yellow for login font on hover */
}

.page-register__btn-primary--large,
.page-register__btn-secondary--large {
    padding: 18px 40px;
    font-size: 1.2em;
    min-width: 200px;
}

/* Benefits Section */
.page-register__benefits-section {
    background-color: #FFFFFF; /* Custom white background */
    color: #333333; /* Dark text on light background */
    padding: 60px 0;
}

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

.page-register__benefit-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333; /* Dark text on light card */
}

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

.page-register__benefit-image {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-register__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for titles */
}

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

/* Steps Section */
.page-register__steps-section {
    background-color: #017439; /* Brand main color for dark background */
    color: #ffffff; /* Light text on dark background */
    padding: 60px 0;
}

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

.page-register__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff; /* Light text on dark card */
}

.page-register__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFF00; /* Custom yellow for step numbers */
    margin-bottom: 15px;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #C30808; /* Custom red background for step icons */
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

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

.page-register__step-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

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

/* Verification Section */
.page-register__verification-section {
    background-color: #FFFFFF; /* Custom white background */
    color: #333333; /* Dark text on light background */
    padding: 60px 0;
}

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

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

.page-register__verification-text p {
    margin-bottom: 15px;
    color: #555555;
}

.page-register__verification-list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #555555;
}

.page-register__verification-list li {
    margin-bottom: 8px;
}

.page-register__verification-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-register__verification-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Promo Section */
.page-register__promo-section {
    background-color: #0a0a0a; /* Body background color for dark section */
    color: #ffffff; /* Light text on dark background */
    padding: 60px 0;
}

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

.page-register__promo-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff; /* Light text on dark card */
}

.page-register__promo-image {
    max-width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-register__promo-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom yellow for promo titles */
}

.page-register__promo-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-register__promo-disclaimer {
    margin-top: 50px;
    font-size: 0.9em;
    color: #cccccc;
    text-align: center;
}

/* FAQ Section */
.page-register__faq-section {
    background-color: #FFFFFF; /* Custom white background */
    color: #333333; /* Dark text on light background */
    padding: 60px 0;
}

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

.page-register__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: #eee;
    color: #333333; /* Dark text on light background */
    border-bottom: 1px solid #e0e0e0;
}

.page-register__faq-item[open] .page-register__faq-question {
    background-color: #e0e0e0;
}

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

.page-register__faq-qtext {
    flex-grow: 1;
    color: #333333;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    color: #017439; /* Brand color for toggle icon */
}

.page-register__faq-item[open] .page-register__faq-toggle {
    content: "−";
}

.page-register__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
    color: #555555;
    background-color: #fcfcfc;
}

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

/* Remove default details/summary styling */
.page-register__faq-item summary {
    list-style: none;
}
.page-register__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Final CTA Section */
.page-register__final-cta-section {
    background-color: #017439; /* Brand main color for dark background */
    color: #ffffff; /* Light text on dark background */
    padding: 80px 0;
    text-align: center;
}

.page-register__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__verification-content {
        flex-direction: column;
        text-align: center;
    }
    .page-register__verification-image-wrapper {
        margin-top: 30px;
    }
    .page-register__verification-list {
        text-align: left;
        margin: 0 auto 20px;
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    /* Mobile specific header offset */
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-register__hero-section {
        height: 500px;
    }
    .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__section-description {
        font-size: 0.95em;
    }

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

    /* All image containers must be responsive */
    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__verification-section,
    .page-register__promo-section,
    .page-register__faq-section,
    .page-register__final-cta-section,
    .page-register__container,
    .page-register__benefit-card,
    .page-register__step-card,
    .page-register__promo-card,
    .page-register__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 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;
        margin: 10px 0 !important; /* Stack buttons vertically */
    }

    .page-register__cta-buttons {
        flex-direction: column; /* Stack buttons in final CTA */
        gap: 10px;
    }

    .page-register__hero-content .page-register__btn-primary,
    .page-register__hero-content .page-register__btn-secondary {
        max-width: 250px !important; /* Limit width in hero for better appearance */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-register__verification-list {
        max-width: 100%;
        padding-left: 20px; /* Ensure list indentation is visible */
    }

    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__promo-grid {
        grid-template-columns: 1fr; /* Single column layout for cards */
    }
}