/* style/register.css */

/* --- General Styling --- */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    /* body handles padding-top: var(--header-offset); */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.page-register__text-main {
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-register__text-secondary {
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-bottom: 20px;
    font-size: 1em;
}

.page-register__text-dark {
    color: #333333; /* Ensuring contrast on light backgrounds */
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* --- Buttons --- */
.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-register__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Main brand color for text */
    border: 2px solid #2AD16F; /* Main brand color for border */
}

.page-register__btn-secondary:hover {
    background-color: #2AD16F;
    color: #08160F; /* Background color for text on hover */
    border-color: #2AD16F;
}

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure no overflow */
    box-sizing: border-box;
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area */
}

.page-register__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-register__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-register__description {
    font-size: 1.2em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Benefits Section --- */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #11271B; /* Card BG */
}

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

.page-register__benefit-card {
    background-color: #0A4B2C; /* Deep Green, slightly lighter than BG */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid #2E7A4E; /* Border */
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
}

.page-register__benefit-icon {
    width: 100%;
    max-width: 250px; /* Ensure images are not too large */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.page-register__card-title {
    font-size: 1.5em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__card-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
}

/* --- Registration Guide Section --- */
.page-register__registration-guide {
    padding: 80px 0;
}

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

.page-register__step-item {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
    position: relative;
    overflow: hidden;
}

.page-register__step-number {
    font-size: 3em;
    font-weight: bold;
    color: #57E38D; /* Glow */
    margin-bottom: 15px;
    line-height: 1;
}

.page-register__step-title {
    font-size: 1.6em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__step-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
    margin-bottom: 20px;
}

.page-register__step-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
}

.page-register__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* --- Requirements Section --- */
.page-register__requirements-section {
    padding: 80px 0;
    background-color: #F2FFF6; /* Light background for contrast */
}

.page-register__requirements-section .page-register__section-title {
    color: #08160F; /* Dark text on light background */
}

.page-register__requirements-section .page-register__text-dark {
    color: #333333; /* Dark text on light background */
}

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

.page-register__list-item {
    background-color: #FFFFFF; /* White background for list items */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-register__list-title {
    font-size: 1.4em;
    color: #11A84E; /* Main brand color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-register__list-description {
    color: #333333; /* Dark text */
    font-size: 0.95em;
}

/* --- Security Section --- */
.page-register__security-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

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

.page-register__feature-item {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
}

.page-register__feature-title {
    font-size: 1.5em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__feature-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
}

/* --- Promotions Section --- */
.page-register__promotions-section {
    padding: 80px 0;
    background-color: #F2FFF6; /* Light background for contrast */
}

.page-register__promotions-section .page-register__section-title {
    color: #08160F; /* Dark text on light background */
}

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

.page-register__promo-card {
    background-color: #FFFFFF; /* White background for promo cards */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e0e0e0;
}

.page-register__promo-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure text on promo card is dark for contrast */
.page-register__promo-card .page-register__card-title,
.page-register__promo-card .page-register__card-description {
    color: #333333; /* Dark text for contrast */
}


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

.page-register__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__faq-item {
    background-color: #11271B; /* Card BG */
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2E7A4E; /* Border */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #11271B; /* Card BG */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for summary */
}

.page-register__faq-question::-webkit-details-marker {
    display: none;
}

.page-register__faq-question:hover {
    background-color: #0A4B2C; /* Deep Green */
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #57E38D; /* Glow */
    margin-left: 15px;
}

.page-register__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.6;
}

/* Open state for details */
.page-register__faq-item[open] .page-register__faq-question {
    background-color: #0A4B2C; /* Deep Green */
}

/* --- Conclusion Section --- */
.page-register__conclusion-section {
    padding: 80px 0;
    background-color: #F2FFF6; /* Light background for contrast */
    text-align: center;
}

.page-register__conclusion-section .page-register__section-title {
    color: #08160F; /* Dark text on light background */
}

.page-register__conclusion-section .page-register__text-dark {
    color: #333333; /* Dark text on light background */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__main-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }
    .page-register__description {
        font-size: 1.1em;
    }
    .page-register__benefits-grid,
    .page-register__guide-steps,
    .page-register__requirements-list,
    .page-register__security-features,
    .page-register__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-register__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-register__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }

    .page-register__description {
        font-size: 1em;
    }

    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }

    .page-register__hero-section {
        padding-bottom: 40px;
    }

    .page-register__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-register__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-register__benefits-section,
    .page-register__registration-guide,
    .page-register__requirements-section,
    .page-register__security-section,
    .page-register__promotions-section,
    .page-register__faq-section,
    .page-register__conclusion-section {
        padding: 40px 0;
    }

    .page-register__benefits-grid,
    .page-register__guide-steps,
    .page-register__requirements-list,
    .page-register__security-features,
    .page-register__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__benefit-card,
    .page-register__step-item,
    .page-register__list-item,
    .page-register__feature-item,
    .page-register__promo-card {
        padding: 20px;
    }

    .page-register__benefit-icon,
    .page-register__step-image,
    .page-register__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    /* Ensure all content sections have proper box-sizing and overflow for mobile */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__registration-guide,
    .page-register__requirements-section,
    .page-register__security-section,
    .page-register__promotions-section,
    .page-register__faq-section,
    .page-register__conclusion-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-register__hero-content {
      padding-left: 15px;
      padding-right: 15px;
    }
}