/* style/register.css */

/* Base styles for the register page */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Light text for dark background */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-register__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #017439, #005f2f); /* Brand color gradient */
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    justify-content: center;
}

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

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

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

.page-register__hero-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.page-register__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15; /* Subtly blend background image */
}

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

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

.page-register__dark-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-register__form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-register__form-wrapper {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.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-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-register__form-input:focus {
    outline: none;
    border-color: #017439;
    box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.4);
}

.page-register__checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.page-register__form-checkbox {
    margin-right: 10px;
    accent-color: #017439; /* Checkbox color */
}

.page-register__form-label a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-register__form-label a:hover {
    color: #00a04e;
    text-decoration: underline;
}

.page-register__submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.page-register__form-image-wrapper {
    text-align: center;
}

.page-register__form-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

.page-register__image-caption {
    margin-top: 20px;
    font-size: 0.95em;
    color: #ccc;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-description {
    color: #333333;
}

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

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

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

.page-register__benefit-icon {
    width: 100%;
    max-width: 250px; /* Ensure minimum 200px width */
    height: auto;
    min-height: 200px; /* Ensure minimum 200px height */
    object-fit: cover; /* Maintain aspect ratio */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

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

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

.page-register__text-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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

.page-register__cta-wrapper {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: #017439;
    border-radius: 12px;
    color: #ffffff;
}

.page-register__cta-text {
    font-size: 1.5em;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    background-color: #C30808; /* Custom button color */
    color: #ffffff; /* Overriding #FFFF00 for contrast */
}

.page-register__cta-button:hover {
    background-color: #a30606;
    transform: translateY(-3px);
}

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

.page-register__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Make it clickable over video controls */
    cursor: pointer;
    background: transparent;
}

.page-register__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.page-register__video-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-register__faq-section .page-register__section-title,
.page-register__faq-section .page-register__section-description {
    color: #333333;
}

.page-register__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-register__faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-register__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333333;
    font-weight: bold;
}

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

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

.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; /* Sufficiently large */
    padding: 20px 25px;
}

.page-register__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some space at the bottom */
}

/* Floating Buttons */
.page-register__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.page-register__floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 50px;
    background-color: #C30808; /* Custom color for register/login buttons */
    color: #ffffff; /* Overriding #FFFF00 for contrast */
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-register__floating-btn:hover {
    background-color: #a30606;
    transform: translateY(-3px);
}

/* Button primary/secondary styles (as per color contrast rules) */
.page-register__btn-primary {
    background: #017439;
    color: #ffffff;
    border: 2px solid transparent;
}
.page-register__btn-primary:hover {
    background: #005f2f;
}

.page-register__btn-secondary {
    background: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}
.page-register__btn-secondary:hover {
    background: #f0f0f0;
}

/* Specific styling for the custom colored buttons, overriding general primary/secondary if needed */
.page-register__hero-button.page-register__btn-primary,
.page-register__submit-button.page-register__btn-primary {
    background-color: #C30808; /* Apply custom color */
    color: #ffffff; /* Ensure contrast */
}
.page-register__hero-button.page-register__btn-primary:hover,
.page-register__submit-button.page-register__btn-primary:hover {
    background-color: #a30606;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }
    .page-register__form-layout {
        grid-template-columns: 1fr;
    }
    .page-register__form-image-wrapper {
        order: -1; /* Image above form on smaller screens */
    }
}

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

    .page-register__hero-title {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-description {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__hero-image-wrapper,
    .page-register__form-image-wrapper,
    .page-register__benefits-section,
    .page-register__video-section,
    .page-register__faq-section,
    .page-register__container,
    .page-register__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-register__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }
    .page-register__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons responsiveness */
    .page-register__hero-button,
    .page-register__submit-button,
    .page-register__cta-button,
    .page-register__floating-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;
        text-align: center;
    }
    .page-register__floating-buttons {
        right: 15px;
        left: 15px;
        flex-direction: row; /* Stack horizontally on mobile */
        justify-content: space-around;
        gap: 10px;
        width: auto; /* Allow items to define width */
    }
    .page-register__floating-btn {
        width: 48%; /* Adjust width for two buttons side-by-side */
    }
    .page-register__cta-wrapper {
        padding: 30px 15px;
    }
    .page-register__benefit-item {
        padding: 20px;
    }
    .page-register__faq-question {
        padding: 15px 20px;
    }
    .page-register__faq-answer {
        padding: 0 20px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px 20px;
    }
}