/* style/register.css */

/* Custom properties for colors */
:root {
    --f168m-primary-color: #11A84E;
    --f168m-secondary-color: #22C768;
    --f168m-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --f168m-card-bg: #11271B;
    --f168m-background: #08160F;
    --f168m-text-main: #F2FFF6;
    --f168m-text-secondary: #A7D9B8;
    --f168m-border: #2E7A4E;
    --f168m-glow: #57E38D;
    --f168m-gold: #F2C14E;
    --f168m-divider: #1E3A2A;
    --f168m-deep-green: #0A4B2C;
}

/* Base styles for the register page */
.page-register {
    font-family: Arial, sans-serif;
    color: var(--f168m-text-main); /* Default text color */
    background-color: var(--f168m-background); /* Overall page background */
    line-height: 1.6;
}

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

.page-register__section {
    padding: 60px 0;
    text-align: center;
}

.page-register__section-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive H1/H2 font size */
    color: var(--f168m-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-register__section-description {
    font-size: 18px;
    color: var(--f168m-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--f168m-background);
}

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

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no filters are applied */
}

.page-register__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-register__hero-title {
    font-size: clamp(36px, 5vw, 60px); /* H1 font size with clamp */
    color: var(--f168m-gold); /* Gold color for main title */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-register__hero-description {
    font-size: 20px;
    color: var(--f168m-text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-register__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button.page-register__btn-primary {
    background: var(--f168m-button-gradient);
    color: var(--f168m-text-main); /* White text on primary button */
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-register__cta-button.page-register__btn-secondary {
    background: var(--f168m-card-bg); /* Dark green background */
    color: var(--f168m-primary-color); /* Green text on secondary button */
    border: 2px solid var(--f168m-primary-color);
}

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

/* Cards */
.page-register__card {
    background-color: var(--f168m-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--f168m-border);
    color: var(--f168m-text-main);
}

/* Why Register Section */
.page-register__why-register {
    background-color: var(--f168m-deep-green); /* Use deep green for this section */
    padding-bottom: 80px;
}

.page-register__why-register .page-register__section-title {
    color: var(--f168m-text-main);
}

.page-register__why-register .page-register__section-description {
    color: var(--f168m-text-secondary);
}

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

.page-register__feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
}

.page-register__feature-icon {
    width: 100%;
    max-width: 250px; /* Adjust max-width for feature icons */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Ensure no filters */
}

.page-register__feature-title {
    font-size: 24px;
    color: var(--f168m-primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__feature-text {
    font-size: 16px;
    color: var(--f168m-text-secondary);
}

/* Registration Guide Section */
.page-register__registration-guide {
    background-color: var(--f168m-background);
}

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

.page-register__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.page-register__step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--f168m-button-gradient);
    color: var(--f168m-text-main);
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(42, 209, 111, 0.6);
}

.page-register__step-title {
    font-size: 22px;
    color: var(--f168m-primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-register__step-text {
    font-size: 16px;
    color: var(--f168m-text-secondary);
    text-align: center;
}

/* New Member Promotions Section */
.page-register__promotions {
    background-color: var(--f168m-deep-green);
    padding-bottom: 80px;
}

.page-register__promotions .page-register__section-title {
    color: var(--f168m-text-main);
}

.page-register__promotions .page-register__section-description {
    color: var(--f168m-text-secondary);
}

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

.page-register__promo-card {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__promo-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    filter: none; /* Ensure no filters */
}

.page-register__promo-title {
    font-size: 24px;
    color: var(--f168m-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__promo-text {
    font-size: 16px;
    color: var(--f168m-text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-register__promo-link {
    display: inline-block;
    color: var(--f168m-primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-register__promo-link:hover {
    color: var(--f168m-glow);
    text-decoration: underline;
}

/* Security & Privacy Section */
.page-register__security {
    background-color: var(--f168m-background);
}

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

.page-register__security-item {
    background-color: var(--f168m-card-bg);
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid var(--f168m-border);
}

.page-register__security-subtitle {
    font-size: 22px;
    color: var(--f168m-primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-register__security-text {
    font-size: 16px;
    color: var(--f168m-text-secondary);
}

/* FAQ Section */
.page-register__faq {
    background-color: var(--f168m-deep-green);
    padding-bottom: 80px;
}

.page-register__faq .page-register__section-title {
    color: var(--f168m-text-main);
}

.page-register__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    background-color: var(--f168m-card-bg);
    border: 1px solid var(--f168m-border);
}

.page-register__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--f168m-card-bg);
    color: var(--f168m-text-main);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.page-register__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-register__faq-qtext {
    flex-grow: 1;
    color: var(--f168m-primary-color);
}

.page-register__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    margin-left: 15px;
    color: var(--f168m-gold);
}

.page-register__faq-answer {
    padding: 0 25px 20px 25px;
    background-color: var(--f168m-card-bg);
    color: var(--f168m-text-secondary);
    font-size: 16px;
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-register__faq-item[open] .page-register__faq-answer {
    max-height: 500px; /* Sufficient height for expanded content */
    transition: max-height 0.5s ease-in;
}

/* Final CTA Section */
.page-register__final-cta {
    background-color: var(--f168m-background);
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-register__hero-image-wrapper {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-register__section {
        padding: 40px 0;
    }

    .page-register__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 15px;
    }

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

    /* Hero Section */
    .page-register__hero-section {
        padding-bottom: 40px;
    }
    .page-register__hero-image-wrapper {
        max-height: 350px;
        margin-bottom: 20px;
    }
    .page-register__hero-title {
        font-size: clamp(30px, 7vw, 48px);
        margin-bottom: 15px;
    }
    .page-register__hero-description {
        font-size: 18px;
        margin-bottom: 30px;
    }

    /* CTA Buttons */
    .page-register__cta-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;
    }
    .page-register__cta-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    /* Grid layouts */
    .page-register__features-grid,
    .page-register__steps-wrapper,
    .page-register__promo-grid,
    .page-register__security-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__feature-item,
    .page-register__step-item,
    .page-register__promo-card,
    .page-register__security-item {
        padding: 20px;
    }

    .page-register__feature-icon,
    .page-register__promo-image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Containers responsiveness */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__why-register,
    .page-register__registration-guide,
    .page-register__promotions,
    .page-register__security,
    .page-register__faq,
    .page-register__final-cta,
    .page-register__steps-wrapper,
    .page-register__promo-grid,
    .page-register__security-content,
    .page-register__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-register__faq-item summary {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-register__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 15px;
    }
}

/* Ensure no image filters are applied globally */
.page-register img {
    filter: none;
}