/* style/register.css */

/* Base Styles */
.page-register {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Matches body background for consistency */
}

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

.page-register__section-title {
    font-size: 3em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-register__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Buttons */
.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

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

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

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

.page-register__btn-secondary:hover {
    background-color: #FFD700;
    color: #000080;
}

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

.page-register__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
}

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

.page-register__main-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: #FFD700;
    line-height: 1.1;
    font-weight: bold;
}

.page-register__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-register__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Form Section */
.page-register__form-section {
    padding: 80px 0;
    background-color: #000080; /* Auxiliary color for a distinct section */
    color: #ffffff;
}

.page-register__form-section .page-register__container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-register__form-wrapper {
    flex: 1;
}

.page-register__registration-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
}

.page-register__form-group {
    display: flex;
    flex-direction: column;
}

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

.page-register__form-input,
.page-register__form-select {
    padding: 12px;
    border: 1px solid #FFD700;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-register__form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-register__form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD700'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.page-register__form-checkbox {
    margin-right: 10px;
}

.page-register__checkbox-group {
    flex-direction: row;
    align-items: center;
    font-size: 0.9em;
}

.page-register__form-link {
    color: #FFD700;
    text-decoration: underline;
}

.page-register__form-link:hover {
    color: #ffffff;
}

.page-register__submit-button {
    margin-top: 20px;
    padding: 15px 25px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    background-color: #FFD700;
    color: #000080;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-register__submit-button:hover {
    background-color: #e0b800;
}

.page-register__form-illustration-wrapper {
    flex: 1;
    text-align: center;
}

.page-register__form-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__illustration-caption {
    margin-top: 20px;
    font-style: italic;
    color: #f0f0f0;
    font-size: 0.95em;
}

.page-register__form-footer-text {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #f0f0f0;
}

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

.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-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 450px;
}

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

.page-register__benefit-icon {
    width: 100%; /* Ensure large image */
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-register__card-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__card-text {
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Why Choose Us Section */
.page-register__why-choose-us {
    padding: 80px 0;
    background-color: #000080;
    color: #ffffff;
}

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

.page-register__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 250px;
}

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

.page-register__feature-text {
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 15px;
}

.page-register__feature-link {
    color: #FFD700;
    text-decoration: underline;
    font-weight: bold;
    font-size: 0.95em;
}

.page-register__feature-link:hover {
    color: #ffffff;
}

.page-register__why-choose-us-image {
    display: block;
    max-width: 80%;
    height: auto;
    margin: 50px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* CTA Banner */
.page-register__cta-banner {
    padding: 60px 20px;
    text-align: center;
    background-color: #FFD700;
    color: #000080;
}

.page-register__banner-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #000080;
    font-weight: bold;
}

.page-register__banner-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #333333;
    line-height: 1.6;
}

.page-register__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-register__cta-banner .page-register__btn-primary {
    background-color: #000080;
    color: #FFD700;
    border-color: #000080;
}

.page-register__cta-banner .page-register__btn-primary:hover {
    background-color: #000050;
    border-color: #000050;
    color: #FFD700;
}

.page-register__cta-banner .page-register__btn-secondary {
    background-color: transparent;
    color: #000080;
    border-color: #000080;
}

.page-register__cta-banner .page-register__btn-secondary:hover {
    background-color: #000080;
    color: #FFD700;
}

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

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

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.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-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFD700;
    font-weight: bold;
}

.page-register__faq-toggle {
    font-size: 1.8em;
    color: #FFD700;
    font-weight: bold;
    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: #f0f0f0;
    line-height: 1.6;
}

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

.page-register__faq-answer p {
    margin: 0 0 15px 0;
    color: #f0f0f0;
}

.page-register__faq-link {
    color: #FFD700;
    text-decoration: underline;
}

.page-register__faq-link:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 3em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 2.5em;
    }
    .page-register__form-section .page-register__container {
        flex-direction: column;
    }
    .page-register__form-illustration-wrapper {
        margin-top: 40px;
    }
    .page-register__why-choose-us-image {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        min-height: 60vh;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-register__hero-content {
        padding: 0 15px;
    }
    .page-register__main-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    .page-register__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-register__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__cta-button {
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-register__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__why-choose-us,
    .page-register__cta-banner,
    .page-register__faq-section {
        padding: 50px 0;
    }
    .page-register__container {
        padding: 0 15px;
    }
    .page-register__benefits-grid,
    .page-register__features-grid {
        grid-template-columns: 1fr;
    }
    .page-register__benefit-card,
    .page-register__feature-item {
        min-height: auto;
    }
    .page-register__banner-title {
        font-size: 2em;
    }
    .page-register__banner-description {
        font-size: 1em;
    }
    .page-register__faq-question h3 {
        font-size: 1.1em;
    }
    .page-register__faq-answer p {
        font-size: 0.95em;
    }

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

    .page-register__hero-image,
    .page-register__form-illustration,
    .page-register__benefit-icon,
    .page-register__why-choose-us-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__form-section .page-register__container,
    .page-register__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-register__cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: 2em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__banner-title {
        font-size: 1.8em;
    }
    .page-register__faq-question h3 {
        font-size: 1em;
    }
}