/* style/register.css */
.page-register {
    background-color: #08160F; /* Ensure main background color */
    color: #F2FFF6; /* Main text color */
}

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

/* Hero Section */
.page-register__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile first, then row for desktop */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small padding, relying on body for header offset */
    padding-bottom: 40px;
    background-color: #08160F;
    position: relative;
    overflow: hidden; /* Ensure no image overflow */
}

.page-register__hero-image-wrapper {
    width: 100%;
    /* aspect-ratio: 16/9; Use aspect-ratio for consistent image sizing */
    /* min-height: 200px; ensure minimum height */
    /* For desktop, this could be a background or a large img */
}

.page-register__hero-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Minimum image width */
    min-height: 200px; /* Minimum image height */
}

.page-register__hero-content {
    padding: 20px;
    max-width: 800px;
    margin-top: 20px; /* Space between image and text */
}

.page-register__main-title {
    font-size: clamp(1.8rem, 5vw, 3rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #F2FFF6;
}

.page-register__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #A7D9B8;
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s ease;
    min-width: 200px; /* Ensure button minimum size */
    min-height: 44px; /* Ensure button minimum height for touch targets */
    border: none;
    cursor: pointer;
}

.page-register__cta-button:hover {
    opacity: 0.9;
}

/* Section Titles */
.page-register__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2FFF6;
}

.page-register__section-title--gold {
    color: #F2C14E; /* Gold color for specific titles */
}

/* Steps Section */
.page-register__steps-section {
    padding: 60px 20px;
    background-color: #08160F;
}

.page-register__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.page-register__step-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid #2E7A4E; /* Border color */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px; /* Ensure card minimum height */
}

.page-register__step-icon {
    width: 100%; /* Make image fill card width */
    max-width: 200px; /* Constrain icon size */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size for content */
    min-height: 200px; /* Min image size for content */
}

.page-register__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F2FFF6;
}

.page-register__step-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #A7D9B8;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 60px 20px;
    background-color: #08160F;
}

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

.page-register__benefit-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #2E7A4E; /* Border color */
    min-height: 200px; /* Ensure card minimum height */
}

.page-register__benefit-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F2FFF6;
}

.page-register__benefit-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #A7D9B8;
}

/* Call to Action Section */
.page-register__call-to-action-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #0A4B2C; /* Deep Green */
    border-top: 1px solid #2E7A4E; /* Divider */
}

.page-register__cta-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #F2FFF6;
}

.page-register__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.page-register__cta-subtext {
    font-size: 1rem;
    color: #A7D9B8;
}

.page-register__login-link {
    color: #57E38D; /* Glow color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-register__login-link:hover {
    color: #F2C14E; /* Gold on hover */
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-register__hero-section {
        flex-direction: row; /* Desktop: image on left, content on right */
        text-align: left;
        padding: 40px 20px;
        justify-content: center;
        gap: 40px;
    }

    .page-register__hero-image-wrapper {
        flex: 1;
        max-width: 50%; /* Image takes half width */
    }

    .page-register__hero-content {
        flex: 1;
        max-width: 50%; /* Content takes half width */
        margin-top: 0;
        text-align: left;
    }

    .page-register__main-title {
        text-align: left;
    }

    .page-register__hero-description {
        text-align: left;
    }

    .page-register__cta-button {
        /* Specific desktop adjustments if needed */
    }

    .page-register__steps-grid,
    .page-register__benefits-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    }
}

@media (max-width: 849px) { /* Mobile specific rules from §0.5 */
    .page-register__hero-section {
        flex-direction: column; /* Ensure column layout on mobile */
        text-align: center;
        padding: 10px 12px 40px 12px; /* Add horizontal padding */
    }

    .page-register__hero-image-wrapper {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4/3; /* Mobile visual aspect ratio */
    }

    .page-register__hero-image {
        max-width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        object-position: center;
    }

    .page-register__hero-content {
        width: 100%;
        max-width: 100%;
        padding: 20px 0; /* Adjust padding for mobile content */
    }

    .page-register__main-title,
    .page-register__hero-description {
        text-align: center;
    }

    .page-register__cta-button {
        width: 100%;
        max-width: 320px; /* CTA button max width for mobile */
        margin: 0 auto;
        min-height: 44px; /* Touch target */
    }

    .page-register__steps-grid,
    .page-register__benefits-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .page-register__step-card,
    .page-register__benefit-card {
        padding: 20px;
    }

    .page-register__step-icon {
        max-width: 150px; /* Adjust icon size for smaller screens */
        min-width: 200px; /* Still ensure minimum image size */
    }
}

@media (max-width: 549px) {
    .page-register__main-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem); /* Even smaller h1 on very small screens */
    }
    .page-register__hero-description {
        font-size: 1rem;
    }
    .page-register__section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
    .page-register__steps-grid,
    .page-register__benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure content area images are never smaller than 200px */
.page-register img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    min-width: 200px;
    min-height: 200px;
}

/* Mobile image overflow prevention */
@media (max-width: 768px) {
    .page-register img {
        max-width: 100%;
        height: auto;
    }
    .page-register {
        max-width: 100%;
        overflow-x: hidden;
    }
}