/* style/register.css */

/* Custom properties for colors based on provided scheme */
:root {
    --page-register-primary-color: #11A84E; /* Main color */
    --page-register-secondary-color: #22C768; /* Auxiliary color */
    --page-register-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    --page-register-card-bg: #11271B; /* Card BG */
    --page-register-background: #08160F; /* Background */
    --page-register-text-main: #F2FFF6; /* Text Main */
    --page-register-text-secondary: #A7D9B8; /* Text Secondary */
    --page-register-border: #2E7A4E; /* Border */
    --page-register-glow: #57E38D; /* Glow */
    --page-register-gold: #F2C14E; /* Gold */
    --page-register-divider: #1E3A2A; /* Divider */
    --page-register-deep-green: #0A4B2C; /* Deep Green */
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-register {
    font-family: Arial, sans-serif;
    color: var(--page-register-text-main); /* Light text for dark background */
    background-color: var(--page-register-background); /* Explicit background for main content area if not covered by sections */
}

/* Container for consistent content width */
.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-register__section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--page-register-background); /* Default section background */
}

.page-register__section-title {
    font-size: clamp(28px, 4vw, 48px); /* H1 font size constraint applied here for H2s to be prominent but not too large */
    color: var(--page-register-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-register__section-intro {
    font-size: 18px;
    color: var(--page-register-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, not var(--header-offset) */
    background-color: var(--page-register-deep-green); /* Ensure a background for the section */
    overflow: hidden; /* To contain image if it's wider than content */
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for image container */
    margin-bottom: 30px; /* Space between image and content */
    display: flex;
    justify-content: center;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 1200px; /* Display width */
    height: 675px; /* Display height for 16:9 aspect ratio */
}

.page-register__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-register__main-title {
    font-size: clamp(36px, 5vw, 60px); /* H1 font size constraint */
    color: var(--page-register-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-register__description {
    font-size: 20px;
    color: var(--page-register-text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Buttons */
.page-register__btn-primary {
    display: inline-block;
    background: var(--page-register-button-gradient);
    color: var(--page-register-text-main); /* White text on dark button */
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Card styles */
.page-register__card {
    background-color: var(--page-register-card-bg); /* Dark card background */
    color: var(--page-register-text-main); /* Light text on card */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    height: 100%; /* Ensure cards in grid have same height */
    box-sizing: border-box;
    border: 1px solid var(--page-register-border);
}

.page-register__card-title {
    font-size: 24px;
    color: var(--page-register-text-main);
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-register__card-text {
    font-size: 16px;
    color: var(--page-register-text-secondary);
    line-height: 1.6;
}

/* Why Register Section */
.page-register__why-register {
    background-color: var(--page-register-background); /* Consistent dark background */
}

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

.page-register__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-height: 200px; /* Limit height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* How to Register Section */
.page-register__how-to-register {
    background-color: var(--page-register-deep-green); /* Darker background for contrast */
    padding-bottom: 80px;
}

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

.page-register__step-card {
    text-align: center;
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-register__step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--page-register-primary-color);
    color: var(--page-register-text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 3px solid var(--page-register-gold);
    box-shadow: 0 0 15px var(--page-register-glow);
}

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

/* Benefits Section */
.page-register__benefits {
    background-color: var(--page-register-background);
}

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

/* FAQ Section */
.page-register__faq-section {
    background-color: var(--page-register-deep-green);
    padding-bottom: 80px;
}

.page-register__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__faq-item {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--page-register-border);
    background-color: var(--page-register-card-bg); /* Dark card background */
    color: var(--page-register-text-main); /* Light text on card */
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: var(--page-register-text-main);
    background-color: var(--page-register-card-bg);
    transition: background-color 0.3s ease;
    user-select: none;
}

.page-register__faq-question:hover {
    background-color: rgba(var(--page-register-primary-color), 0.1);
}

.page-register__faq-item[open] .page-register__faq-question {
    background-color: rgba(var(--page-register-primary-color), 0.2);
}

.page-register__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-register-gold);
}

.page-register__faq-answer {
    padding: 0 30px 20px 30px;
    font-size: 16px;
    color: var(--page-register-text-secondary);
    line-height: 1.6;
    max-height: 0; /* For JS based accordion */
    overflow: hidden; /* For JS based accordion */
    transition: max-height 0.3s ease-out; /* For JS based accordion */
}

/* Native details element styling */
.page-register__faq-item details > summary {
    list-style: none; /* Hide default marker */
}

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

.page-register__faq-item[open] .page-register__faq-answer {
    max-height: 1000px; /* Adjust as needed for content, for JS based accordion */
    /* For native details, this transition will be handled by browser, 
       but having it here for consistency if JS fallback is used */
}

/* Final Call to Action Section */
.page-register__cta-section {
    background-color: var(--page-register-background);
    padding: 80px 0;
}

.page-register__cta-content {
    max-width: 800px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-register__hero-image {
        height: auto; /* Allow height to adjust naturally */
    }
}

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

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

    .page-register__section-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-register__main-title {
        font-size: 40px;
    }

    .page-register__description {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .page-register__hero-section {
        padding-bottom: 40px;
    }

    .page-register__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-register__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 0; /* Remove border-radius on mobile hero image */
    }

    /* All images must be 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__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-image-wrapper,
    .page-register__features-grid,
    .page-register__steps-grid,
    .page-register__benefits-grid,
    .page-register__faq-list,
    .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; /* Ensure no overflow */
    }

    /* Buttons responsive */
    .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: 15px 20px;
        font-size: 16px;
    }

    .page-register__cta-buttons,
    .page-register__button-group,
    .page-register__btn-container {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      overflow: hidden;
      display: flex; /* For potential multiple buttons */
      flex-direction: column; /* Stack buttons vertically */
      gap: 10px;
    }

    .page-register__step-card {
        padding-top: 40px;
    }

    .page-register__step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

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

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