.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #f8f8f8); /* Inherit from shared or fallback */
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top margin, body handles main offset */
    padding-bottom: 40px;
    background: #017439; /* Brand primary color for dark section */
    color: #FFFFFF; /* White text for dark background */
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-register__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

.page-register__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size clamp */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-register__subtitle {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-register__btn-primary {
    display: inline-block;
    background: #C30808; /* Custom Register button color */
    color: #FFFF00; /* Custom Register font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary:hover {
    background: #a30606;
    transform: translateY(-2px);
}

/* General Section Styling */
.page-register__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Brand primary color */
}

.page-register__section-title--white {
    color: #FFFFFF;
}

.page-register__dark-section {
    background: #017439;
    color: #FFFFFF;
}

.page-register__light-bg {
    background: #FFFFFF;
    color: #333333;
}

/* Steps Section */
.page-register__steps-section {
    padding: 60px 0;
}

.page-register__steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.page-register__step-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-register__step-image {
    width: 100%;
    height: 200px;
    object-fit: contain; /* Changed from cover to contain for better step icon visibility */
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
}

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

.page-register__step-description {
    font-size: 1rem;
    color: #555555;
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* Button container responsive */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-register__btn-secondary {
    display: inline-block;
    background: #C30808; /* Custom Login button color */
    color: #FFFF00; /* Custom Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-secondary:hover {
    background: #a30606;
    transform: translateY(-2px);
}

/* Registration Form Section */
.page-register__form-section {
    padding: 60px 0;
    text-align: center;
}

.page-register__registration-form {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.page-register__form-group {
    margin-bottom: 20px;
}

.page-register__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
}

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.page-register__form-input::placeholder {
    color: #aaaaaa;
}

.page-register__btn-submit {
    width: 100%;
    background: #C30808; /* Custom Register button color */
    color: #FFFF00; /* Custom Register font color */
    padding: 15px 25px;
    border-radius: 8px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-submit:hover {
    background: #a30606;
    transform: translateY(-2px);
}

.page-register__terms-text {
    font-size: 0.95rem;
    color: #FFFFFF;
}

.page-register__terms-link {
    color: #FFFF00; /* Link color for terms */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-register__terms-link:hover {
    color: #f0f0f0;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 60px 0;
}

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

.page-register__benefit-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.page-register__benefit-icon {
    width: 100%;
    max-width: 250px; /* Ensure images are not too wide in card */
    height: 180px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
}

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

.page-register__benefit-description {
    font-size: 0.95rem;
    color: #555555;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 60px 0;
}

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #f5f5f5;
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure text color for light background */
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Ensure text color for light background */
}

/* --- Responsive Design (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-register__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-register__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }

    .page-register__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-register__subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register__btn-submit {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    /* Steps Section */
    .page-register__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-register__steps-grid {
        grid-template-columns: 1fr; /* Single column for steps */
        gap: 20px;
    }

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

    .page-register__step-image {
        height: 150px;
    }

    .page-register__step-title {
        font-size: 1.2rem;
    }

    /* Registration Form Section */
    .page-register__form-section {
        padding: 40px 0;
    }

    .page-register__registration-form {
        padding: 25px;
        margin: 0 auto 20px auto;
    }

    .page-register__form-label {
        font-size: 0.95rem;
    }

    .page-register__form-input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    /* Benefits Section */
    .page-register__benefits-section {
        padding: 40px 0;
    }

    .page-register__benefits-grid {
        grid-template-columns: 1fr; /* Single column for benefits */
        gap: 20px;
    }

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

    .page-register__benefit-icon {
        max-width: 200px;
        height: 150px;
    }

    .page-register__benefit-title {
        font-size: 1.15rem;
    }

    /* FAQ Section */
    .page-register__faq-section {
        padding: 40px 0;
    }

    details.page-register__faq-item summary.page-register__faq-question { padding: 15px; }
    .page-register__faq-qtext { font-size: 15px; }
    details.page-register__faq-item .page-register__faq-answer { padding: 0 15px 15px; }

    /* General Image Responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__hero-image-wrapper,
    .page-register__steps-grid,
    .page-register__registration-form,
    .page-register__benefits-grid,
    .page-register__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}