/* style/register.css */

/* --- General Styles for page-register content --- */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though shared might define */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #017439; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-register a {
    color: #017439;
    text-decoration: none;
}

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

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #017439, #FFFFFF); /* Brand colors */
    color: #FFFFFF; /* Text color for gradient background */
}

.page-register__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-register__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #FFFFFF;
}

.page-register__main-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: 700;
    color: #FFFF00; /* Custom font color for register/login */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-register__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Custom color for register button */
    color: #FFFF00; /* Custom font color for register button */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__cta-button:hover {
    background: #FF0000; /* Slightly brighter red on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* --- Features Section --- */
.page-register__features-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Light background */
}

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

.page-register__feature-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 450px; /* Ensure cards have similar height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-register__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__feature-item img {
    width: 100%;
    max-width: 400px; /* Max width for feature images */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum size for content images */
    min-width: 200px;
}

.page-register__feature-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-register__feature-item p {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Allow paragraph to grow and push buttons down */
}

.page-register__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-register__btn-primary {
    background: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-register__btn-primary:hover {
    background: #005f2c;
    border-color: #005f2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__btn-secondary {
    background: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
    background: #e0ffe0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-register__steps-section .page-register__section-title {
    color: #FFFF00; /* Contrast title for dark background */
}

.page-register__steps-section .page-register__section-intro {
    color: #f0f0f0;
}

.page-register__steps-section a {
    color: #FFFF00; /* Link color for dark background */
}

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

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

.page-register__step-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-register__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFFF00; /* Highlight color */
    color: #017439; /* Text on highlight color */
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
    font-size: 1.6em;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-register__step-item p {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 2000px !important; /* Ensure content fits */
    padding: 20px !important;
    opacity: 1;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-register__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-register__faq-question:active {
    background: #eeeeee;
}

.page-register__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click */
}

.page-register__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #017439; /* Primary color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
    color: #C30808; /* Red for active toggle */
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* --- Final CTA Section --- */
.page-register__cta-final {
    padding: 100px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF;
    text-align: center;
}

.page-register__cta-final .page-register__section-title {
    color: #FFFF00;
    margin-bottom: 25px;
}

.page-register__cta-final .page-register__section-intro {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-register__cta-final .page-register__cta-button {
    font-size: 1.6em; /* Larger button */
    padding: 18px 45px;
}

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

    .page-register__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__main-title {
        font-size: 2.2em;
        margin-bottom: 10px;
    }

    .page-register__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-register__cta-button {
        padding: 12px 25px;
        font-size: 1.2em;
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-register__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-register__features-section,
    .page-register__steps-section,
    .page-register__faq-section,
    .page-register__cta-final {
        padding: 40px 0;
    }

    .page-register__features-grid,
    .page-register__steps-list {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-register__feature-item {
        padding: 20px;
        min-height: auto;
    }

    .page-register__feature-item img {
        min-width: 200px !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .page-register__feature-title {
        font-size: 1.5em;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-register__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

    .page-register__step-title {
        font-size: 1.4em;
    }

    .page-register__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-register__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px);
    }
    
    .page-register__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px !important;
    }
    
    /* Ensure all images inside page-register are responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}