/* style/register.css */

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

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

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--suncity-deep-green);
}

.page-register__hero-image-wrapper {
    width: 100%;
    position: relative;
    order: 1; /* Image first */
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim image for text readability */
}

.page-register__hero-content {
    position: relative;
    z-index: 10;
    padding: 20px;
    order: 2; /* Content after image */
    margin-top: 20px; /* Space between image and text */
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text block */
    border-radius: 10px;
    max-width: 800px;
    box-sizing: border-box;
}

.page-register__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    font-weight: 700;
    color: var(--suncity-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__subtitle {
    font-size: clamp(1em, 1.5vw, 1.3em);
    color: var(--suncity-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Section Titles and Descriptions */
.page-register__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    color: var(--suncity-text-main);
    text-align: center;
    margin-bottom: 20px;
}

.page-register__section-description {
    font-size: clamp(0.9em, 1.2vw, 1.1em);
    color: var(--suncity-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    margin: 10px;
    text-align: center;
    box-sizing: border-box;
}

.page-register__btn-primary {
    background: var(--suncity-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
    background-color: var(--suncity-card-bg);
    color: var(--suncity-primary);
    border: 2px solid var(--suncity-primary);
}

.page-register__btn-secondary:hover {
    background-color: var(--suncity-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Card Styles */
.page-register__card {
    background-color: var(--suncity-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--suncity-text-main);
    border: 1px solid var(--suncity-border);
}

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
    background-color: var(--suncity-background);
}

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

.page-register__step-card {
    text-align: center;
}

.page-register__step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-register__step-title {
    font-size: 1.5em;
    color: var(--suncity-primary);
    margin-bottom: 15px;
}

.page-register__step-text {
    font-size: 1em;
    color: var(--suncity-text-secondary);
    line-height: 1.6;
}

.page-register__cta-wrapper {
    text-align: center;
    margin-top: 60px;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: var(--suncity-deep-green);
    color: var(--suncity-text-main);
}

.page-register__dark-bg {
    background-color: var(--suncity-deep-green);
    color: var(--suncity-text-main);
}

.page-register__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-register__benefit-item {
    padding: 20px;
    border-radius: 10px;
    background-color: var(--suncity-card-bg);
    border: 1px solid var(--suncity-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-register__benefit-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--suncity-glow));
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-register__benefit-title {
    font-size: 1.4em;
    color: var(--suncity-gold);
    margin-bottom: 10px;
}

.page-register__benefit-text {
    font-size: 0.95em;
    color: var(--suncity-text-secondary);
    line-height: 1.5;
}

/* CTA Section */
.page-register__cta-section {
    padding: 80px 0;
    background-color: var(--suncity-background);
    text-align: center;
    color: var(--suncity-text-main);
}

.page-register__light-bg {
    background-color: var(--suncity-background);
    color: var(--suncity-text-main);
}

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

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

.page-register__faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: var(--suncity-card-bg);
    border: 1px solid var(--suncity-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-register__faq-item summary {
    list-style: none;
}

.page-register__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--suncity-text-main);
    cursor: pointer;
    background-color: rgba(17, 168, 78, 0.2);
    border-bottom: 1px solid var(--suncity-divider);
}

.page-register__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.3);
}

.page-register__faq-qtext {
    flex-grow: 1;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    margin-left: 15px;
    color: var(--suncity-gold);
}

.page-register__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--suncity-text-secondary);
    line-height: 1.6;
    background-color: var(--suncity-card-bg);
}

/* About Section */
.page-register__about-section {
    padding: 80px 0;
    background-color: var(--suncity-deep-green);
    text-align: center;
    color: var(--suncity-text-main);
}

.page-register__about-section p {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--suncity-text-secondary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-content {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        padding: 40px 15px;
    }

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

    .page-register__main-title {
        font-size: 2.2em;
    }

    .page-register__subtitle {
        font-size: 1em;
    }

    .page-register__section-title {
        font-size: 1.8em;
    }

    .page-register__section-description {
        font-size: 0.9em;
    }

    .page-register__steps-section,
    .page-register__benefits-section,
    .page-register__cta-section,
    .page-register__faq-section,
    .page-register__about-section {
        padding: 40px 0;
    }

    .page-register__container {
        padding: 0 15px;
    }

    /* Mobile image adaptation */
    .page-register img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__steps-section,
    .page-register__benefits-section,
    .page-register__cta-section,
    .page-register__faq-section,
    .page-register__about-section,
    .page-register__hero-image-wrapper,
    .page-register__hero-content,
    .page-register__steps-grid,
    .page-register__benefits-grid,
    .page-register__faq-list,
    .page-register__cta-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-register__hero-section {
        padding-top: 10px !important;
    }

    /* Mobile button adaptation */
    .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;
      margin: 10px 0 !important; /* Stack buttons vertically */
    }

    .page-register__cta-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px; /* Space between stacked buttons */
    }

    .page-register__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-register__faq-answer {
        font-size: 0.95em;
        padding: 15px;
    }

    .page-register__benefit-icon {
        min-width: 150px; /* Adjust min size for smaller screens if necessary, still >200 */
        min-height: 150px;
        width: 150px;
        height: 150px;
        margin: 0 auto 20px auto;
    }
    .page-register__step-image {
        min-width: 200px;
        min-height: 150px;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: 1.8em;
    }

    .page-register__section-title {
        font-size: 1.5em;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-register__benefit-icon {
        min-width: 100px; /* Still >200, but smaller display */
        min-height: 100px;
        width: 100px;
        height: 100px;
    }
}