/* style/register.css */

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

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

.page-register__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-register__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #EA7C07;
    border-radius: 2px;
}

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

.page-register__section-title--light::after {
    background-color: #FFFFFF;
}

.page-register__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* CTA Buttons */
.page-register__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

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

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

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

.page-register__btn-secondary:hover {
    background: #f0f0f0;
    color: #1e87bb;
    border-color: #1e87bb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-register__link-button {
    display: inline-block;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    color: #26A9E0;
    border: 1px solid #26A9E0;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.page-register__link-button:hover {
    background-color: #26A9E0;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 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 offset */
    background-color: #f0f8ff; /* Light background for hero */
}

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

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

.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%;
    max-width: 900px;
}

.page-register__main-title {
    font-size: 48px;
    font-weight: 900;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-register__intro-description {
    font-size: 20px;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

.page-register__benefit-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Ensure min size */
}

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

.page-register__card-text {
    font-size: 16px;
    color: #555555;
}

.page-register__cta-buttons {
    text-align: center;
    margin-top: 40px;
}

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

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

.page-register__step-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__step-icon {
    width: 60px;
    height: 60px;
    background-color: #EA7C07;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 25px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-register__card-title--light {
    color: #FFFFFF;
}

.page-register__card-text--light {
    color: #f0f0f0;
}

/* Promotion Section */
.page-register__promo-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-register__promo-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
}

.page-register__promo-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    min-height: 200px; /* Ensure min size */
}

.page-register__promo-card .page-register__card-title {
    margin-top: 0;
    padding: 0 20px;
}

.page-register__promo-card .page-register__card-text {
    padding: 0 20px;
    margin-bottom: 20px;
}

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

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

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

/* FAQ default state - answer hidden */
.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.3s ease;
  padding: 0 20px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height to ensure expansion */
.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to contain any content */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

/* Question style */
.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-item.active .page-register__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #26A9E0;
}

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

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

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

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

.page-register__faq-item.active .page-register__faq-toggle {
  color: #EA7C07;
  transform: rotate(45deg); /* Change to X or rotate for active state */
}

/* CTA Bottom Section */
.page-register__cta-bottom-section {
    padding: 80px 0;
    background-color: #26A9E0;
    text-align: center;
    color: #FFFFFF;
}

.page-register__cta-bottom-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 40px;
    }
    .page-register__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    /* Mobile specific padding for hero section */
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__hero-image img {
        border-radius: 8px;
    }

    .page-register__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-register__intro-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-register__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        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 {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex; /* For multiple buttons */
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px; /* Spacing between stacked buttons */
    }

    .page-register__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-register__section-description {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__promo-section,
    .page-register__faq-section,
    .page-register__cta-bottom-section {
        padding: 50px 0;
    }

    .page-register__benefit-card,
    .page-register__step-card,
    .page-register__promo-card {
        padding: 25px;
    }

    .page-register__benefit-card img,
    .page-register__promo-card img {
        height: auto;
        min-height: 200px; /* Maintain min size */
    }

    .page-register__card-title {
        font-size: 20px;
    }
    .page-register__card-text {
        font-size: 15px;
    }
    
    /* Mobile image responsive optimization */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-register__container,
    .page-register__hero-container,
    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__promo-cards,
    .page-register__faq-list,
    .page-register__cta-bottom-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile specific styles */
    .page-register__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    
    .page-register__faq-question h3 {
      font-size: 16px;
      margin-bottom: 0;
      width: calc(100% - 40px);
    }
    
    .page-register__faq-toggle {
      margin-left: 10px;
      width: 28px;
      height: 28px;
      font-size: 24px;
    }
    
    .page-register__faq-answer {
      padding: 0 15px;
    }
    
    .page-register__faq-item.active .page-register__faq-answer {
      padding: 15px !important;
    }
}

/* Ensuring contrast for brand colors */
.page-register__dark-bg {
    background: #26A9E0; /* Primary color as dark background */
    color: #ffffff; /* White text for contrast */
}

.page-register__dark-bg .page-register__section-title {
    color: #FFFFFF;
}
.page-register__dark-bg .page-register__section-description {
    color: #f0f0f0;
}
.page-register__dark-bg .page-register__card-title {
    color: #FFFFFF;
}
.page-register__dark-bg .page-register__card-text {
    color: #f0f0f0;
}