/* style/register.css */

/* --- Base Styles --- */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f4f4f4; /* Inherited from body/shared, explicitly set for safety */
}

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

.page-register__container--center {
    text-align: center;
}

.page-register__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: #ffffff; /* Default section background for readability */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-register__section:first-of-type {
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-register h1,
.page-register h2,
.page-register h3 {
    color: #333333; /* Default dark color for headings */
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.page-register h1 {
    font-size: 3.2em;
    font-weight: 700;
    color: #8B0000; /* Use dark red for main title for contrast */
}

.page-register h2 {
    font-size: 2.5em;
    font-weight: 600;
    color: #8B0000; /* Dark red for section titles */
    margin-bottom: 30px;
}

.page-register h3 {
    font-size: 1.8em;
    font-weight: 500;
    color: #FFD700; /* Gold for subheadings */
    margin-bottom: 15px;
}

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

.page-register__text-link {
    color: #8B0000;
    text-decoration: underline;
    font-weight: bold;
}

.page-register__text-link:hover {
    color: #FFD700;
}

/* --- Buttons --- */
.page-register__cta-button,
.page-register__btn-secondary,
.page-register__submit-button {
    display: inline-block;
    padding: 15px 30px;
    background: #FFD700; /* Gold primary color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-register__cta-button:hover,
.page-register__btn-secondary:hover,
.page-register__submit-button:hover {
    background: #8B0000; /* Dark red on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-secondary {
    background: #8B0000; /* Dark red secondary color */
    margin-left: 20px;
}

.page-register__btn-secondary:hover {
    background: #FFD700; /* Gold on hover */
}

.page-register__cta-button--large {
    padding: 18px 45px;
    font-size: 20px;
    min-width: 250px;
}

.page-register__cta-button--small {
    padding: 12px 25px;
    font-size: 16px;
}

.page-register__btn-secondary--large {
    padding: 18px 45px;
    font-size: 20px;
    min-width: 250px;
}

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust padding-bottom for hero */
    overflow: hidden; /* Prevent image overflow */
    background-color: #f4f4f4; /* Match body background */
}

.page-register__hero-section:first-of-type {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

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

.page-register__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

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

.page-register__hero-content h1 {
    color: #8B0000; /* Dark red for contrast on light background */
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

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

/* --- Why Register Section --- */
.page-register__why-register {
    background: linear-gradient(145deg, #f8f8f8, #e0e0e0);
    padding: 80px 0;
}

.page-register__why-register h2 {
    color: #8B0000;
}

.page-register__why-register .page-register__section-description {
    color: #444444;
}

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

.page-register__grid-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-register__grid-item h3 {
    color: #FFD700;
    font-size: 1.6em;
    margin-bottom: 15px;
}

.page-register__grid-item p {
    color: #666666;
    font-size: 1.05em;
}

.page-register__grid-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto 0 auto;
    border-radius: 8px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}


/* --- Guide Section --- */
.page-register__guide {
    background-color: #f4f4f4;
    padding: 80px 0;
}

.page-register__guide h2 {
    color: #8B0000;
}

.page-register__guide .page-register__section-description {
    color: #444444;
}

.page-register__steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.page-register__step-item {
    background: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    padding-left: 100px; /* Space for step number */
}

.page-register__step-number {
    position: absolute;
    left: 30px;
    top: 30px;
    background: #FFD700; /* Gold background for number */
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-register__step-item h3 {
    color: #8B0000; /* Dark red for step titles */
    text-align: left;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.page-register__step-item p {
    color: #666666;
    font-size: 1.05em;
    text-align: left;
}

.page-register__registration-form {
    margin-top: 30px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

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

.page-register__form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555555;
    font-size: 1.1em;
}

.page-register__form-group input[type="text"],
.page-register__form-group input[type="password"],
.page-register__form-group input[type="tel"],
.page-register__form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-register__form-group input[type="text"]:focus,
.page-register__form-group input[type="password"]:focus,
.page-register__form-group input[type="tel"]:focus,
.page-register__form-group input[type="email"]:focus {
    border-color: #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    outline: none;
}

.page-register__submit-button {
    width: 100%;
    margin-top: 20px;
    background: #FFD700;
    color: #ffffff;
    font-size: 1.2em;
    padding: 15px 20px;
}

.page-register__submit-button:hover {
    background: #8B0000;
}

/* --- Security Section --- */
.page-register__security {
    background: linear-gradient(145deg, #FFD700, #8B0000); /* Brand colors for background */
    padding: 80px 0;
    color: #ffffff; /* Light text for dark background */
}

.page-register__security h2 {
    color: #ffffff;
}

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

.page-register__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-register__security-text {
    flex: 1;
}

.page-register__security-text h3 {
    color: #ffffff;
    text-align: left;
    font-size: 1.8em;
}

.page-register__security-text p {
    color: #f0f0f0;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.page-register__security-image {
    flex: 1;
    text-align: center;
}

.page-register__security-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-register__security .page-register__btn-secondary {
    background: #ffffff;
    color: #8B0000;
    border: 2px solid #ffffff;
    margin-left: 0;
    margin-top: 20px;
}

.page-register__security .page-register__btn-secondary:hover {
    background: #f0f0f0;
    color: #FFD700;
    border-color: #FFD700;
}

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

.page-register__faq h2 {
    color: #8B0000;
}

.page-register__faq .page-register__section-description {
    color: #444444;
}

.page-register__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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 15px;
    opacity: 0;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 2000px !important; /* Use !important and sufficient value */
    padding: 20px 15px !important;
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 5px 5px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

.page-register__faq-answer p {
    color: #555555;
    font-size: 1.05em;
    margin-bottom: 0;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #FFD700; /* Gold background for questions */
    color: #ffffff; /* White text for contrast */
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question:hover {
    background: #8B0000; /* Dark red on hover */
    border-color: #8B0000;
    color: #ffffff;
}

.page-register__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: inherit; /* Inherit color from parent (.page-register__faq-question) */
    text-align: left;
}

.page-register__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #ffffff; /* White color for toggle */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect, or simply change to '-' */
    color: #ffffff;
}

/* --- Bottom CTA Section --- */
.page-register__cta-bottom {
    background: #FFD700; /* Gold background */
    padding: 80px 0;
    color: #ffffff; /* White text for contrast */
}

.page-register__cta-bottom h2 {
    color: #ffffff;
}

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

.page-register__cta-bottom .page-register__cta-button {
    background: #8B0000; /* Dark red button on gold background */
    margin-right: 20px;
}

.page-register__cta-bottom .page-register__cta-button:hover {
    background: #a30000; /* Slightly darker red on hover */
}

.page-register__cta-bottom .page-register__btn-secondary {
    background: #ffffff; /* White button on gold background */
    color: #8B0000;
    border: 2px solid #ffffff;
    margin-left: 0; /* Override default margin-left for side-by-side */
}

.page-register__cta-bottom .page-register__btn-secondary:hover {
    background: #f0f0f0;
    color: #FFD700;
    border-color: #FFD700;
}


/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .page-register {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-register__section:first-of-type {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-register__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-register h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-register h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-register h3 {
        font-size: 1.4em;
        margin-bottom: 10px;
    }

    .page-register__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-register__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .page-register__hero-image img {
        border-radius: 8px;
    }

    .page-register__grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__grid-item {
        padding: 25px;
    }

    .page-register__security-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-register__security-text h3 {
        text-align: center;
    }
    
    .page-register__security-text p {
        text-align: center;
    }

    .page-register__security .page-register__btn-secondary {
        margin: 20px auto 0 auto;
        display: block;
        width: fit-content;
    }

    .page-register__steps {
        gap: 30px;
    }

    .page-register__step-item {
        padding: 25px;
        padding-left: 25px; /* Remove extra padding for number */
        text-align: center;
    }

    .page-register__step-number {
        position: static;
        margin: 0 auto 15px auto;
    }

    .page-register__step-item h3,
    .page-register__step-item p {
        text-align: center;
    }

    .page-register__registration-form {
        padding: 20px;
    }

    .page-register__form-group label {
        text-align: center;
    }

    /* Buttons responsiveness */
    .page-register__cta-button,
    .page-register__btn-secondary,
    .page-register__submit-button,
    .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; /* Add padding for text inside button */
        padding-right: 15px; /* Add padding for text inside button */
        margin-left: 0 !important; /* Override default margins */
        margin-right: 0 !important;
        margin-bottom: 15px; /* Add vertical spacing between stacked buttons */
    }

    .page-register__cta-bottom .page-register__cta-button,
    .page-register__cta-bottom .page-register__btn-secondary {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
    .page-register__cta-bottom .page-register__btn-secondary:last-child {
        margin-bottom: 0;
    }

    /* FAQ responsiveness */
    .page-register__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-register__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px); /* Adjust width for toggle */
        text-align: left;
    }
    
    .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;
    }
}

/* Ensure content containers also respect mobile width */
.page-register__section,
.page-register__card,
.page-register__container {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 15px;
  padding-right: 15px;
}