/* register.css */

.page-register {
    background-color: #FFFFFF; /* Custom background color */
    color: #333333; /* Default text color for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for first section */
}

.page-register__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #017439; /* Main color for hero background */
    padding: 40px 20px;
    color: #FFFFFF;
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    margin-bottom: 20px;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-register__hero-content {
    max-width: 800px;
}

.page-register__hero-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    font-size: clamp(1.8rem, 5vw, 2.8rem); /* Example clamp for responsive H1 */
}

.page-register__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.page-register__hero-button {
    display: inline-block;
    background-color: #990000; /* Adjusted for WCAG AA contrast with #FFFF00 */
    color: #FFFF00; /* Keep specified text color */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure button is not too small */
    min-height: 44px; /* Ensure button is not too small */
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.page-register__hero-button:hover {
    background-color: #7a0000; /* Darker hover for the adjusted color */
}

.page-register__section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Main color for section titles */
}

/* Form Section */
.page-register__form-section {
    padding: 60px 20px;
    background-color: #f8f8f8;
}

.page-register__form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-register__label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333333;
}

.page-register__input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333333;
    background-color: #FFFFFF;
}

.page-register__input::placeholder {
    color: #999;
}

.page-register__terms-checkbox {
    flex-direction: row;
    align-items: center;
}

.page-register__checkbox {
    margin-right: 10px;
    min-width: 20px; /* Ensure checkbox is clickable */
    min-height: 20px; /* Ensure checkbox is clickable */
}

.page-register__terms-link {
    color: #017439; /* Link color using main color */
    text-decoration: none;
}

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

.page-register__submit-button {
    background-color: #990000; /* Adjusted for WCAG AA contrast with #FFFF00 */
    color: #FFFF00; /* Keep specified text color */
    padding: 15px 25px;
    border-radius: 5px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure button is not too small */
    min-height: 44px; /* Ensure button is not too small */
}

.page-register__submit-button:hover {
    background-color: #7a0000; /* Darker hover for the adjusted color */
}

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

.page-register__login-link {
    color: #017439; /* Link color using main color */
    text-decoration: none;
    font-weight: bold;
}

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

/* Benefits Section */
.page-register__benefits-section {
    padding: 60px 20px;
    background-color: #FFFFFF;
}

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

.page-register__benefit-card {
    background-color: #f0f0f0;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__card-icon {
    width: 200px; /* Ensure actual rendered size is >= 200px */
    height: 200px; /* Ensure actual rendered size is >= 200px */
    margin-bottom: 20px;
    object-fit: contain;
}

.page-register__card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #017439;
}

.page-register__card-description {
    font-size: 1rem;
    color: #555;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 60px 20px;
    background-color: #f8f8f8;
}

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

.page-register__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__faq-question {
    font-size: 1.2rem;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
    cursor: pointer; /* Implies expand/collapse functionality */
}

.page-register__faq-question.is-active + .page-register__faq-answer {
    display: block; /* Show answer when question is active */
}

.page-register__faq-answer {
    font-size: 1rem;
    color: #555;
    display: none; /* Hidden by default, JS will toggle */
}

.page-register__error-message {
    color: #C30808; /* Error message color */
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 849px) { /* Hero specific breakpoint */
    .page-register__hero-section {
        padding: 30px 15px;
    }

    .page-register__hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

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

    .page-register__hero-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .page-register__section-title {
        font-size: 1.8rem;
    }

    .page-register__form-container {
        padding: 30px;
    }

    .page-register__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile content area image overflow protection */
    .page-register img {
        max-width: 100%;
        height: auto;
    }

    .page-register__hero-image {
        max-width: 100%;
        height: auto;
    }

    .page-register__card-icon {
        width: 200px;
        height: 200px;
        max-width: 100%; /* Important for mobile to prevent overflow */
        height: auto; /* Maintain aspect ratio */
    }

    .page-register__section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .page-register__faq-question {
        font-size: 1.1rem;
    }

    .page-register__faq-item {
        padding: 20px;
    }
}

@media (max-width: 549px) { /* Smaller mobile breakpoint */
    .page-register__hero-section {
        padding: 20px 10px;
    }

    .page-register__hero-title {
        font-size: clamp(1.3rem, 7vw, 2rem);
    }

    .page-register__form-container {
        padding: 20px;
    }

    .page-register__benefits-grid {
        grid-template-columns: 1fr; /* Stack cards on very small screens */
    }

    .page-register__submit-button,
    .page-register__hero-button {
        width: 100%; /* Full width buttons on small screens */
        max-width: 320px; /* Constrain width for better readability */
        margin-left: auto;
        margin-right: auto;
    }

    .page-register__terms-checkbox {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-register__checkbox {
        margin-bottom: 10px;
    }
}