/* style/register.css */

/* Base styles for the register page content */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit or default to white */
}

.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: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(135deg, #26A9E0, #1a7bbd);
    color: #FFFFFF;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-register__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
}

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

/* Buttons */
.page-register__btn-primary {
    display: inline-block;
    background: #EA7C07; /* Login color for primary action */
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.page-register__btn-primary:hover {
    background: #d46c06;
}

.page-register__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Form Section */
.page-register__form-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background for form */
}

.page-register__registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px 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;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #FFFFFF;
}

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

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

.page-register__captcha-image {
    border-radius: 5px;
    border: 1px solid #cccccc;
    width: 120px; /* Specific width */
    height: 40px; /* Specific height */
    object-fit: cover;
}

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

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

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

.page-register__checkbox-label a {
    color: #26A9E0;
    text-decoration: none;
}

.page-register__checkbox-label a:hover {
    text-decoration: underline;
}

.page-register__submit-button {
    width: 100%;
    margin-top: 20px;
}

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

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

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

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background: linear-gradient(to right, #26A9E0, #1a7bbd);
    color: #FFFFFF;
}

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-intro {
    color: #FFFFFF;
}

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

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

.page-register__benefit-image {
    width: 100%; /* Ensure it's responsive */
    max-width: 400px; /* Max width as per requirements */
    height: 300px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

/* How-to-Register Section */
.page-register__how-to-register-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-register__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

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

.page-register__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #26A9E0;
    color: #FFFFFF;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #26A9E0;
    font-weight: bold;
}

.page-register__step-text {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    flex-grow: 1; /* Ensure text takes up available space */
}

.page-register__step-image {
    width: 100%;
    max-width: 600px; /* Max width as per requirements */
    height: 400px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.page-register__cta-bottom {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: #eaf6fc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__cta-text {
    font-size: 1.5em;
    margin-bottom: 25px;
    color: #26A9E0;
    font-weight: bold;
}

/* Security Section */
.page-register__security-section {
    padding: 80px 0;
    background: linear-gradient(to right, #1a7bbd, #26A9E0);
    color: #FFFFFF;
}

.page-register__security-section .page-register__section-title,
.page-register__security-section .page-register__section-intro {
    color: #FFFFFF;
}

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

.page-register__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
}

.page-register__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-register__feature-text {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-register__security-image {
    width: 100%;
    max-width: 1000px; /* Max width as per requirements */
    height: 563px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-top: 60px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-register__faq-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-register__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    outline: none;
    list-style: none; /* Remove default marker */
}

.page-register__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

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

.page-register__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

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

.page-register__faq-answer p {
    margin-bottom: 10px;
}
.page-register__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Video Section */
.page-register__video-section {
    padding: 80px 0;
    background: #000000; /* Dark background for video */
    color: #FFFFFF;
    text-align: center;
}

.page-register__video-section .page-register__section-title,
.page-register__video-section .page-register__section-intro {
    color: #FFFFFF;
}

.page-register__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-register__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it behaves as a block element */
    cursor: pointer; /* Indicate clickability */
}

.page-register__video-cta {
    margin-top: 30px;
    font-size: 1.1em;
    font-style: italic;
    color: #f0f0f0;
}

/* Final CTA Section */
.page-register__cta-final {
    padding: 80px 0;
    background: #eaf6fc;
    text-align: center;
}

.page-register__cta-final .page-register__section-title {
    color: #26A9E0;
}

.page-register__cta-final .page-register__section-intro {
    color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__security-features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
}