/* style/register.css */
/* Main page styling */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* Light background for the page */
}

/* Fixed header offset */
.page-register {
    padding-top: var(--header-offset, 120px);
}

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

/* Section titles and descriptions */
.page-register__section-title {
    font-size: 36px;
    color: #0A2342;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0A2342, #1A3B66); /* Darker gradient for hero background */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-register__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above image */
}

.page-register__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #ffffff; /* White text for dark background */
}

.page-register__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #E5B258; /* Gold color for title */
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: #f0f0f0; /* Light grey for description */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: #E5B258; /* Auxiliary color for CTA */
    color: #0A2342; /* Dark text for auxiliary background */
    text-decoration: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(229, 178, 88, 0.4);
    border: none;
    cursor: pointer;
}

.page-register__cta-button:hover {
    background: #FFC966;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 178, 88, 0.6);
}

/* Form Section */
.page-register__form-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-register__registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-register__form-group {
    margin-bottom: 25px;
}

.page-register__form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #0A2342;
}

.page-register__form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-register__form-input::placeholder {
    color: #999999;
}

.page-register__form-input:focus {
    border-color: #E5B258;
    box-shadow: 0 0 0 3px rgba(229, 178, 88, 0.3);
    outline: none;
}

.page-register__verification-input-group {
    display: flex;
    gap: 10px;
}

.page-register__verification-input-group .page-register__form-input {
    flex-grow: 1;
}

.page-register__send-code-button {
    padding: 14px 20px;
    background: #0A2342;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.page-register__send-code-button:hover {
    background: #1A3B66;
}

.page-register__form-checkbox {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #555555;
}

.page-register__form-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #E5B258; /* Highlight checkbox with auxiliary color */
}

.page-register__terms-link {
    color: #0A2342;
    text-decoration: none;
    font-weight: 600;
}

.page-register__terms-link:hover {
    text-decoration: underline;
    color: #E5B258;
}

.page-register__submit-button {
    width: 100%;
    padding: 16px;
    background: #E5B258;
    color: #0A2342;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(229, 178, 88, 0.3);
}

.page-register__submit-button:hover {
    background: #FFC966;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 178, 88, 0.5);
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 25px;
    font-size: 16px;
    color: #555555;
}

.page-register__login-link {
    color: #0A2342;
    text-decoration: none;
    font-weight: 600;
}

.page-register__login-link:hover {
    text-decoration: underline;
    color: #E5B258;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #0A2342; /* Dark background */
    color: #ffffff; /* White text for dark background */
}

.page-register__benefits-section .page-register__section-title {
    color: #E5B258; /* Gold title for dark section */
}

.page-register__benefits-section .page-register__section-description {
    color: #f0f0f0;
}

.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: #1A3B66; /* Slightly lighter dark background for cards */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-register__benefit-card img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
}

.page-register__benefit-title {
    font-size: 24px;
    font-weight: bold;
    color: #E5B258;
    margin-bottom: 15px;
}

.page-register__benefit-text {
    font-size: 16px;
    color: #cccccc;
    flex-grow: 1; /* Ensure text takes up available space */
}

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333; /* Dark text */
}

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

.page-register__step-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.page-register__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #E5B258;
    color: #0A2342;
    border-radius: 50%;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(229, 178, 88, 0.4);
}

.page-register__step-title {
    font-size: 24px;
    font-weight: bold;
    color: #0A2342;
    margin-bottom: 15px;
}

.page-register__step-text {
    font-size: 16px;
    color: #555555;
}

.page-register__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid;
    box-sizing: border-box; /* Crucial for max-width 100% */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-register__btn-primary {
    background: #0A2342;
    color: #ffffff;
    border-color: #0A2342;
    box-shadow: 0 4px 10px rgba(10, 35, 66, 0.3);
}

.page-register__btn-primary:hover {
    background: #1A3B66;
    border-color: #1A3B66;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(10, 35, 66, 0.4);
}

.page-register__btn-secondary {
    background: transparent;
    color: #0A2342;
    border-color: #0A2342;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-register__btn-secondary:hover {
    background: #0A2342;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #0A2342; /* Dark background */
    color: #ffffff; /* White text */
}

.page-register__faq-section .page-register__section-title {
    color: #E5B258;
}

.page-register__faq-section .page-register__section-description {
    color: #f0f0f0;
}

.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: #1A3B66; /* Darker background for FAQ items */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px; /* Adjusted padding for consistency */
    opacity: 0;
    color: #cccccc;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important; /* Adjusted padding for consistency */
    opacity: 1;
    background: #1A3B66; /* Keep background consistent when active */
    border-radius: 0 0 5px 5px;
}

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #2A4C7A; /* Slightly lighter dark background for question */
    border: 1px solid #3A5C8A;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-register__faq-question:hover {
    background: #3A5C8A;
    border-color: #4A6C9A;
}

.page-register__faq-question:active {
    background: #4A6C9A;
}

.page-register__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #E5B258; /* Gold color for FAQ question */
}

.page-register__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #E5B258;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-register__faq-item.active .page-register__faq-toggle {
    color: #ffffff; /* White when active */
    transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

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

.page-register__cta-final-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Copyright */
.page-register__copyright {
    text-align: center;
    padding: 30px 20px;
    background-color: #0A2342;
    color: #cccccc;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 40px;
    }
    .page-register__hero-description {
        font-size: 18px;
    }
    .page-register__cta-button {
        padding: 15px 35px;
        font-size: 20px;
    }
    .page-register__section-title {
        font-size: 32px;
    }
    .page-register__section-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-register {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is correct */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-register__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-register__hero-section {
        padding: 40px 15px;
    }
    .page-register__hero-title {
        font-size: 30px;
    }
    .page-register__hero-description {
        font-size: 16px;
    }
    .page-register__cta-button {
        padding: 12px 30px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Form Section */
    .page-register__form-section {
        padding: 40px 0;
    }
    .page-register__registration-form {
        padding: 25px;
    }
    .page-register__form-label {
        font-size: 15px;
    }
    .page-register__form-input,
    .page-register__send-code-button {
        padding: 12px 15px;
        font-size: 15px;
    }
    .page-register__submit-button {
        padding: 14px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-register__login-prompt,
    .page-register__form-checkbox {
        font-size: 14px;
    }

    /* Benefits Section */
    .page-register__benefits-section {
        padding: 40px 0;
    }
    .page-register__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-register__benefit-card {
        padding: 25px;
    }
    .page-register__benefit-card img {
        max-width: 250px;
    }
    .page-register__benefit-title {
        font-size: 20px;
    }
    .page-register__benefit-text {
        font-size: 15px;
    }

    /* Steps Section */
    .page-register__steps-section {
        padding: 40px 0;
    }
    .page-register__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-register__step-item {
        padding: 25px;
    }
    .page-register__step-number {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    .page-register__step-title {
        font-size: 20px;
    }
    .page-register__step-text {
        font-size: 15px;
    }
    .page-register__button-group {
        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;
        padding: 12px 25px;
        font-size: 16px;
    }

    /* FAQ Section */
    .page-register__faq-section {
        padding: 40px 0;
    }
    .page-register__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-register__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px); /* Adjust width to make space for toggle */
    }
    .page-register__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px !important;
    }

    /* Final CTA Section */
    .page-register__cta-final-section {
        padding: 40px 15px;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .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;
    }
}

/* Global image styles to prevent small icons */
.page-register img {
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
    object-fit: cover;
}