/* style/register.css */

/* Custom properties for colors */
:root {
    --rr8811-primary-color: #11A84E;
    --rr8811-secondary-color: #22C768;
    --rr8811-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --rr8811-card-bg: #11271B;
    --rr8811-background: #08160F;
    --rr8811-text-main: #F2FFF6;
    --rr8811-text-secondary: #A7D9B8;
    --rr8811-border: #2E7A4E;
    --rr8811-glow: #57E38D;
    --rr8811-gold: #F2C14E;
    --rr8811-divider: #1E3A2A;
    --rr8811-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-register {
    font-family: Arial, sans-serif;
    color: var(--rr8811-text-main); /* Light text for dark background */
    background-color: var(--rr8811-background); /* Ensure consistent background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%; /* Ensure full width for desktop */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

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

.page-register__hero-content {
    position: relative; /* Ensure content is above any potential background overlaps */
    z-index: 1;
    max-width: 800px;
    margin-top: -80px; /* Pull content up slightly over the image for better flow */
    padding: 30px;
    background: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-register__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
    color: var(--rr8811-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-register__description {
    font-size: 1.1rem;
    color: var(--rr8811-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-register__btn-primary {
    background: var(--rr8811-button-gradient);
    color: #ffffff;
    border: 2px solid var(--rr8811-glow);
}

.page-register__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
    transform: translateY(-2px);
}

.page-register__btn-secondary {
    background: transparent;
    color: var(--rr8811-glow);
    border: 2px solid var(--rr8811-glow);
}

.page-register__btn-secondary:hover {
    background: var(--rr8811-glow);
    color: var(--rr8811-background);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
    transform: translateY(-2px);
}

/* Section Titles */
.page-register__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--rr8811-gold);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-register__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--rr8811-gold);
    border-radius: 2px;
}

.page-register__text-block {
    font-size: 1rem;
    color: var(--rr8811-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Form Section */
.page-register__form-section {
    padding: 80px 0;
    background-color: var(--rr8811-card-bg); /* Darker background for this section */
    border-top: 1px solid var(--rr8811-divider);
    border-bottom: 1px solid var(--rr8811-divider);
}

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

.page-register__step-card {
    background: rgba(0, 0, 0, 0.3); /* Slightly transparent black for card */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--rr8811-border);
    transition: transform 0.3s ease;
}

.page-register__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-register__step-icon {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-register__step-title {
    font-size: 1.5rem;
    color: var(--rr8811-gold);
    margin-bottom: 15px;
}

.page-register__step-description {
    font-size: 0.95rem;
    color: var(--rr8811-text-secondary);
}

.page-register__cta-buttons--center {
    margin-top: 60px;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: var(--rr8811-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: var(--rr8811-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--rr8811-border);
    transition: transform 0.3s ease;
    color: var(--rr8811-text-main); /* Ensure light text on dark card background */
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-register__benefit-icon {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-register__benefit-title {
    font-size: 1.4rem;
    color: var(--rr8811-gold);
    margin-bottom: 15px;
}

.page-register__benefit-description {
    font-size: 0.95rem;
    color: var(--rr8811-text-secondary);
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: var(--rr8811-card-bg);
    border-top: 1px solid var(--rr8811-divider);
}

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

.page-register__faq-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--rr8811-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-register__faq-item[open] {
    background: rgba(0, 0, 0, 0.4);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--rr8811-text-main);
    cursor: pointer;
    background: var(--rr8811-deep-green);
    border-radius: 8px; /* For summary, ensure it's rounded */
    transition: background-color 0.3s ease;
}

.page-register__faq-item[open] > .page-register__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-register__faq-question:hover {
    background-color: var(--rr8811-primary-color);
}

.page-register__faq-question::-webkit-details-marker {
    display: none;
}

.page-register__faq-question::marker {
    display: none;
}

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

.page-register__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    color: var(--rr8811-gold);
}

.page-register__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--rr8811-text-secondary);
    border-top: 1px solid var(--rr8811-divider);
}

/* Bottom CTA Section */
.page-register__cta-bottom {
    padding: 80px 0;
    text-align: center;
    background-color: var(--rr8811-deep-green);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__hero-content {
        margin-top: -60px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }

    .page-register__hero-image-wrapper {
        margin-bottom: 30px;
        max-height: 350px;
    }
    
    .page-register__hero-content {
        margin-top: -40px;
        padding: 20px;
    }

    .page-register__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-register__description {
        font-size: 1rem;
    }

    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-register__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 25px;
    }

    .page-register__text-block {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

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

    .page-register__registration-steps,
    .page-register__benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

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

    .page-register__faq-question {
        font-size: 1rem;
        padding: 18px 20px;
    }

    .page-register__faq-answer {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    /* Mobile image and video responsive rules */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of their container */
        height: auto !important;
        display: block !important;
    }

    .page-register video,
    .page-register__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper,
    .page-register__cta-buttons,
    .page-register__button-group,
    .page-register__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-register__hero-section .page-register__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-register__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-register__hero-content {
        margin-top: -20px;
        padding: 15px;
    }
    .page-register__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .page-register__description {
        font-size: 0.9rem;
    }
    .page-register__section-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }
}