/* style/register.css */

/* General Styles */
.page-register__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-register__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-register__section-description {
    font-size: 18px;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding-top: 10px; /* Small padding as body handles header offset */
    margin-bottom: 40px;
    overflow: hidden;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-register__hero-content {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    margin-top: -80px; /* Overlap with image for visual effect */
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.page-register__main-title {
    font-size: clamp(28px, 4vw, 48px); /* H1 font size with clamp */
    font-weight: 800;
    color: #017439;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-register__intro-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-submit {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-register__btn-primary {
    background: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    border: 2px solid #C30808;
    margin: 10px;
}

.page-register__btn-primary:hover {
    background: #d42a2a;
    border-color: #d42a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(195, 8, 8, 0.3);
}

.page-register__btn-secondary {
    background: #FFFFFF;
    color: #C30808; /* Login button color */
    border: 2px solid #C30808;
    margin: 10px;
}

.page-register__btn-secondary:hover {
    background: #f0f0f0;
    color: #a00606;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Form Section */
.page-register__form-section {
    padding: 60px 0;
    background: #FFFFFF; /* Background color */
    color: #333333; /* Text color */
    margin-bottom: 40px;
}

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

.page-register__step-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.page-register__step-title {
    font-size: 22px;
    font-weight: 700;
    color: #017439;
    margin-bottom: 15px;
}

.page-register__step-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.page-register__step-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
    color: #555;
}

.page-register__step-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

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

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

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

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

.page-register__captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-register__captcha-input {
    flex: 1;
}

.page-register__captcha-text {
    background: #eee;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    color: #666;
    min-width: 100px; /* Ensure min width for readability */
    text-align: center;
    font-size: 18px;
    user-select: none;
}

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

.page-register__checkbox-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.page-register__checkbox-label {
    font-size: 15px;
    color: #555;
}

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

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

.page-register__btn-submit {
    width: 100%;
    background: #C30808;
    color: #FFFF00;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-register__btn-submit:hover {
    background: #d42a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(195, 8, 8, 0.3);
}

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

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

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

/* Benefits Section */
.page-register__dark-section {
    padding: 60px 0;
    background: #017439;
    color: #ffffff;
    margin-bottom: 40px;
}

.page-register__dark-section .page-register__section-title {
    color: #ffffff;
}

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

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

.page-register__benefit-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__benefit-icon {
    width: 100%;
    max-width: 250px; /* Adjusted to be less than 400x300 but still large enough */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-register__benefit-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFFF00; /* Highlighted title */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-register__benefit-description {
    font-size: 16px;
    color: #f0f0f0;
    line-height: 1.6;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 60px 0;
    background: #FFFFFF;
    color: #333333;
    margin-bottom: 40px;
}

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

/* FAQ details styles (preferred) */
details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #f5f5f5;
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333;
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555;
  line-height: 1.6;
}
details.page-register__faq-item .page-register__faq-answer p {
    margin: 0;
}


/* Final CTA Section */
.page-register__cta-section {
    padding: 60px 0;
    background: #017439;
    color: #ffffff;
    text-align: center;
}

.page-register__cta-section .page-register__section-title {
    color: #ffffff;
}

.page-register__cta-section .page-register__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* For mobile responsiveness */
}

/* Responsive Styles */
/* No home-hero specific styles for register page (1023px, 1024px media queries are omitted) */

@media (max-width: 768px) {
    .page-register__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-register__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-register__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-register__hero-section {
        padding-top: 5px;
        margin-bottom: 20px;
    }

    .page-register__hero-image {
        border-radius: 5px;
    }

    .page-register__hero-content {
        padding: 25px 15px;
        margin-top: -50px;
    }

    .page-register__main-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .page-register__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register__btn-submit {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        margin: 8px 0 !important; /* Adjust margin for vertical stack */
    }

    .page-register__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding: 40px 0;
        margin-bottom: 20px;
    }

    .page-register__steps-grid,
    .page-register__benefits-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-register__step-card,
    .page-register__benefit-card {
        padding: 20px;
    }

    .page-register__step-title {
        font-size: 20px;
    }

    .page-register__step-description {
        font-size: 15px;
    }

    .page-register__registration-form {
        padding: 30px;
    }

    .page-register__form-label {
        font-size: 15px;
    }

    .page-register__form-input {
        padding: 10px 12px;
        font-size: 15px;
    }

    .page-register__captcha-text {
        font-size: 16px;
        padding: 8px 12px;
    }

    .page-register__checkbox-label {
        font-size: 14px;
    }

    .page-register__benefit-title {
        font-size: 20px;
    }

    .page-register__benefit-description {
        font-size: 15px;
    }
    
    .page-register__faq-qtext { font-size: 15px; }
    details.page-register__faq-item summary.page-register__faq-question { padding: 15px; }

    /* All images must be responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All image containers must be responsive */
    .page-register__hero-section,
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__faq-section,
    .page-register__cta-section,
    .page-register__registration-form,
    .page-register__step-card,
    .page-register__benefit-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right are handled by .page-register__container */
    }
}