/* style/register.css */

/* Base styles for the register page */
.page-register {
    color: #333333; /* Dark text for light body background (var(--secondary-color) assumed to be #FFFFFF) */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #000000; /* Main color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-register__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FCBC45; /* Login button color for accent */
    border-radius: 2px;
}

.page-register__section-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

/* Hero Section */
.page-register__hero-section {
    background-color: #000000; /* Main color for hero background */
    color: #FFFFFF; /* Light text for dark background */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.page-register__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-register__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Slightly dim the background image */
    display: block;
}

.page-register__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

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

.page-register__hero-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color for CTA */
    color: #000000; /* Dark text on bright button */
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* Why Register Section */
.page-register__why-register-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.page-register__feature-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    color: #000000;
    transition: transform 0.3s ease;
}

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

.page-register__primary-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background-color: #FCBC45;
    color: #000000;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-register__steps-content {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.page-register__steps-list {
    list-style: none;
    padding: 0;
    flex: 1;
}

.page-register__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.page-register__step-number {
    background-color: #000000; /* Main color for step numbers */
    color: #FFFFFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.page-register__step-title {
    font-size: 1.5em;
    color: #000000;
    margin-top: 0;
    margin-bottom: 5px;
}

.page-register__step-description {
    font-size: 1em;
    color: #555555;
}

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

.page-register__steps-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-register__secondary-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background-color: #000000;
    color: #FFFFFF;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-register__secondary-button:hover {
    background-color: #333333;
    transform: translateY(-3px);
}

/* Conditions Section */
.page-register__conditions-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.page-register__condition-item {
    background-color: #FFFFFF;
    border-left: 5px solid #FCBC45;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-register__condition-title {
    font-size: 1.4em;
    color: #000000;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-register__condition-description {
    font-size: 1em;
    color: #555555;
}

.page-register__security-image {
    text-align: center;
    margin-top: 50px;
}

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

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

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

.page-register__faq-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #000000; /* Dark text on bright accent */
    cursor: pointer;
    background-color: #FCBC45; /* Accent color for FAQ questions */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-register__faq-item[open] .page-register__faq-question {
    background-color: #FFD700;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(45deg);
}

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

.page-register__faq-answer p {
    margin: 0;
}

.page-register__faq-image {
    text-align: center;
    margin-top: 50px;
}

.page-register__faq-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__steps-content {
        flex-direction: column;
    }
    .page-register__steps-image {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .page-register {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-register__hero-section {
        padding: 60px 20px;
    }
    .page-register__hero-title {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__hero-button,
    .page-register__primary-button,
    .page-register__secondary-button {
        padding: 12px 30px;
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-register__features-list,
    .page-register__conditions-grid {
        grid-template-columns: 1fr;
    }
    .page-register__step-title {
        font-size: 1.3em;
    }
    .page-register__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-register__faq-answer {
        padding: 15px 20px;
    }
    /* Ensure content images are responsive and do not cause overflow */
    .page-register img {
        max-width: 100%;
        height: auto;
    }
    .page-register__steps-image img,
    .page-register__security-image img,
    .page-register__faq-image img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Still enforce min size */
        min-height: 200px; /* Still enforce min size */
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 1.8em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__step-item {
        flex-direction: column;
        text-align: center;
    }
    .page-register__step-number {
        margin: 0 auto 15px auto;
    }
}