/* style/register.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --button-login-color: #EA7C07;
    --background-color-page: #FFFFFF;
    --black-color: #000000;
}

.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-color-page);
    text-align: center;
}

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

.page-register__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 80px;
    background-size: cover;
    background-position: center;
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-register__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-register__hero-section .page-register__container {
    position: relative;
    z-index: 2;
}

.page-register__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-register__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-register__hero-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: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-register__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-register__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-register__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-register__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-register__section-description {
    font-size: 1.1em;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-dark);
}

.page-register__form-section {
    padding: 80px 0;
    background-color: var(--background-color-page);
}

.page-register__form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
}

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

.page-register__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--text-color-dark);
}

.page-register__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-register__captcha-group {
    display: flex;
    flex-direction: column;
}

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

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

.page-register__captcha-image {
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 200px;
    height: 80px;
    object-fit: cover;
}

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

.page-register__checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px; /* Prevent shrinking on mobile */
    min-height: 20px; /* Prevent shrinking on mobile */
}

.page-register__checkbox-label {
    font-size: 0.95em;
    color: var(--text-color-dark);
}

.page-register__link {
    color: var(--primary-color);
    text-decoration: none;
}

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

.page-register__submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    background-color: var(--button-login-color);
    border-color: var(--button-login-color);
    color: var(--text-color-light);
}

.page-register__submit-button:hover {
    background-color: darken(var(--button-login-color), 10%);
    border-color: darken(var(--button-login-color), 10%);
}

.page-register__benefits-section,
.page-register__security-section,
.page-register__video-section,
.page-register__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-register__benefits-section .page-register__section-title,
.page-register__security-section .page-register__section-title,
.page-register__video-section .page-register__section-title,
.page-register__cta-section .page-register__section-title {
    color: var(--text-color-light);
}

.page-register__benefits-section .page-register__section-description,
.page-register__security-section .page-register__section-description,
.page-register__video-section .page-register__section-description,
.page-register__cta-section .page-register__section-description {
    color: var(--text-color-light);
}

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

.page-register__benefit-card {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-register__benefit-icon {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-register__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-register__benefit-text {
    font-size: 1em;
    line-height: 1.7;
}

.page-register__guide-section {
    padding: 80px 0;
    background-color: var(--background-color-page);
}

.page-register__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-register__step-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
    padding-left: 70px;
}

.page-register__step-number {
    position: absolute;
    top: 30px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    font-weight: bold;
}

.page-register__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-register__step-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-color-dark);
}

.page-register__download-cta {
    margin-top: 80px;
    padding: 40px;
    background-color: var(--primary-color);
    border-radius: 10px;
    color: var(--text-color-light);
}

.page-register__download-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.page-register__download-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

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

.page-register__feature-item {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-register__feature-icon {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-register__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-register__feature-text {
    font-size: 1em;
    line-height: 1.7;
}

.page-register__security-note {
    margin-top: 40px;
    font-size: 1.1em;
    color: var(--text-color-light);
}

.page-register__security-note .page-register__link {
    color: var(--secondary-color);
}

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

.page-register__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--black-color);
    border-radius: 10px;
    margin-top: 50px;
}

.page-register__video-wrapper .page-register__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.page-register__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    cursor: pointer;
}

.page-register__faq-section {
    padding: 80px 0;
    background-color: var(--background-color-page);
}

.page-register__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-register__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.page-register__faq-item:last-child .page-register__faq-question {
    border-bottom: none;
}

.page-register__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: var(--primary-color);
}

.page-register__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-color-dark);
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px;
    padding-top: 0;
}

.page-register__faq-answer p {
    margin-bottom: 0;
    text-align: left;
}

.page-register__final-cta {
    margin-top: 50px;
    font-size: 1.4em;
    padding: 18px 40px;
    background-color: var(--button-login-color);
    border-color: var(--button-login-color);
}

.page-register__final-cta:hover {
    background-color: darken(var(--button-login-color), 10%);
    border-color: darken(var(--button-login-color), 10%);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }

    .page-register__section-title {
        font-size: 2em;
    }
}

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

    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
        min-height: 400px;
    }

    .page-register__hero-title {
        font-size: 2.2em;
    }

    .page-register__hero-description {
        font-size: 1em;
    }

    .page-register__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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,
    .page-register__button-group,
    .page-register__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        overflow: hidden !important;
    }

    .page-register__section-title {
        font-size: 1.8em;
    }

    .page-register__section-description {
        font-size: 0.95em;
    }

    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__guide-section,
    .page-register__security-section,
    .page-register__video-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding: 40px 0;
    }

    .page-register__form-wrapper {
        padding: 25px;
    }

    .page-register__captcha-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-register__captcha-input {
        width: 100%;
    }

    .page-register__captcha-image {
        width: 100%;
        max-width: 200px;
        height: auto;
    }

    .page-register__benefits-grid,
    .page-register__guide-steps,
    .page-register__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__step-item {
        padding-left: 20px;
        padding-top: 60px;
    }

    .page-register__step-number {
        top: 20px;
        left: 20px;
    }

    .page-register__download-cta {
        margin-top: 40px;
        padding: 25px;
    }

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

    .page-register__video-wrapper {
        margin-top: 30px;
    }

    .page-register img,
    .page-register__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

/* Color Contrast Fixes (if needed, based on body background and content) */
/* Assuming shared.css sets a light body background, so dark text is appropriate */
.page-register__dark-bg {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-register__light-bg {
  background: var(--background-color-page);
  color: var(--text-color-dark);
}

.page-register__hero-section .page-register__hero-title,
.page-register__hero-section .page-register__hero-description {
  color: var(--text-color-light);
}

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-description,
.page-register__security-section .page-register__section-title,
.page-register__security-section .page-register__section-description,
.page-register__video-section .page-register__section-title,
.page-register__video-section .page-register__section-description,
.page-register__cta-section .page-register__section-title,
.page-register__cta-section .page-register__section-description {
  color: var(--text-color-light);
}

.page-register__security-note .page-register__link {
    color: var(--secondary-color);
}

.page-register__link {
    color: var(--primary-color);
}