/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
    font-family: 'Arial', sans-serif;
    color: #1F2D3D; /* Text Main */
    background: #F4F7FB; /* Background */
    line-height: 1.6;
}

/* Container for consistent content width */
.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-register__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-register__section-description {
    font-size: 18px;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    margin-bottom: 40px;
    background: #F4F7FB; /* Background */
    overflow: hidden;
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

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

.page-register__hero-content {
    text-align: center;
    padding: 40px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
    background: #F4F7FB; /* Use solid background for text block */
    border-radius: 0 0 15px 15px;
}

.page-register__main-title {
    font-size: clamp(28px, 4vw + 1rem, 48px); /* Adjusted to clamp for responsiveness */
    font-weight: 800;
    color: #2F6BFF; /* Main Color */
    margin-bottom: 20px;
    line-height: 1.1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__description {
    font-size: 18px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
    max-width: 400px; /* Limit button width */
    width: 100%; /* Ensure it takes full width up to max-width */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #ffffff;
    border: none;
}

.page-register__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
    background: #ffffff; /* Card BG */
    color: #2F6BFF; /* Main Color */
    border: 2px solid #2F6BFF; /* Main Color */
}

.page-register__btn-secondary:hover {
    background: #2F6BFF; /* Main Color */
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-register__btn-full-width {
    max-width: 500px;
    margin: 40px auto 0;
    display: block;
}

/* Steps Section */
.page-register__steps-section {
    padding: 60px 0;
    margin-bottom: 40px;
    background: #ffffff; /* Card BG */
}

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

.page-register__step-card {
    background: #ffffff; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__step-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: contain; /* Ensure image content is visible */
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
}

.page-register__step-title {
    font-size: 24px;
    font-weight: 700;
    color: #2F6BFF; /* Main Color */
    margin-bottom: 15px;
}

.page-register__step-text {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
}

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

.page-register__benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-register__benefit-item {
    background: #ffffff; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.page-register__benefit-icon {
    font-size: 36px;
    color: #2F6BFF; /* Main Color */
    flex-shrink: 0;
}

.page-register__benefit-heading {
    font-size: 22px;
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    margin-top: 0;
    margin-bottom: 10px;
}

.page-register__benefit-text {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
}

/* FAQ Section */
.page-register__faq-section {
    padding: 60px 0;
    background: #ffffff; /* Card BG */
}

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #ffffff; /* Card BG */
}
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;
  color: #1F2D3D; /* Text Main */
}
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: #F4F7FB; /* Background */
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  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: #F4F7FB; /* Background */
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
}
.page-register__faq-answer p {
    margin: 0;
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
}


/* --- Mobile Responsiveness (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-register__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-register__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        margin-bottom: 30px;
    }

    .page-register__hero-image-wrapper {
        max-height: 250px;
    }

    .page-register__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-register__hero-content {
        padding: 30px 15px 40px;
    }

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

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

    /* CTA Buttons */
    .page-register__cta-button,
    .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;
        font-size: 16px;
    }
    
    .page-register__btn-full-width {
        margin-top: 30px;
    }

    /* Section Titles and Descriptions */
    .page-register__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-register__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Steps Section */
    .page-register__steps-section {
        padding: 40px 0;
        margin-bottom: 30px;
    }

    .page-register__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-register__step-image {
        height: 150px;
        margin-bottom: 15px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-register__step-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .page-register__step-text {
        font-size: 15px;
    }

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

    .page-register__benefits-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__benefit-item {
        padding: 20px;
        gap: 15px;
    }

    .page-register__benefit-icon {
        font-size: 30px;
    }

    .page-register__benefit-heading {
        font-size: 18px;
    }

    .page-register__benefit-text {
        font-size: 15px;
    }

    /* 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: 16px; }
    details.page-register__faq-item .page-register__faq-answer { padding: 0 15px 15px; }

    /* Generic image and container rules for mobile */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        box-sizing: border-box;
    }

    .page-register__hero-section,
    .page-register__steps-section,
    .page-register__benefits-section,
    .page-register__faq-section,
    .page-register__step-card,
    .page-register__benefit-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Ensure flex containers wrap */
    .page-register__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
}