/* style/register.css */

/* Base Styles for the Register Page */
.page-register {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#000000) */
    line-height: 1.6;
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-register__hero-image {
    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: 800px;
    padding: 20px;
}

.page-register__hero-title {
    font-size: 3.5em;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* General Section Styling */
.page-register__section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for sections */
    color: #ffffff;
}

.page-register__section:nth-of-type(even) {
    background-color: #0d0d0d; /* Slightly different dark background for alternating sections */
}

.page-register__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for section titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-register__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #8B0000; /* Dark red underline */
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-register__section-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
    color: #e0e0e0;
}

.page-register__highlight {
    color: #FFD700; /* Gold for highlights */
    font-weight: bold;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't increase total width */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-register__btn-primary {
    background-color: #FFD700; /* Gold background */
    color: #000000; /* Black text for contrast */
    border: 2px solid #FFD700;
    margin: 10px;
}

.page-register__btn-primary:hover {
    background-color: transparent;
    color: #FFD700;
    border-color: #FFD700;
}

.page-register__btn-secondary {
    background-color: #8B0000; /* Dark red background */
    color: #ffffff; /* White text for contrast */
    border: 2px solid #8B0000;
    margin: 10px;
}

.page-register__btn-secondary:hover {
    background-color: transparent;
    color: #8B0000;
    border-color: #8B0000;
}

/* Intro Benefits Section */
.page-register__intro-benefits .page-register__section-text {
    margin-bottom: 50px;
}

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

.page-register__benefit-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-register__benefit-icon {
    width: 200px; /* Minimum size requirement */
    height: 150px; /* Minimum size requirement */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px; /* Slightly rounded corners for images */
}

.page-register__benefit-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-register__benefit-description {
    color: #e0e0e0;
    font-size: 1em;
}

/* Registration Guide Section */
.page-register__registration-guide .page-register__section-text {
    margin-bottom: 50px;
}

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

.page-register__step-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: #FFD700; /* Gold number background */
    color: #000000; /* Black text for contrast */
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

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

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

.page-register__step-description a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-register__step-description a:hover {
    text-decoration: underline;
}

.page-register__note-section {
    background-color: rgba(139, 0, 0, 0.2); /* Semi-transparent dark red background */
    border-left: 5px solid #8B0000;
    padding: 25px;
    margin-top: 50px;
    border-radius: 5px;
    color: #f0f0f0;
}

.page-register__note-title {
    font-size: 1.3em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-register__note-list {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
}

.page-register__note-list li {
    margin-bottom: 10px;
    font-size: 1em;
}

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

.page-register__promo-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-register__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
}

.page-register__promo-card > div { /* Inner content padding */
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-register__promo-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 15px;
}

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

.page-register__promo-card .page-register__btn-primary {
    margin-top: auto; /* Push button to bottom */
    width: calc(100% - 20px); /* Adjust for margin */
    align-self: center;
}

.page-register__disclaimer {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 40px;
}

/* Security and Support Section */
.page-register__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-register__feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-register__feature-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-register__feature-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-register__feature-description {
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 20px;
}

.page-register__feature-link {
    color: #8B0000; /* Dark red link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-register__feature-link:hover {
    color: #FFD700; /* Gold on hover */
    text-decoration: underline;
}

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

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #8B0000; /* Dark red background for question */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: #a00000; /* Slightly lighter red on hover */
}

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

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

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'X' or 'minus' */
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: rgba(255, 255, 255, 0.02); /* Very subtle dark background for answer */
    color: #e0e0e0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-register__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1em;
    color: #e0e0e0;
}

/* CTA Bottom Section */
.page-register__cta-bottom {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Gradient background */
    color: #ffffff;
}

.page-register__cta-bottom .page-register__section-title {
    color: #ffffff; /* White title on gradient background */
}

.page-register__cta-bottom .page-register__section-title::after {
    background-color: #ffffff; /* White underline */
}

.page-register__cta-bottom .page-register__section-text {
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

.page-register__cta-buttons .page-register__btn-primary {
    background-color: #000000; /* Black button on gradient */
    color: #FFD700;
    border-color: #000000;
}

.page-register__cta-buttons .page-register__btn-primary:hover {
    background-color: transparent;
    color: #000000;
    border-color: #000000;
}

.page-register__cta-buttons .page-register__btn-secondary {
    background-color: #FFD700; /* Gold button on gradient */
    color: #000000;
    border-color: #FFD700;
}

.page-register__cta-buttons .page-register__btn-secondary:hover {
    background-color: transparent;
    color: #FFD700;
    border-color: #FFD700;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__benefit-title,
    .page-register__step-title,
    .page-register__promo-title,
    .page-register__feature-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-register__hero-title {
        font-size: 2em;
        line-height: 1.2;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__section {
        padding: 60px 0;
    }
    .page-register__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-register__section-text {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 5px 0 !important; /* Adjust margin for full width */
    }
    .page-register__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
    }

    /* Images 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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    /* Ensure content images are not too small */
    .page-register__benefit-icon,
    .page-register__promo-image {
        min-width: 200px !important;
        min-height: 150px !important;
        width: 100% !important; /* Override fixed height if it's smaller than min-height */
        height: auto !important;
    }
    .page-register__hero-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .page-register__faq-question {
        padding: 15px 20px;
    }
    .page-register__faq-title {
        font-size: 1.1em;
    }
    .page-register__faq-answer {
        padding: 0 20px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px 20px;
    }
    .page-register__note-section {
        padding: 20px;
    }
    .page-register__note-title {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .page-register__hero-section {
        height: 400px;
    }
    .page-register__hero-title {
        font-size: 1.8em;
    }
    .page-register__hero-description {
        font-size: 0.9em;
    }
    .page-register__section-title {
        font-size: 1.6em;
    }
    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__promo-grid,
    .page-register__feature-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .page-register__cta-bottom {
        padding: 60px 0;
    }
}