/* style/register.css */

/* Base styles for the register page */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #017439; /* Brand primary color for dark background */
    color: #ffffff; /* White text for dark background */
}

.page-register__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2; /* Slightly transparent overlay for text readability */
}

.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

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

.page-register__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
}

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

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

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

.page-register__btn-secondary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

/* General Section Styles */
.page-register__steps-section,
.page-register__benefits-section,
.page-register__faq-section,
.page-register__cta-bottom-section {
    padding: 80px 0;
}

.page-register__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-register__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section for contrast */
}

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: inherit; /* Inherit color from parent section for contrast */
}

/* Steps Section */
.page-register__step-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__step-card--reverse {
    flex-direction: row-reverse;
}

.page-register__step-image {
    flex: 0 0 40%;
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-register__step-content {
    flex: 1;
    text-align: left;
}

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

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

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

.page-register__benefit-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-register__benefit-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 50%; /* Make icons circular if desired */
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
}

.page-register__benefit-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFFF00; /* Custom font color for highlights */
}

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

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.3s ease;
}

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

.page-register__faq-question h3 {
    margin: 0;
    font-size: 1.15em;
    color: #017439;
}

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

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg);
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
}

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

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

/* CTA Bottom Section */
.page-register__cta-bottom-section {
    text-align: center;
}

.page-register__cta-bottom-section .page-register__btn-primary {
    margin-top: 30px;
}

/* --- Responsive Design --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 2.2em;
    }

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

    .page-register__step-card {
        flex-direction: column;
        text-align: center;
    }

    .page-register__step-card--reverse {
        flex-direction: column; /* Keep consistent for tablet */
    }

    .page-register__step-image {
        max-width: 60%;
        margin-bottom: 20px;
    }

    .page-register__benefit-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-register__hero-section {
        padding: 40px 15px;
        min-height: 450px;
    }

    .page-register__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-register__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin-left: auto;
        margin-right: auto;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-register__steps-section,
    .page-register__benefits-section,
    .page-register__faq-section,
    .page-register__cta-bottom-section {
        padding: 50px 0;
    }

    .page-register__section-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .page-register__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-register__step-card {
        padding: 20px;
        margin-bottom: 40px;
    }

    .page-register__step-image {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }

    .page-register__step-title {
        font-size: 1.4em;
    }

    .page-register__benefit-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
    }

    .page-register__benefit-card {
        padding: 25px;
    }

    .page-register__faq-question {
        padding: 15px 20px;
    }

    .page-register__faq-question h3 {
        font-size: 1em;
    }

    .page-register__faq-answer {
        padding: 0 20px;
    }

    .page-register__faq-item.active .page-register__faq-answer {
        padding: 10px 20px;
    }

    /* Mobile image responsiveness */
    .page-register img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__step-card,
    .page-register__benefit-card,
    .page-register__faq-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px; /* Add padding to content containers */
      padding-right: 15px;
    }

    /* Video section padding adjustment if present (not in this page, but as per general rule) */
    .page-register__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}