/* style/register.css */

/* Base styles for the register page */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000; /* Ensure consistency with body background */
}

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

.page-register__section-title.page-register__dark-bg-title {
    color: #FFCC00;
}

.page-register__section-title.page-register__light-bg-title {
    color: #003366;
}

.page-register__dark-bg {
    background-color: #003366;
    color: #ffffff;
}

.page-register__light-bg {
    background-color: #f0f2f5;
    color: #333333;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    text-align: center;
    overflow: hidden;
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

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

.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, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-register__btn-primary {
    background-color: #FFCC00;
    color: #003366;
    border: 2px solid #FFCC00;
}

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

.page-register__btn-secondary {
    background-color: transparent;
    color: #003366;
    border: 2px solid #003366;
}

.page-register__btn-secondary:hover {
    background-color: #003366;
    color: #ffffff;
}

.page-register__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    overflow: hidden;
}

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Why Register Section */
.page-register__why-register {
    padding: 80px 20px;
    text-align: center;
}

.page-register__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-register__feature-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-register__feature-item:hover {
    transform: translateY(-10px);
}

.page-register__feature-icon {
    width: 100%; /* Ensure images take full width of their container */
    height: auto;
    max-width: 250px; /* Adjust max-width to fit within card */
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-register__feature-title {
    font-size: 1.5em;
    color: #003366;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Steps Section */
.page-register__steps {
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

.page-register__steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

.page-register__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__step-number {
    background-color: #FFCC00;
    color: #003366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

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

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

.page-register__steps-image-wrapper {
    max-width: 1000px;
    margin: 50px auto 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__steps-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Security Section */
.page-register__security {
    padding: 80px 20px;
    text-align: center;
}

.page-register__security-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.page-register__security-image {
    flex: 1 1 400px;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.page-register__security-text {
    flex: 1 1 400px;
    text-align: left;
    color: #333333;
}

.page-register__security-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* Promotions Section */
.page-register__promotions {
    padding: 80px 20px;
    text-align: center;
}

.page-register__promotion-card {
    display: flex;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    align-items: center;
}

.page-register__promotion-image {
    flex: 1 1 500px;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-register__promotion-details {
    flex: 1 1 400px;
    padding: 40px;
    text-align: left;
    color: #ffffff;
}

.page-register__promotion-title {
    font-size: 2em;
    color: #FFCC00;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__promotion-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 20px;
    text-align: center;
}

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

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    color: #003366;
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: #e6e6e6;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    color: #FFCC00;
    transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg);
}

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

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px 25px;
}

/* Final CTA Section */
.page-register__cta-final {
    padding: 80px 20px;
    text-align: center;
}

.page-register__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 3em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__promotion-card {
        flex-direction: column;
    }
    .page-register__promotion-image {
        flex: none;
        width: 100%;
    }
    .page-register__promotion-details {
        flex: none;
        width: 100%;
        padding: 30px;
    }
    .page-register__security-content {
        flex-direction: column;
    }
    .page-register__security-image {
        max-width: 100%;
    }
    .page-register__security-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-register__hero-section {
        min-height: 60vh;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-register__hero-title {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register a[class*="button"],
    .page-register a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__features-grid,
    .page-register__steps-container {
        grid-template-columns: 1fr;
    }
    .page-register__feature-item,
    .page-register__step-item,
    .page-register__promotion-card {
        padding: 20px;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-register__faq-answer {
        padding: 0 20px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__hero-image-wrapper,
    .page-register__steps-image-wrapper,
    .page-register__security-image,
    .page-register__promotion-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Ensure content containers also adapt */
    .page-register__section,
    .page-register__container,
    .page-register__hero-content,
    .page-register__features-grid,
    .page-register__steps-container,
    .page-register__security-content,
    .page-register__promotion-card,
    .page-register__faq-list,
    .page-register__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 1.8em;
    }
    .page-register__hero-description {
        font-size: 0.9em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-register__feature-title {
        font-size: 1.3em;
    }
    .page-register__step-title {
        font-size: 1.2em;
    }
    .page-register__promotion-title {
        font-size: 1.6em;
    }
}