/* style/register.css */

/* --- General Page Styles --- */
.page-register {
    color: #f0f0f0; /* Light text on dark background from shared.css */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

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

.page-register__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Light grey for descriptions on dark background */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #1a1a1a; /* Dark background for hero */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    overflow: hidden; /* Prevent image overflow */
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 40px;
    text-align: left;
    color: #ffffff;
}

.page-register__hero-title {
    font-size: 3.2em;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-register__hero-cta {
    display: flex;
    gap: 15px;
}

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

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay effect */
    filter: brightness(0.6); /* Darken image */
}

/* --- Buttons --- */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-register__btn-primary {
    background: #26A9E0; /* Main brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-register__btn-primary:hover {
    background: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
}

.page-register__btn-secondary {
    background: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-register__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

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

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

.page-register__step-card {
    background-color: #1a1a1a; /* Slightly lighter dark background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__step-card:hover {
    transform: translateY(-10px);
}

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

.page-register__step-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* --- Benefits Section --- */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color for this section */
    color: #ffffff;
}

.page-register__benefits-section .page-register__section-title {
    color: #ffffff; /* White title on brand color background */
}

.page-register__benefits-section .page-register__section-description {
    color: #f0f0f0;
}

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

.page-register__benefit-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on brand color */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__benefit-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-register__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Make icons white if they are dark */
    min-width: 100px;
    min-height: 100px;
}

.page-register__benefit-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-register__benefit-text {
    color: #f0f0f0;
    font-size: 0.95em;
}

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

.page-register__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #222222; /* Slightly darker for question background */
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: #26A9E0; /* Brand color on hover */
}

.page-register__faq-question h3 {
    margin: 0;
    color: inherit; /* Inherit color from parent */
    flex-grow: 1;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #26A9E0; /* Brand color for toggle icon */
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg);
    color: #ffffff; /* White toggle when active */
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
    padding-top: 0; /* Adjust padding for smooth transition */
}

.page-register__faq-answer p {
    margin: 0;
    padding-bottom: 15px;
    color: inherit;
}

/* --- CTA Section --- */
.page-register__cta-section {
    background-color: #1a1a1a;
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-register__hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-bottom: 60px;
    }

    .page-register__hero-content {
        max-width: 100%;
        padding: 30px;
        text-align: center;
    }

    .page-register__hero-title {
        font-size: 2.5em;
    }

    .page-register__hero-description {
        font-size: 1.1em;
    }

    .page-register__hero-image-wrapper {
        position: relative;
        height: 300px;
    }

    .page-register__steps-grid,
    .page-register__benefits-grid {
        grid-template-columns: 1fr;
    }
}

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

    .page-register__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-register__section-title {
        font-size: 2em;
    }

    .page-register__hero-title {
        font-size: 2em;
    }

    .page-register__hero-description {
        font-size: 1em;
    }

    .page-register__hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register a[class*="button"],
    .page-register a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-register__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset;
        min-height: unset;
    }
    
    .page-register__hero-image-wrapper,
    .page-register__step-card,
    .page-register__benefit-card,
    .page-register__faq-item,
    .page-register__cta-section,
    .page-register__steps-section,
    .page-register__benefits-section,
    .page-register__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right handled by .page-register__container */
    }

    /* Adjust padding for sections to prevent overflow and ensure spacing */
    .page-register__hero-section,
    .page-register__steps-section,
    .page-register__benefits-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding: 40px 0 !important; /* Reduce vertical padding on mobile */
    }
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

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

/* --- Color Contrast & Theming --- */
/* Assuming body background is dark (var(--dark-color)) */
.page-register {
  color: #f0f0f0; /* Light text on dark background */
}

.page-register__hero-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-register__steps-section {
  background-color: #111111;
  color: #ffffff;
}

.page-register__step-card {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-register__benefits-section {
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
}

.page-register__benefits-section .page-register__section-title {
    color: #ffffff; /* White title on brand color background */
}

.page-register__benefits-section .page-register__section-description {
    color: #f0f0f0;
}

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
}

.page-register__faq-section {
  background-color: #111111;
  color: #ffffff;
}

.page-register__faq-item {
  background-color: #1a1a1a;
}

.page-register__faq-question {
  background-color: #222222;
  color: #ffffff;
}

.page-register__faq-answer {
  color: #f0f0f0;
}

.page-register__cta-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Specific color rules */
.page-register__btn-primary {
    background: #26A9E0; /* Main brand color */
    color: #ffffff;
    border-color: #26A9E0;
}

.page-register__btn-secondary {
    background: transparent;
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-register__faq-question:hover {
    background-color: #26A9E0; /* Brand color on hover */
}

.page-register__faq-toggle {
    color: #26A9E0; /* Brand color for toggle icon */
}

.page-register__faq-item.active .page-register__faq-toggle {
    color: #ffffff; /* White toggle when active */
}

/* Login button specific color (if applicable) */
.page-register__login-button {
    background: #EA7C07;
    color: #ffffff;
    border-color: #EA7C07;
}

/* Ensure images maintain original color, no filters */
.page-register img {
    filter: none !important; /* Override any potential filter */
}