/* style/register.css */

/* Base styles for the register page content */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from body, explicit for clarity */
}

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

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

.page-register__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-register__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-register__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-register__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-register__main-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFF00; /* Register/Login Font color */
}

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

.page-register__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box;
}

.page-register__btn-primary {
    background-color: #C30808; /* Custom Register color */
    color: #FFFF00; /* Custom Register/Login Font color */
    border: 2px solid #C30808;
}

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

.page-register__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom Register/Login Font color */
    border: 2px solid #FFFF00;
}

.page-register__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

/* Form Section */
.page-register__form-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Custom Background color */
    color: #333333; /* Dark text for light background */
}

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

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

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

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

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

.page-register__form-hint {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    display: block;
}

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

.page-register__verification-input {
    flex-grow: 1;
}

.page-register__send-code-btn {
    padding: 12px 20px;
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.page-register__send-code-btn:hover {
    background-color: #005a2e;
}

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

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

.page-register__checkbox-label {
    color: #333333;
    font-size: 0.95em;
}

.page-register__link {
    color: #017439; /* Main brand color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-register__link:hover {
    text-decoration: underline;
}

.page-register__submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #C30808; /* Custom Register color */
    color: #FFFF00; /* Custom Register/Login Font color */
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-register__submit-btn:hover {
    background-color: #a00606;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    color: #ffffff;
}

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

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

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

.page-register__benefit-icon {
    width: 100%; /* Ensure images are responsive */
    height: auto;
    max-height: 200px; /* Limit height for consistency */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-register__benefit-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlight with custom font color */
}

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

.page-register__cta-bottom {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Guide Section */
.page-register__guide-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

.page-register__guide-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.page-register__step-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439; /* Main brand color */
    margin-bottom: 15px;
}

.page-register__step-title {
    font-size: 1.8em;
    color: #333333;
    margin-bottom: 15px;
}

.page-register__step-text {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
}

.page-register__step-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 20px;
}

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

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

/* Issues Section */
.page-register__issues-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background */
    color: #ffffff;
}

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

.page-register__issue-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__issue-title {
    font-size: 1.5em;
    color: #FFFF00; /* Highlight with custom font color */
    margin-bottom: 15px;
}

.page-register__issue-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Tips Section */
.page-register__tips-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

.page-register__tips-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-register__tip-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__tip-title {
    font-size: 1.6em;
    color: #017439; /* Main brand color */
    margin-bottom: 10px;
}

.page-register__tip-text {
    font-size: 1em;
    color: #555;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    color: #ffffff;
}

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

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #FFFF00; /* Highlight question with custom font color */
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-register__faq-question::-webkit-details-marker {
    display: none;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(45deg);
}

.page-register__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.6;
}

.page-register__faq-answer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 3em;
    }
    .page-register__hero-description {
        font-size: 1.2em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-register__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-register__hero-content {
        padding: 15px;
    }
    .page-register__main-title {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__guide-section,
    .page-register__issues-section,
    .page-register__tips-section,
    .page-register__faq-section {
        padding: 60px 0;
    }

    .page-register__container {
        padding: 0 15px;
    }

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

    .page-register__send-code-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .page-register__benefits-grid,
    .page-register__issues-grid {
        grid-template-columns: 1fr;
    }

    .page-register__benefit-title,
    .page-register__issue-title {
        font-size: 1.4em;
    }

    .page-register__cta-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .page-register__step-title {
        font-size: 1.5em;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that might hold images/videos/buttons */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__form,
    .page-register__benefits-grid,
    .page-register__issues-grid,
    .page-register__guide-steps,
    .page-register__tips-list,
    .page-register__faq-list,
    .page-register__hero-cta,
    .page-register__cta-bottom,
    .page-register__verification-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-register__form,
    .page-register__benefit-card,
    .page-register__issue-card,
    .page-register__step-item,
    .page-register__tip-item,
    .page-register__faq-item {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .page-register__verification-group {
        flex-direction: column;
        align-items: stretch;
    }
    .page-register__send-code-btn {
        width: 100%;
    }
}