/* --- Global Defaults --- */
:root {
    --primary-green: #2ecc71;
    --dark-green: #27ae60;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #f9fbfd;
    --accent-blue: #3498db;
    --accent-orange: #e67e22;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Loader --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loader-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
}

.loader-icon {
    font-size: 4rem;
    /* Slightly larger */
    color: var(--primary-green);
    z-index: 2;
    animation: breathe 2s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.3));
    /* Glow effect */
    position: relative;
    /* Ensure it sits on top of circle */
}

.loader-text {
    margin-top: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--text-dark);
    font-size: 2.2rem;
    z-index: 2;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out;
}

.loader-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: rgba(46, 204, 113, 0.4);
    border-radius: 50%;
    animation: ripple 2s infinite cubic-bezier(0.1, 0.7, 1.0, 0.1);
    z-index: 1;
}

/* Animations */
@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.6;
    }

    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Components --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
    border: 2px solid var(--primary-green);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-green);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--text-dark);
}

.section-padding {
    padding: 80px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

.section-title p {
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled .navbar {
    padding: 10px 0;
}

.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-blue));
    width: 0%;
    transition: width 0.1s linear;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: padding 0.4s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary-green);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    position: relative;
}

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-links li a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero --- */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    /* Offset for fixed header */
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        top: 10px;
    }

    100% {
        opacity: 0;
        top: 25px;
    }
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- About --- */
#about {
    background-color: white;
    background-image: url('../img/energy_transfer_bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.03);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

/* --- Solutions --- */
#solutions {
    background-color: var(--bg-light);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border-top: 5px solid transparent;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.solution-card.particuliers {
    border-top-color: var(--accent-blue);
}

.solution-card.professionnels {
    border-top-color: var(--accent-orange);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.particuliers .icon-wrapper {
    color: var(--accent-blue);
    background-color: rgba(52, 152, 219, 0.1);
}

.professionnels .icon-wrapper {
    color: var(--accent-orange);
    background-color: rgba(230, 126, 34, 0.1);
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.solution-list {
    margin-top: 20px;
}

.solution-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.solution-list li i {
    color: var(--primary-green);
    font-size: 0.9rem;
}

/* --- Process --- */
#process {
    background-color: white;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
    padding-top: 30px;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 75px;
    left: 50px;
    right: 50px;
    height: 2px;
    background-color: #eee;
    z-index: 0;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.step-number {
    width: 90px;
    height: 90px;
    background-color: white;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    background-color: var(--primary-green);
    color: white;
    transform: scale(1.1);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.step-item h4 {
    margin-bottom: 10px;
}

.step-item p {
    font-size: 0.9rem;
    color: #777;
    padding: 0 15px;
}

/* --- Objectives --- */
#objectives {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: white;
    text-align: center;
}

#objectives .section-title h2 {
    color: white;
}

#objectives .section-title h2::after {
    background-color: white;
}

.objectives-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.objective-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

.objective-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.objective-item p {
    font-weight: 600;
}

/* --- Contact --- */
#contact {
    background-color: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-green);
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}

/* --- Footer --- */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo span {
    color: var(--primary-green);
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.social-links a:hover {
    background: var(--primary-green);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* --- Responsive --- */
@media (max-width: 992px) {

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .process-steps::before {
        display: none;
    }

    .step-item {
        flex: 0 0 45%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        background-color: white;
        flex-direction: column;
        width: 100%;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease;
        padding: 20px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .step-item {
        flex: 0 0 100%;
    }

    .contact-container {
        padding: 30px;
    }
}

/* --- Multi-step Form --- */
.multistep-form-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    /* Ensure logical height */
}

/* Progress Bar */
.form-progress {
    height: 4px;
    background-color: #f1f1f1;
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-green);
    width: 33.33%;
    transition: width 0.4s ease;
}

/* Form Steps */
.form-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: fadeInSlide 0.5s forwards;
}

.form-step.exit {
    display: block;
    /* Keep it visible while exiting */
    opacity: 0;
    transform: translateX(-20px);
    position: absolute;
    /* Take it out of flow */
    top: 40px;
    /* Match padding */
    left: 40px;
    right: 40px;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-step h4 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    color: var(--text-dark);
    text-align: center;
}

/* Step 1: User Type Selection */
.user-type-selection {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.type-btn {
    flex: 1;
    background: #f9fbfd;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    outline: none;
}

.type-btn:hover,
.type-btn.active {
    border-color: var(--primary-green);
    background: rgba(46, 204, 113, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.type-btn .icon-box {
    font-size: 2.5rem;
    color: #ccc;
    transition: color 0.3s;
}

.type-btn:hover .icon-box,
.type-btn.active .icon-box {
    color: var(--primary-green);
}

.type-btn span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Step 2: Form Grid */
.form-grid {
    display: grid;
    gap: 20px;
}

/* Floating Labels */
.form-group.floating {
    position: relative;
    margin-bottom: 15px;
}

.form-group.floating input,
.form-group.floating textarea {
    width: 100%;
    padding: 15px 15px 5px;
    /* More padding top for label room */
    height: 55px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
}

.form-group.floating textarea {
    height: 120px;
    padding-top: 25px;
}

.form-group.floating label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}

.form-group.floating textarea+label {
    top: 25px;
}

/* Float label when focused or has value */
.form-group.floating input:focus,
.form-group.floating input:not(:placeholder-shown),
.form-group.floating textarea:focus,
.form-group.floating textarea:not(:placeholder-shown) {
    border-color: var(--primary-green);
}

.form-group.floating input:focus+label,
.form-group.floating input:not(:placeholder-shown)+label,
.form-group.floating textarea:focus+label,
.form-group.floating textarea:not(:placeholder-shown)+label {
    top: -2px;
    font-size: 0.8rem;
    color: var(--primary-green);
    font-weight: 600;
}

/* Validation Errors */
.error-msg {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.form-group.error input {
    border-color: #e74c3c;
}

.form-group.error .error-msg {
    display: block;
}

/* Navigation Buttons */
.step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    align-items: center;
}

.btn-prev {
    background: none;
    border: none;
    color: #999;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-prev:hover {
    color: var(--text-dark);
}

.btn-next[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ccc;
    border-color: #ccc;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.success-message.active {
    display: block;
    animation: fadeIn 0.5s;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--primary-green);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--primary-green);
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    right: 20px;
}

.btn-submit.loading .spinner {
    display: inline-block;
}

.btn-submit.loading span {
    margin-right: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .multistep-form-wrapper {
        padding: 30px 20px;
    }

    .user-type-selection {
        flex-direction: column;
    }

    .type-btn {
        flex-direction: row;
        justify-content: center;
        padding: 20px;
    }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 90%;
    max-width: 900px;
    background-color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9990;
    /* Below loader (9999) but above everything else */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    transition: transform 0.5s ease, opacity 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-banner.hidden-banner {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.cookie-content p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
}

.cookie-content a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    min-width: max-content;
}

.cookie-banner .btn-outline {
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.cookie-banner .btn-outline:hover {
    background-color: var(--text-dark);
    color: white;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        bottom: 20px;
        padding: 20px;
        text-align: center;
        width: 95%;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-sm {
        flex: 1;
        text-align: center;
    }
}

/* --- Privacy Policy Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    height: 85vh;
    /* Fixed height relative to viewport */
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Important for inner scroll */
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
    /* Header stays fixed size */
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin: 0;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    padding: 0;
}

.close-btn:hover {
    color: var(--primary-green);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    /* Enable vertical scroll */
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

.modal-body h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.modal-body h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.modal-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}