/* style/register.css */
/* 
  Body background color from shared.css: var(--background-color)
  Assuming --background-color is light for this page based on color scheme #FFFFFF auxiliary.
  Text color will be dark (#333333 or #000000).
*/

.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #f5f5f5); /* Fallback for body background if not set */
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: #26A9E0; /* Primary color as background for hero */
    color: #ffffff; /* White text for primary color background */
    overflow: hidden; /* Ensure no image overflow */
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width of parent */
    margin-bottom: 20px; /* Space between image and content */
    overflow: hidden;
    border-radius: 8px;
}

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

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

.page-register__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}

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

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

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    text-align: center;
}

.page-register__btn-primary {
    background-color: #EA7C07; /* Login/Register color */
    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: #e0f7fa;
    color: #1e88e5;
    border-color: #1e88e5;
}

/* General Section Styling */
.page-register__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #26A9E0; /* Primary color for titles */
}

.page-register__text-block {
    font-size: 1.05em;
    margin-bottom: 30px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__dark-section {
    background-color: #26A9E0; /* Primary color */
    color: #ffffff; /* White text */
    padding: 60px 20px;
}
.page-register__dark-section .page-register__section-title {
    color: #ffffff;
}
.page-register__dark-section .page-register__text-block {
    color: #f0f0f0;
}
.page-register__dark-section a {
    color: #ffffff; /* Links in dark section */
    text-decoration: underline;
}
.page-register__dark-section a:hover {
    color: #EA7C07;
}

.page-register__light-bg {
    background-color: #ffffff; /* Auxiliary color */
    color: #333333; /* Dark text */
    padding: 60px 20px;
}
.page-register__light-bg .page-register__section-title {
    color: #26A9E0;
}
.page-register__light-bg .page-register__text-block {
    color: #333333;
}
.page-register__light-bg a {
    color: #26A9E0; /* Links in light section */
    text-decoration: underline;
}
.page-register__light-bg a:hover {
    color: #1e88e5;
}

/* Benefits Section */
.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: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
}

.page-register__benefit-icon {
    width: 100%; /* Card image takes full width of card */
    max-width: 250px; /* Max width for the icon */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover; /* Ensures images fill their space without distortion */
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

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

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

/* Registration Form Section */
.page-register__registration-form {
    max-width: 600px;
    margin: 40px auto 0;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: #333333;
}

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

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

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #fefefe;
}

.page-register__form-input::placeholder {
    color: #aaaaaa;
}

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

.page-register__form-checkbox {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.page-register__form-label a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-register__form-label a:hover {
    color: #1e88e5;
}

.page-register__form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background-color: #EA7C07; /* Login/Register color */
    color: #ffffff;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-register__form-submit-btn:hover {
    background-color: #d16b05;
}

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

.page-register__login-prompt a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-register__login-prompt a:hover {
    color: #1e88e5;
}

/* Guide Section */
.page-register__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__step-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__step-card .page-register__card-title {
    color: #EA7C07; /* Orange for step titles */
    font-size: 1.3em;
}

.page-register__step-card p {
    color: #555555;
    text-align: center;
}

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

.page-register__faq-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-register__faq-item details {
    border: none;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #26A9E0;
    cursor: pointer;
    background-color: #eaf6fe; /* Lighter blue for question background */
    border-bottom: 1px solid #d0e8fa;
    list-style: none; /* For summary tag */
}
.page-register__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-register__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 15px;
    color: #EA7C07; /* Orange for toggle icon */
}

.page-register__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    text-align: left;
    background-color: #ffffff;
}

/* CTA Section */
.page-register__cta-section {
    padding: 80px 20px;
    text-align: center;
}

/* Global image styles (ensure min size and no small icons) */
.page-register img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-register__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-register__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-register__description {
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }
    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100%;
        max-width: 350px; /* Max width for buttons on tablet */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__form-section,
    .page-register__guide-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 10px !important; /* Small top padding for sections on mobile */
    }
    .page-register__hero-section {
        padding-top: 10px !important; /* Ensure hero section does not use header-offset */
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size is still enforced */
        min-height: 200px !important;
    }

    /* Containers for images/videos/buttons */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper,
    .page-register__cta-buttons,
    .page-register__button-group,
    .page-register__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Button responsiveness */
    .page-register__cta-button,
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register a[class*="button"],
    .page-register a[class*="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;
    }
    .page-register__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

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

    .page-register__form-label {
        text-align: left;
    }

    .page-register__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-register__faq-answer {
        padding: 15px 20px;
    }
}