/* style/register.css */

.page-register {
    color: #ffffff; /* Light text for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header on desktop */
    background-color: #000000; /* Ensure a consistent dark background for the page content */
}

/* Hero Section */
.page-register__hero-section {
    background-color: #0A192F; /* Primary dark color */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 40px;
    text-align: center;
    position: relative;
    overflow: hidden; /* For image positioning */
    min-height: 600px; /* Ensure hero section has a decent height */
}

.page-register__hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-register__main-title {
    font-size: 2.8em;
    color: #FFD700; /* Accent gold color */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.page-register__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-register__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Accent gold color */
    color: #0A192F; /* Dark text for gold button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-register__hero-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-register__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.15; /* Subtle background image */
    z-index: 0;
}

.page-register__hero-image {
    min-width: 100%; /* Ensure image covers the wrapper */
    min-height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken for better text contrast */
    transform: scale(1.1); /* Slightly zoom in for effect */
}


/* Value Section */
.page-register__value-section {
    background-color: #000000;
    padding: 80px 20px;
    text-align: center;
}

.page-register__section-title {
    font-size: 2.2em;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.page-register__section-description {
    font-size: 1.1em;
    color: #cccccc;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.page-register__value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

.page-register__value-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white */
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-register__value-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-register__value-icon {
    width: 400px; /* Display width from HTML attribute */
    height: 300px; /* Display height from HTML attribute */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-register__card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.page-register__card-text {
    color: #e0e0e0;
    font-size: 1em;
    text-align: justify;
}

.page-register__cta-wrapper {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-register__primary-button,
.page-register__secondary-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-register__primary-button {
    background-color: #FFD700;
    color: #0A192F;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.page-register__primary-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-register__secondary-button {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-register__secondary-button:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    border-color: #e6c200;
}

/* Steps Section */
.page-register__steps-section {
    background-color: #0A192F;
    padding: 80px 20px;
    text-align: center;
    counter-reset: step-counter; /* Initialize counter */
}

.page-register__registration-steps {
    list-style: none;
    padding: 0;
    margin: 50px auto 0 auto;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.page-register__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    border-left: 5px solid #FFD700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.page-register__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    top: 20px;
    left: -20px; /* Adjust to position outside the box */
    background-color: #FFD700;
    color: #0A192F;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4em;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.page-register__step-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    padding-left: 30px; /* Space for the counter */
    font-weight: bold;
}

.page-register__step-description {
    color: #e0e0e0;
    font-size: 1em;
    padding-left: 30px; /* Space for the counter */
    text-align: justify;
}

/* Conditions Section */
.page-register__conditions-section {
    background-color: #000000;
    padding: 80px 20px;
    text-align: center;
}

.page-register__conditions-list {
    list-style: none;
    padding: 0;
    margin: 50px auto 0 auto;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-register__condition-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.page-register__condition-item:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.page-register__condition-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-register__condition-text {
    color: #e0e0e0;
    font-size: 1em;
    text-align: justify;
}

.page-register__condition-text a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-register__condition-text a:hover {
    color: #e6c200;
    text-decoration: underline;
}

/* FAQ Section */
.page-register__faq-section {
    background-color: #0A192F;
    padding: 80px 20px;
    text-align: center;
}

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

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-register__faq-question {
    display: block;
    padding: 20px 25px;
    font-size: 1.2em;
    color: #FFD700;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.page-register__faq-question:hover {
    background-color: rgba(255, 215, 0, 0.05);
}

.page-register__faq-toggle {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: translateY(-50%) rotate(45deg); /* Change + to X or rotate */
}

.page-register__faq-answer {
    padding: 0 25px 20px 25px;
    color: #e0e0e0;
    font-size: 1em;
    line-height: 1.8;
    text-align: justify;
}

/* Final CTA Section */
.page-register__cta-final-section {
    background-color: #000000;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-register__cta-content {
    max-width: 800px;
}

.page-register__cta-title {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-register__cta-image-wrapper {
    max-width: 600px; /* Constrain image size */
    width: 100%;
    margin: 0 auto;
}

.page-register__cta-image {
    width: 600px; /* Display width from HTML attribute */
    height: 450px; /* Display height from HTML attribute */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 2.2em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__value-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-register__conditions-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-register__hero-image {
        filter: brightness(0.5); /* Slightly more darken on smaller screens for contrast */
    }
}

@media (max-width: 768px) {
    .page-register {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }

    .page-register__hero-section {
        flex-direction: column;
        padding: 40px 15px;
        min-height: 500px;
    }
    .page-register__main-title {
        font-size: 1.8em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-register__value-section,
    .page-register__steps-section,
    .page-register__conditions-section,
    .page-register__faq-section,
    .page-register__cta-final-section {
        padding: 50px 15px;
    }

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

    .page-register__value-grid {
        grid-template-columns: 1fr;
    }
    .page-register__value-icon {
        width: 100%; /* Allows it to scale up to 100% of parent */
        height: auto; /* Maintain aspect ratio */
        max-height: 250px; /* Optional: limit max height on mobile */
        min-width: 200px; /* Still enforce minimum */
        min-height: 200px; /* Still enforce minimum */
    }

    .page-register__registration-steps {
        margin-top: 30px;
    }
    .page-register__step-item {
        padding: 25px;
    }
    .page-register__step-title {
        font-size: 1.4em;
        padding-left: 20px;
    }
    .page-register__step-description {
        padding-left: 20px;
    }
    .page-register__step-item::before {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
        left: -15px;
        top: 15px;
    }

    .page-register__conditions-list {
        grid-template-columns: 1fr;
    }

    .page-register__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-register__faq-toggle {
        right: 20px;
        font-size: 1.3em;
    }
    .page-register__faq-answer {
        padding: 0 20px 18px 20px;
    }

    .page-register__cta-final-section {
        flex-direction: column;
    }
    .page-register__cta-title {
        font-size: 2em;
    }
    .page-register__cta-description {
        font-size: 1em;
    }
    .page-register__primary-button,
    .page-register__secondary-button {
        width: 100%;
        text-align: center;
    }

    /* Mobile content area images must not overflow */
    .page-register img {
        max-width: 100%;
        height: auto;
    }
    .page-register__hero-image {
        min-width: unset; /* Allow hero image to scale down */
        min-height: unset;
    }
}

/* Ensure content area images are at least 200px */
.page-register__hero-image,
.page-register__value-icon,
.page-register__cta-image {
    min-width: 200px;
    min-height: 200px;
}

/* Specific override for value icons on small screens to ensure they don't get too small */
@media (max-width: 480px) {
    .page-register__value-icon {
        width: 100%; /* Take full width of card */
        height: auto; /* Maintain aspect ratio */
        max-height: 200px; /* Limit max height for very small screens */
        min-width: 200px; /* Still enforce minimum */
        min-height: 150px; /* Allow slightly smaller height if aspect ratio forces it */
    }
}