/* style/register.css */
/* Base styles for the register page */
.page-register {
    font-family: Arial, sans-serif;
    background-color: #08160F; /* Custom Background */
    color: #F2FFF6; /* Custom Text Main */
    line-height: 1.6;
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
    background: #08160F; /* Custom Background */
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Enforce min size */
}

.page-register__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-register__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    font-weight: 700;
    margin-bottom: 20px;
    color: #F2FFF6; /* Custom Text Main */
    line-height: 1.2;
}

.page-register__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #A7D9B8; /* Custom Text Secondary */
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit max width for buttons group */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-register__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
    color: #F2FFF6; /* Custom Text Main */
    border: 2px solid transparent;
}

.page-register__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px #57E38D; /* Custom Glow */
}

.page-register__btn-secondary {
    background: transparent;
    color: #F2FFF6; /* Custom Text Main */
    border: 2px solid #2E7A4E; /* Custom Border */
}

.page-register__btn-secondary:hover {
    background-color: rgba(46, 122, 78, 0.2); /* #2E7A4E with transparency */
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.5); /* Custom Glow with transparency */
}

/* Section titles and descriptions */
.page-register__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #F2FFF6; /* Custom Text Main */
}

.page-register__section-title--light {
    color: #F2FFF6; /* Custom Text Main */
}

.page-register__section-description {
    font-size: 1.05em;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #A7D9B8; /* Custom Text Secondary */
}

.page-register__section-description--light {
    color: #A7D9B8; /* Custom Text Secondary */
}

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
    background-color: #08160F; /* Custom Background */
}

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

.page-register__step-item {
    background-color: #11271B; /* Custom Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Custom Border */
}

.page-register__step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

.page-register__step-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #F2FFF6; /* Custom Text Main */
}

.page-register__step-text {
    font-size: 1em;
    color: #A7D9B8; /* Custom Text Secondary */
}

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

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Custom Deep Green */
    color: #F2FFF6; /* Custom Text Main */
}

.page-register__dark-section {
    background-color: #0A4B2C; /* Custom Deep Green */
    color: #F2FFF6; /* Custom Text Main */
}

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

.page-register__benefit-card {
    background-color: rgba(17, 39, 27, 0.7); /* Custom Card BG with transparency */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Custom Border */
    text-align: center;
}

.page-register__benefit-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #F2FFF6; /* Custom Text Main */
}

.page-register__benefit-text {
    font-size: 0.95em;
    color: #A7D9B8; /* Custom Text Secondary */
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #08160F; /* Custom Background */
}

.page-register__faq-list {
    margin-top: 40px;
}

.page-register__faq-item {
    background-color: #11271B; /* Custom Card BG */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2E7A4E; /* Custom Border */
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #F2FFF6; /* Custom Text Main */
    cursor: pointer;
    background-color: #11271B; /* Custom Card BG */
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: rgba(17, 39, 27, 0.8);
}

.page-register__faq-item[open] .page-register__faq-question {
    background-color: #0A4B2C; /* Custom Deep Green */
}

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

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Custom Glow */
}

.page-register__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Custom Text Secondary */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-register__faq-item[open] .page-register__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__hero-section {
        padding-bottom: 40px;
    }
    .page-register__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-register__section-title {
        font-size: clamp(1.8em, 4vw, 2.2em);
    }
    .page-register__step-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-register__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .page-register__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }
    
    .page-register__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-register__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: wrap !important;
    }

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

    .page-register__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
        margin-bottom: 15px;
    }

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

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

    .page-register__step-list,
    .page-register__benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .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-item,
    .page-register__benefit-card,
    .page-register__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-register__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-register__faq-answer {
        padding: 0 20px 15px;
    }
}