/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f5f5f5; /* A light background for the page content */
}

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

/* Hero Section */
.page-register__hero-section {
    background-color: #26A9E0; /* Brand primary color for hero background */
    color: #ffffff; /* White text for dark background */
    padding-top: 10px; /* Small top padding as per shared.css body padding-top */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden; /* Ensure no overflow issues */
}

.page-register__hero-section .page-register__container {
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    align-items: center;
    gap: 30px;
}

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

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

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

.page-register__main-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-register__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-register__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Form Section */
.page-register__form-section {
    background-color: #ffffff;
    padding: 60px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border-radius: 8px;
    margin-top: -80px; /* Overlap with hero section slightly */
    position: relative;
    z-index: 1;
}

.page-register__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
}

.page-register__registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f9f9f9;
}

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

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

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

.page-register__form-input:focus {
    border-color: #26A9E0;
    outline: none;
}

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

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

.page-register__captcha-display {
    background-color: #e0e0e0;
    color: #555555;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    user-select: none;
    min-width: 100px;
    text-align: center;
}

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

.page-register__terms-checkbox input[type="checkbox"] {
    transform: scale(1.2);
}

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

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

.page-register__submit-button {
    width: 100%;
    padding: 15px;
    background-color: #EA7C07; /* Login/Register button color */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't push it out */
}

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

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

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

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

/* Benefits Section */
.page-register__benefits-section {
    padding: 40px 0 60px;
    background-color: #f5f5f5;
}

.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: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.page-register__benefit-icon {
    width: 100%; /* Make image fill card width */
    height: auto;
    max-width: 250px; /* Limit max width of icon */
    display: block;
    margin: 0 auto 20px;
    border-radius: 5px;
    object-fit: cover;
}

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

.page-register__benefit-description {
    font-size: 0.95em;
    color: #555555;
}

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

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

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: #333333; /* Ensure contrast */
}
.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: #555555; /* Ensure contrast */
}

/* Buttons */
.page-register__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-register__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-register__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7bb0;
    border-color: #1a7bb0;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 2.8em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__registration-form {
        padding: 25px;
    }
    .page-register__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General container and padding for mobile */
    .page-register__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-register__hero-section {
        padding-top: 10px !important; /* Specific top padding */
        padding-bottom: 30px;
    }
    .page-register__hero-section .page-register__container {
        gap: 20px;
    }
    .page-register__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
        padding: 0 5px; /* Add slight horizontal padding for very small screens */
    }
    .page-register__description {
        font-size: 1em;
        margin-bottom: 20px;
        padding: 0 5px;
    }
    .page-register__hero-image {
        margin-bottom: 15px;
    }
    .page-register__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-register__hero-cta {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-register__cta-button {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 12px 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Form Section */
    .page-register__form-section {
        padding: 40px 0;
        margin-top: -60px; /* Adjust overlap */
    }
    .page-register__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-register__registration-form {
        padding: 20px;
    }
    .page-register__form-input {
        padding: 10px 12px;
    }
    .page-register__captcha-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    .page-register__captcha-input {
        width: 100%;
    }
    .page-register__captcha-display {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    .page-register__submit-button {
        padding: 12px;
        font-size: 1.1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-register__terms-checkbox {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .page-register__terms-checkbox label {
        margin-left: 0; /* Adjust for stacked layout */
    }

    /* Benefits Section */
    .page-register__benefits-section {
        padding: 30px 0 40px;
    }
    .page-register__benefits-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-register__benefit-card {
        padding: 25px;
    }
    .page-register__benefit-icon {
        max-width: 180px; /* Smaller icons on mobile */
        width: 100% !important;
        height: auto !important;
    }
    .page-register__benefit-title {
        font-size: 1.3em;
    }
    .page-register__benefit-description {
        font-size: 0.9em;
    }

    /* FAQ Section */
    .page-register__faq-section {
        padding: 40px 0;
    }
    details.page-register__faq-item summary.page-register__faq-question {
        padding: 15px;
    }
    .page-register__faq-qtext {
        font-size: 15px;
    }
    details.page-register__faq-item .page-register__faq-answer {
        padding: 0 15px 15px;
    }

    /* All images */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* All sections/cards/containers for mobile overflow */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__faq-section,
    .page-register__registration-form,
    .page-register__benefit-card,
    .page-register__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Specific override for .page-register__container to avoid double padding if already set */
    .page-register__hero-section .page-register__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-register__form-section .page-register__container,
    .page-register__benefits-section .page-register__container,
    .page-register__faq-section .page-register__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}