/* style/register.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f4f4f4;
    --background-dark: #222222;
    --border-color: #e0e0e0;
}

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

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

.page-register__section-title {
    font-size: 36px;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-description {
    font-size: 18px;
    color: var(--text-color-dark);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-register__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-register__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

.page-register__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-register__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-register__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-color);
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 22px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-register__cta-button:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

/* Form Section */
.page-register__form-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

.page-register__registration-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--text-color-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-register__form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.page-register__form-hint {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
    display: block;
}

.page-register__form-captcha {
    display: flex;
    flex-direction: column;
}

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

.page-register__captcha-input {
    flex-grow: 1;
    min-width: 150px;
}

.page-register__captcha-image {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    height: 80px;
    object-fit: contain;
}

.page-register__captcha-refresh-button {
    padding: 10px 15px;
    background-color: #f0f0f0;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color-dark);
    transition: background-color 0.3s ease;
}

.page-register__captcha-refresh-button:hover {
    background-color: #e0e0e0;
}

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

.page-register__checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

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

.page-register__terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.page-register__submit-button {
    width: 100%;
    padding: 15px;
    font-size: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 25px;
    font-size: 16px;
    color: var(--text-color-dark);
}

.page-register__login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.page-register__benefits-section .page-register__section-title {
    color: var(--primary-color);
}

.page-register__benefits-section .page-register__section-description {
    color: #f0f0f0;
}

.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-color: var(--text-color-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark);
}

.page-register__benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-register__benefit-icon {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-register__benefit-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-register__benefit-text {
    font-size: 16px;
    color: var(--text-color-dark);
}

/* Security Section */
.page-register__security-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

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

.page-register__security-item {
    background-color: var(--text-color-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-register__security-icon {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-register__security-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-register__security-text {
    font-size: 15px;
    color: var(--text-color-dark);
}

.page-register__security-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

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

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--text-color-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-register__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-register__faq-question:active {
    background: #eeeeee;
}

.page-register__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-dark);
    pointer-events: none;
}

.page-register__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(180deg);
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: #fcfcfc;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
}

.page-register__faq-answer p {
    font-size: 16px;
    color: var(--text-color-dark);
    margin: 0;
}

/* Final CTA Section */
.page-register__cta-final-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    text-align: center;
}

.page-register__cta-final-section .page-register__section-title {
    color: var(--primary-color);
}

.page-register__cta-final-section .page-register__section-description {
    color: #f0f0f0;
    margin-bottom: 50px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 42px;
    }
    .page-register__hero-description {
        font-size: 18px;
    }
    .page-register__cta-button {
        font-size: 20px;
        padding: 15px 40px;
    }
    .page-register__section-title {
        font-size: 32px;
    }
    .page-register__section-description {
        font-size: 16px;
    }
    .page-register__benefit-title {
        font-size: 22px;
    }
    .page-register__security-title {
        font-size: 20px;
    }
}

@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: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-register__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-register__cta-button {
        font-size: 18px;
        padding: 12px 30px;
        width: 100% !important;
        max-width: 300px !important; /* Constrain max width for single button */
        margin-left: auto; /* Center button */
        margin-right: auto; /* Center button */
    }
    .page-register__section-title {
        font-size: 28px;
    }
    .page-register__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-register__container,
    .page-register__form-section .page-register__container,
    .page-register__benefits-section .page-register__container,
    .page-register__security-section .page-register__container,
    .page-register__faq-section .page-register__container,
    .page-register__cta-final-section .page-register__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-register__hero-image,
    .page-register__benefit-icon,
    .page-register__security-icon,
    .page-register__captcha-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-register__registration-form {
        padding: 25px;
    }
    .page-register__form-group {
        margin-bottom: 20px;
    }
    .page-register__form-input {
        padding: 10px 12px;
        font-size: 15px;
    }
    .page-register__captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .page-register__captcha-input {
        width: 100%;
    }
    .page-register__captcha-image {
        width: 100%;
        height: auto;
        max-width: 200px;
        margin: 10px auto;
    }
    .page-register__captcha-refresh-button {
        width: 100%;
    }
    .page-register__terms-checkbox {
        align-items: flex-start;
    }
    .page-register__checkbox-label {
        font-size: 14px;
    }
    .page-register__submit-button {
        font-size: 18px;
        padding: 12px;
    }
    .page-register__benefits-grid,
    .page-register__security-grid {
        grid-template-columns: 1fr;
    }
    .page-register__benefit-card,
    .page-register__security-item {
        padding: 20px;
    }
    .page-register__benefit-icon {
        height: 150px;
    }
    .page-register__security-icon {
        height: 120px;
    }
    .page-register__benefit-title {
        font-size: 20px;
    }
    .page-register__security-title {
        font-size: 18px;
    }
    .page-register__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-register__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-register__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-register__faq-answer {
        padding: 0 15px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px !important;
    }
    .page-register__cta-buttons {
        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-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 28px;
    }
    .page-register__hero-description {
        font-size: 15px;
    }
    .page-register__cta-button {
        font-size: 16px;
        padding: 10px 25px;
    }
    .page-register__section-title {
        font-size: 24px;
    }
    .page-register__section-description {
        font-size: 14px;
    }
    .page-register__form-input {
        font-size: 14px;
    }
    .page-register__form-hint {
        font-size: 12px;
    }
    .page-register__checkbox-label {
        font-size: 13px;
    }
    .page-register__submit-button {
        font-size: 16px;
    }
    .page-register__login-prompt {
        font-size: 14px;
    }
    .page-register__benefit-title {
        font-size: 18px;
    }
    .page-register__benefit-text {
        font-size: 14px;
    }
    .page-register__security-title {
        font-size: 16px;
    }
    .page-register__security-text {
        font-size: 13px;
    }
    .page-register__faq-question h3 {
        font-size: 15px;
    }
    .page-register__faq-toggle {
        font-size: 18px;
        width: 20px;
        height: 20px;
    }
    .page-register__faq-answer p {
        font-size: 14px;
    }
}