/* style/register.css */
/* Base styles for the register page */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 20px; /* Adjust padding for content */
    text-align: center;
}

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

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

.page-register__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: #ffffff;
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFF00; /* Register/Login font color */
}

.page-register__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.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, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding/border included in width */
}

.page-register__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
    background-color: #a30606;
    transform: translateY(-3px);
}

.page-register__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808; /* Register/Login button color */
}

.page-register__btn-secondary:hover {
    background-color: #C30808;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Use body background for section */
}

.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: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    color: #ffffff;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-register__benefit-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.page-register__benefit-icon {
    width: 100%;
    height: 200px; /* Fixed height for consistent image display */
    object-fit: cover;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    display: block; /* Ensure block display for proper sizing */
}

.page-register__benefit-title {
    font-size: 1.6em;
    color: #FFFF00; /* Highlight title */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__benefit-description {
    font-size: 1em;
    color: #e0e0e0;
    flex-grow: 1; /* Allow description to take available space */
}

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color for dark section */
}

.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: rgba(0, 0, 0, 0.3); /* Dark background for steps */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-register__step-number {
    font-size: 3em;
    font-weight: bold;
    color: #FFFF00; /* Highlight step number */
    margin-bottom: 15px;
    line-height: 1;
}

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

.page-register__step-description {
    font-size: 1em;
    color: #e0e0e0;
    flex-grow: 1;
}

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

/* Promotion Section */
.page-register__promo-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Use body background for section */
}

.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: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.page-register__promo-image {
    width: 100%;
    height: 200px; /* Consistent image height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-register__promo-title {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-register__promo-description {
    font-size: 1em;
    color: #e0e0e0;
    flex-grow: 1;
}

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

/* Security Section */
.page-register__security-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color for dark section */
}

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

.page-register__security-image {
    flex: 1;
    min-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure block display for proper sizing */
}

.page-register__security-list {
    flex: 2;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-register__security-list li {
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-left: 5px solid #FFFF00; /* Highlight with yellow */
    border-radius: 8px;
    font-size: 1.1em;
    color: #ffffff;
}

.page-register__list-highlight {
    color: #FFFF00;
}

.page-register__security-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #e0e0e0;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Use body background for section */
}

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

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-register__faq-title {
    font-size: 1.3em;
    margin: 0;
    color: #ffffff;
    font-weight: bold;
}

.page-register__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    color: #FFFF00;
    transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg); /* Plus sign to X */
}

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

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

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

/* Final CTA Section */
.page-register__cta-final-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand primary color */
}

.page-register__btn-large {
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 3em;
    }
    .page-register__hero-description {
        font-size: 1.2em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-register {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-register__hero-section {
        min-height: 500px;
        padding: 80px 15px;
    }
    .page-register__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-register__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px 20px; /* Adjust padding for smaller screens */
    }

    .page-register__container {
        padding: 0 15px;
    }

    .page-register__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-register__section-intro {
        font-size: 0.95em;
        margin-bottom: 40px;
    }

    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__promo-section,
    .page-register__security-section,
    .page-register__faq-section,
    .page-register__cta-final-section {
        padding: 60px 0;
    }

    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-register__benefit-card,
    .page-register__step-card,
    .page-register__promo-card {
        padding: 25px;
    }
    .page-register__benefit-icon,
    .page-register__promo-image,
    .page-register__security-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__security-content {
        flex-direction: column;
        gap: 20px;
    }
}