/* style/register.css */
.page-register {
    color: #333333;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
    background-color: #FFFFFF;
}

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

.page-register__hero-section {
    position: relative;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
    padding: 0;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image for text contrast */
    min-width: 200px;
    min-height: 200px;
}

.page-register__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background for text */
    border-radius: 8px;
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

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

.page-register__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-register__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 200px;
    min-height: 50px;
    font-size: 1.1em;
}

.page-register__button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-register__button--register:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.page-register__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-register__button--login:hover {
    background-color: #e6a73c;
    transform: translateY(-2px);
}

.page-register__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

.page-register__value-section, .page-register__steps-section, .page-register__conditions-section, .page-register__faq-section {
    padding: 60px 0;
}

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

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

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

.page-register__value-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-register__value-text {
    font-size: 1em;
    color: #666666;
}

.page-register__steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.page-register__step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-register__step-icon {
    font-size: 2em;
    font-weight: bold;
    color: #FCBC45;
    background-color: #000000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.page-register__step-content {
    flex-grow: 1;
}

.page-register__step-heading {
    font-size: 1.6em;
    color: #000000;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-register__step-text {
    font-size: 1em;
    color: #666666;
}

.page-register__call-to-action {
    text-align: center;
    margin-top: 60px;
}

.page-register__conditions-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 40px;
}

.page-register__condition-item {
    background-color: #f8f8f8;
    padding: 20px;
    border-left: 5px solid #000000;
    border-radius: 5px;
    font-size: 1.1em;
    color: #333333;
}

.page-register__condition-item strong {
    color: #000000;
}

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

.page-register__faq-item {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #e0e0e0;
}

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

.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;
    font-size: 1em;
    color: #666666;
    background-color: #fdfdfd;
    border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__button {
        padding: 12px 25px;
    }
    .page-register__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-register__hero-title {
        font-size: 2em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-register__value-grid {
        grid-template-columns: 1fr;
    }
    .page-register__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-register__step-icon {
        margin-bottom: 15px;
    }
    .page-register__step-heading {
        font-size: 1.4em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-intro {
        font-size: 0.95em;
    }
    .page-register__faq-question {
        font-size: 1.1em;
    }

    .page-register__hero-image,
    .page-register__value-image,
    .page-register__container img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px; /* Ensure images are not too small */
    }
    .page-register__hero-content {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 1.6em;
    }
    .page-register__hero-description {
        font-size: 0.9em;
    }
    .page-register__section-title {
        font-size: 1.6em;
    }
    .page-register__faq-question {
        font-size: 1em;
    }
    .page-register__faq-answer {
        font-size: 0.9em;
    }
}

/* Ensure all images within .page-register are at least 200px */
.page-register img {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow flexible width */
    height: auto; /* Allow flexible height */
    max-width: 100%; /* Prevent overflow */
    object-fit: cover;
}

/* Specific overrides for certain image types to ensure minimum sizes are respected */
.page-register__value-image {
    width: 100%; /* Occupy full width of parent */
    height: 200px; /* Fixed height for consistent layout */
    object-fit: cover;
}

/* Filter property for hero image is allowed for aesthetic darkening, not color change */
.page-register__hero-image {
    filter: brightness(0.7);
}