/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background if any section doesn't override */
}

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

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

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-register__hero-buttons,
.page-register__cta-bottom-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Spacing between buttons */
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-register__cta-button {
    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.2s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__cta-button--primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-register__cta-button--primary:hover {
    background-color: #1e87c0;
    transform: translateY(-2px);
}

.page-register__cta-button--secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-register__cta-button--secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    display: flex;
    align-items: center;
    min-height: 600px;
}

.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-section .page-register__container {
    position: relative;
    z-index: 2;
}

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

.page-register__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Form Section */
.page-register__form-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

.page-register__form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__registration-form {
    display: flex;
    flex-direction: column;
}

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

.page-register__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #f0f0f0;
}

.page-register__form-label--inline {
    display: inline;
}

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #3a3a3a;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-register__form-input:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

.page-register__form-group--checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.page-register__form-checkbox {
    margin-right: 10px;
    margin-top: 4px; /* Align checkbox with text */
}

.page-register__form-group--checkbox .page-register__form-label {
    margin-bottom: 0;
    color: #f0f0f0;
    font-weight: normal;
}

.page-register__form-group--checkbox a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-register__form-group--checkbox a:hover {
    text-decoration: underline;
}

.page-register__submit-button {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.page-register__submit-button:hover {
    background-color: #1e87c0;
    transform: translateY(-2px);
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-register__login-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
}

.page-register__dark-section {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-register__benefits-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-register__benefits-content {
    flex: 1;
}

.page-register__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-register__benefits-item {
    margin-bottom: 30px;
}

.page-register__benefits-heading {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-register__benefits-item p {
    color: #f0f0f0;
    font-size: 1em;
}

.page-register__benefits-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-register__benefits-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure it behaves as a block element for max-width */
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

.page-register__step-card {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-register__step-card:hover {
    transform: translateY(-5px);
}

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

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

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

.page-register__steps-image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-register__steps-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block;
    margin: 0 auto;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* Security Section */
.page-register__security-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

.page-register__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-direction: row-reverse; /* Image on right, text on left */
}

.page-register__security-text {
    flex: 1;
}

.page-register__security-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-register__security-item {
    background-color: #2a2a2a;
    color: #f0f0f0;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-register__security-item::before {
    content: '✅';
    margin-right: 15px;
    font-size: 1.2em;
    line-height: 1.5;
}

.page-register__security-item p {
    margin: 0;
}

.page-register__security-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-register__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

.page-register__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #3a3a3a;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-register__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

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

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

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

.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: 0;
    color: #f0f0f0;
}

/* Bottom CTA Section */
.page-register__cta-bottom {
    padding: 80px 0;
    text-align: center;
    background-color: #0a0a0a;
}

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

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }

    .page-register__hero-description {
        font-size: 1.2em;
    }

    .page-register__benefits-grid,
    .page-register__security-content {
        flex-direction: column;
    }

    .page-register__benefits-image-wrapper,
    .page-register__security-image-wrapper {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-register__hero-section {
        min-height: 450px;
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-register__hero-title {
        font-size: 2em;
    }

    .page-register__hero-description {
        font-size: 1em;
    }

    .page-register__hero-buttons,
    .page-register__cta-bottom-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    .page-register__cta-button {
        display: block;
        margin: 0 auto;
        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;
    }
}