/* style/register.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --accent-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background: var(--secondary-color); /* Default body background from shared.css is --secondary-color (white) */
}

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

.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: 10px; /* Small top padding, header offset handled by body in shared.css */
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(38, 169, 224, 0.7) 100%); /* Example gradient for hero background */
    color: var(--text-light);
}

.page-register__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within its parent */
}

.page-register__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

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

.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: var(--text-light);
}

.page-register__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    color: var(--text-light);
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color); /* Login color */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__cta-button:hover {
    background: darken(var(--accent-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-dark);
}

/* Why Register Section */
.page-register__why-register-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

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

.page-register__feature-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-register__feature-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

.page-register__feature-text {
    font-size: 1em;
    color: var(--text-dark);
}

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

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

.page-register__registration-form {
    max-width: 600px;
    margin: 40px auto 0;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
}

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

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

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

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

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

.page-register__form-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.page-register__form-checkbox .page-register__form-label {
    margin-bottom: 0;
    font-weight: normal;
}

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

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

.page-register__submit-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-register__login-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: var(--text-light);
}

.page-register__login-prompt .page-register__form-link {
    color: var(--accent-color);
}

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

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

.page-register__benefit-item {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-register__benefit-item img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

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

/* Payments Section */
.page-register__payments-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--text-light);
}

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

.page-register__payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 40px;
    justify-items: center;
}

.page-register__payment-method-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    width: 100%;
    max-width: 250px; /* Max width for individual payment item */
    box-sizing: border-box;
}

.page-register__payment-method-item img {
    
     /* Adjusted height for payment logos */
    object-fit: contain;
    margin-bottom: 15px;
}

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

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

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

.page-register__faq-list {
    margin-top: 40px;
}

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

details.page-register__faq-item summary.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

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

details.page-register__faq-item summary.page-register__faq-question:hover {
    background: #f5f5f5;
}

.page-register__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-dark);
}

.page-register__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-register__faq-item .page-register__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-dark);
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-register__section-title {
        font-size: 2em;
    }
}

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

    .page-register__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__hero-image img {
        border-radius: 4px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-register__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-register__why-register-section, .page-register__form-section, .page-register__benefits-section, .page-register__payments-section, .page-register__faq-section, .page-register__cta-final-section {
        padding: 40px 0;
    }

    .page-register__features-grid, .page-register__benefits-grid, .page-register__payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__feature-card, .page-register__benefit-item, .page-register__payment-method-item {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .page-register__feature-card img, .page-register__benefit-item img {
        height: auto; /* Allow height to adjust */
        max-width: 100% !important;
        width: 100% !important;
    }

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

    details.page-register__faq-item summary.page-register__faq-question {
        padding: 15px;
    }
    .page-register__faq-qtext {
        font-size: 15px;
    }

    details.page-register__faq-item .page-register__faq-answer {
        padding: 0 15px 15px;
    }

    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-register__section,
    .page-register__card,
    .page-register__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}