/* style/register.css */

/* Base styles for the register page */
.page-register {
    background-color: #0A0A0A; /* Custom background color */
    color: #FFF6D6; /* Custom text color */
    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;
}

/* Section Titles */
.page-register__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD36B; /* Glow color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

/* Hero Section */
.page-register__hero-section {
    padding-top: 10px; /* Small top padding as per rule, not var(--header-offset) */
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

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

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text below */
}

.page-register__text-container {
    padding: 20px;
    max-width: 800px;
}

.page-register__main-title {
    font-size: 48px; /* Use a larger size for desktop, but avoid fixed large values */
    font-weight: 700;
    line-height: 1.2;
    color: #F2C14E; /* Main brand color for H1 */
    margin-bottom: 20px;
    max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-register__intro-text {
    font-size: 18px;
    color: #FFF6D6;
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-register__cta-button,
.page-register__secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-register__cta-button {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #111111; /* Dark text for bright button */
    border: none;
    margin: 0 10px 15px 10px;
}

.page-register__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-register__secondary-button {
    background: transparent;
    color: #F2C14E; /* Main brand color */
    border: 2px solid #F2C14E; /* Main brand color for border */
    margin: 0 10px 15px 10px;
}

.page-register__secondary-button:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
}

/* Steps Section */
.page-register__steps-section {
    padding: 50px 0;
    background-color: #111111; /* Card BG color */
}

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

.page-register__step-card {
    background-color: #0A0A0A; /* Background color for step cards */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__step-image {
    width: 100%; /* Image fills card width */
    height: auto;
    min-height: 200px; /* Minimum size */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-register__step-title {
    font-size: 22px;
    color: #F2C14E;
    margin-bottom: 10px;
}

.page-register__step-description {
    font-size: 16px;
    color: #FFF6D6;
    flex-grow: 1;
}

.page-register__cta-bottom {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping for buttons */
    margin-top: 50px;
    gap: 20px;
}

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

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

.page-register__benefit-item {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: flex-start; /* Align image and text to top */
    gap: 20px;
}

.page-register__benefit-image {
    width: 200px; /* Enforce min 200px as per rule */
    height: 200px; /* Enforce min 200px as per rule */
    flex-shrink: 0; /* Prevent image from shrinking */
    object-fit: cover;
    border-radius: 8px;
}

.page-register__benefit-heading {
    font-size: 20px;
    color: #FFD36B;
    margin-bottom: 10px;
}

.page-register__benefit-text p {
    font-size: 16px;
    color: #FFF6D6;
    margin: 0;
}

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

.page-register__faq-list {
    margin-top: 40px;
}

details.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 10px; /* Increased border-radius for aesthetic */
    border: 1px solid #3A2A12; /* Border color */
    overflow: hidden;
    background: #0A0A0A; /* Background color */
}

details.page-register__faq-item summary.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px; /* Slightly increased padding */
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #FFF6D6; /* Text Main color */
}

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: rgba(242, 193, 78, 0.05); /* Subtle hover effect */
}

.page-register__faq-qtext {
    flex: 1;
    font-size: 18px; /* Slightly larger font size */
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #F2C14E; /* Main brand color for question text */
}

.page-register__faq-toggle {
    font-size: 28px; /* Larger toggle icon */
    font-weight: bold;
    color: #FFD36B; /* Glow color for toggle */
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px; /* Increased width */
    text-align: center;
}

details.page-register__faq-item .page-register__faq-answer {
    padding: 0 25px 25px; /* Consistent padding */
    background: #111111; /* Card BG for answer background */
    border-radius: 0 0 10px 10px;
    color: #FFF6D6; /* Text Main color for answer text */
}

.page-register__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* General image and container responsive styles */
.page-register img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-register__section,
.page-register__card,
.page-register__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__section-title {
        font-size: 32px;
    }
    .page-register__main-title {
        font-size: 42px;
    }
    .page-register__steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-register__benefits-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-register__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        margin-bottom: 30px;
    }
    .page-register__text-container {
        padding: 0 15px;
    }
    .page-register__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-register__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    /* CTA Buttons */
    .page-register__cta-button,
    .page-register__secondary-button {
        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;
        margin: 0 0 15px 0;
    }
    .page-register__cta-bottom {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
    }

    /* Steps Section */
    .page-register__steps-section {
        padding: 30px 0;
    }
    .page-register__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-top: 30px;
    }
    .page-register__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-register__step-card {
        padding: 20px;
    }
    .page-register__step-image {
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-register__step-title {
        font-size: 20px;
    }
    .page-register__step-description {
        font-size: 15px;
    }

    /* Benefits Section */
    .page-register__benefits-section {
        padding: 30px 0;
    }
    .page-register__benefits-list {
        margin-top: 30px;
        gap: 20px;
    }
    .page-register__benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
        gap: 15px;
    }
    .page-register__benefit-image {
        width: 200px !important;
        height: 200px !important;
    }
    .page-register__benefit-heading {
        font-size: 18px;
    }
    .page-register__benefit-text p {
        font-size: 15px;
    }

    /* FAQ Section */
    .page-register__faq-section {
        padding: 30px 0 50px;
    }
    .page-register__faq-list {
        margin-top: 30px;
    }
    details.page-register__faq-item summary.page-register__faq-question {
        padding: 15px 20px;
    }
    .page-register__faq-qtext {
        font-size: 16px;
    }
    .page-register__faq-toggle {
        font-size: 24px;
        width: 25px;
        margin-left: 10px;
    }
    details.page-register__faq-item .page-register__faq-answer {
        padding: 0 20px 20px;
    }
    .page-register__faq-answer p {
        font-size: 15px;
    }

    /* General image and container responsive styles for mobile */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-register__section,
    .page-register__card,
    .page-register__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__hero-content-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
}