/* style/register.css */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default background */
}

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

.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    padding: 60px 20px;
    gap: 30px;
    overflow: hidden;
    box-sizing: border-box;
}

.page-register__hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-register__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for register/login font */
    line-height: 1.2;
}

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

.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.page-register__btn-primary {
    background-color: #C30808; /* Custom color for Register button */
    color: #FFFF00; /* Custom color for Register/Login font */
    border: 2px solid #C30808;
}

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

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

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.page-register__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439;
}

.page-register__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #333333;
}

.page-register__benefits-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-register__benefit-item {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #FFFFFF;
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-register__benefit-icon {
    width: 250px;
    height: 187px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-register__benefit-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-register__benefit-text {
    font-size: 1em;
    color: #555555;
}

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

.page-register__steps-section .page-register__section-title,
.page-register__steps-section .page-register__section-intro {
    color: #FFFFFF;
}

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

.page-register__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
}

.page-register__step-number {
    background-color: #C30808; /* Custom color for Register button */
    color: #FFFF00; /* Custom color for Register/Login font */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-register__step-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-register__step-image {
    width: 300px;
    height: 225px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__cta-buttons-bottom {
    margin-top: 60px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

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

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

.page-register__faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    color: #333333;
}

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

.page-register__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333333;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: #e5e5e5;
}

.page-register__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #017439;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 2.5em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__hero-image-wrapper {
        opacity: 0.15;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-register__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-register__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-register__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-register__cta-buttons-bottom {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-register__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-register__section-intro {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-register__benefits-section, .page-register__steps-section, .page-register__faq-section {
        padding: 50px 0;
    }
    .page-register__benefits-grid, .page-register__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-register__benefit-icon, .page-register__step-image {
        width: 100% !important;
        height: auto !important;
        max-width: 250px !important;
        margin: 0 auto 20px auto;
    }
    .page-register__container,
    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__faq-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-register img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: 1.8em;
    }
    .page-register__hero-description {
        font-size: 0.9em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__step-title {
        font-size: 1.5em;
    }
    .page-register__faq-title {
        font-size: 1em;
    }
    .page-register__faq-question {
        padding: 15px;
    }
    .page-register__faq-answer {
        padding: 15px;
    }
}