/* style/register.css */
.page-register {
    color: #333333; /* Default text color for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff; /* White text on dark hero background */
    text-align: center;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure hero section has a minimum height */
    background-color: #000000; /* Fallback dark background */
}

.page-register__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6; /* Slightly dim the image for text readability */
    min-width: unset;
    min-height: unset;
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay for text readability */
    padding: 30px;
    border-radius: 10px;
}

.page-register__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FCBC45; /* Gold for emphasis */
    line-height: 1.2;
}

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

.page-register__hero-button {
    display: inline-block;
    background-color: #FFFFFF; /* White for Register */
    color: #000000; /* Black text */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin: 10px;
    min-width: 150px;
    text-align: center;
}

.page-register__hero-button:hover {
    background-color: #f0f0f0;
}

.page-register__hero-button--secondary {
    background-color: #FCBC45; /* Gold for Login */
    color: #000000; /* Black text */
}

.page-register__hero-button--secondary:hover {
    background-color: #e0a030;
}

/* General Container */
.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section Titles and Intros */
.page-register__section-title {
    font-size: 2.5em;
    color: #000000; /* Dark text for light background */
    text-align: center;
    margin-bottom: 20px;
}

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

/* Value Section */
.page-register__value-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.page-register__value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-register__value-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-register__value-icon {
    width: 200px; /* Enforce min width */
    height: 200px; /* Enforce min height */
    object-fit: contain; /* Icons might look better contained */
    margin: 0 auto 20px auto; /* Center icons */
}

.page-register__value-heading {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
}

.page-register__value-text {
    color: #666666;
}

/* Steps Section */
.page-register__steps-section {
    padding: 60px 0;
}

.page-register__steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.page-register__step-item {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 20px;
    border-left: 5px solid #FCBC45; /* Gold accent */
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.page-register__step-item::before {
    counter-increment: step-counter;
    content: "0" counter(step-counter);
    position: absolute;
    left: -25px; /* Adjust as needed */
    top: 50%;
    transform: translateY(-50%);
    background-color: #FCBC45;
    color: #000000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-register__step-heading {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 10px;
    margin-left: 40px; /* Offset for the counter */
}

.page-register__step-text {
    color: #666666;
    margin-left: 40px; /* Offset for the counter */
}

.page-register__cta-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    background-color: #FCBC45; /* Gold */
    color: #000000;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-register__cta-button--small {
    font-size: 1em;
    padding: 12px 25px;
    margin-top: 30px;
}

/* Conditions Section */
.page-register__conditions-section {
    background-color: #000000; /* Dark background */
    color: #ffffff; /* White text */
    padding: 60px 0;
}

.page-register__conditions-section .page-register__section-title,
.page-register__conditions-section .page-register__section-intro {
    color: #ffffff;
}

.page-register__conditions-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.page-register__condition-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__condition-heading {
    font-size: 1.3em;
    color: #FCBC45; /* Gold */
    margin-bottom: 10px;
}

.page-register__condition-text {
    color: #e0e0e0;
}

.page-register__condition-text a {
    color: #FCBC45; /* Gold link */
    text-decoration: none;
    font-weight: bold;
}

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

/* FAQ Section */
.page-register__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

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

.page-register__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-register__faq-question {
    display: block;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    position: relative;
    user-select: none;
    background-color: #FCBC45; /* Gold background for questions */
    color: #000000; /* Black text on gold */
    border-bottom: 1px solid #e0a030;
}

.page-register__faq-question:hover {
    background-color: #e0a030;
}

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

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

.page-register__faq-answer {
    padding: 20px 25px;
    background-color: #ffffff;
    border-top: 1px solid #eee;
    color: #555555;
    font-size: 1em;
}

/* Global image rules for content area */
.page-register img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

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

    .page-register__hero-section {
        min-height: 450px;
        padding: 60px 15px;
    }

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

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

    .page-register__hero-button {
        padding: 12px 20px;
        font-size: 1em;
        margin: 5px;
    }

    .page-register__container {
        padding: 20px 15px;
    }

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

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

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

    .page-register__step-item::before {
        left: 15px;
        top: 25px;
        transform: translateY(0);
    }

    .page-register__step-heading,
    .page-register__step-text {
        margin-left: 70px; /* Adjust for mobile counter position */
    }

    .page-register__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-register__faq-question .page-register__faq-toggle {
        right: 20px;
    }

    .page-register__faq-answer {
        padding: 15px 20px;
    }

    /* Ensure content area does not cause horizontal scroll on mobile */
    .page-register__hero-section,
    .page-register__value-section,
    .page-register__steps-section,
    .page-register__conditions-section,
    .page-register__faq-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-register__value-item,
    .page-register__step-item,
    .page-register__condition-item,
    .page-register__faq-item {
        margin-left: 0;
        margin-right: 0;
    }
}