
:root {
    --primary-green: #57ca7c;
    --primary-green-light: #e3f3e9;
    --primary-dark: #454545;
    --primary-grey: #7e7e7e;
    --light-grey: #d9d9d9;
    --bg-light: #f7f8f8;
    --white: #ffffff;
    --font-family: 'Rubik', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family), Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-dark);
    background-color: var(--bg-light);
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switcher {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--primary-green);
}

.language-button {
    background-color: var(--white);
    color: var(--primary-green);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

.language-button.active,
.language-button:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    z-index: 10;
}

.nav {
    display: flex;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary-green);
}

.header .button {
    display: inline-flex;
    width: auto; /* Override full width for header button */
    height: auto; /* Override fixed height */
    padding: 12px 24px;
}

.burger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 10;
}

.burger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-dark);
    transition: all 0.3s ease-in-out;
}

.button {
    cursor: pointer;
    border-radius: 10px;
    background: var(--primary-green);
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--white) !important;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    padding: 14px 28px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    height: 48px;
}

.button:hover {
    background-color: #4db86f;
}

.button:disabled {
    background-color: var(--primary-grey) !important;
    cursor: not-allowed;
}


/* Hero Section */
.hero {
    color: var(--primary-dark);
    text-align: center;
    padding: 5rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Slider Section */
.slider-section {
    padding: 2rem 0;
}
.slider-container {
    position: relative;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    border-radius: 15px;
    overflow: hidden;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    display: block;
}

.slider-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-green);
}


/* About Section */
.about-section-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-section-layout .text-content {
    flex: 1;
    & h2 {
        text-align: left;
    }
}

.about-section-layout .image-content {
    flex: 1;
    max-width: 500px;
}

.about-section-layout img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}


/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.bg-light {
    background-color: var(--primary-green-light);
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.advantage-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
}

.advantage-card h3 {
    color: var(--primary-green);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-item svg {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Image Gallery */
.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.image-gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

/* Agreement Page */
#agreement-card {
    scroll-margin-top: 90px;
}

.agreement-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.agreement-card {
    margin-top: 1.5rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
}

.agreement-card h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
}

.checkbox-group {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
}

.checkbox-group input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

.checkbox-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-grey);
    border-radius: 5px;
    background: var(--white);
    transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked + label::before {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.checkbox-group input[type="checkbox"]:checked + label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 12px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
}


.checkbox-group .pseudo-link {
    color: var(--primary-green);
    text-decoration: none;
    cursor: pointer;
}

.checkbox-group .pseudo-link:hover {
    text-decoration: underline;
}

#agreement-form {
    text-align: center;
}

#agreement-form .button {
    border: none;
    background-color: #57ca7c;
    width: auto;
    margin-top: 1.5rem;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: none; /* Hidden by default */
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.close-modal-bottom {
    display: none; /* Hidden by default */
    margin-top: 20px;
}


/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--white);
        position: absolute;
        top: 70px;
        left: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        padding: 1rem 0;
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
    }

    .header .button {
        display: none; /* Hide button in nav bar on mobile */
    }

    .burger-menu {
        display: block;
    }

    .burger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .about-section-layout {
        flex-direction: column;
    }

    .slider-section {
        padding: 1rem 0;
    }

    .slide img {
        height: 250px;
        object-fit: cover;
    }

    .slider-dots {
        position: relative;
        bottom: auto;
        margin-top: 1rem;
    }

    /* Modal Responsive */
    .modal-content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        padding: 20px;
    }

    .modal-body {
        max-height: calc(100vh - 120px);
    }

    .close-modal-bottom {
        display: block;
        position: sticky;
        bottom: 20px;
        width: calc(100% - 40px);
        margin: 20px auto 0;
    }
}


/* Card layout improvements for consistent height and button alignment */
.advantage-card, .feature-item {
    display: flex;
    flex-direction: column;
}

.feature-item {
    align-items: center; /* Center SVG and text content */
}

.advantage-card p, .feature-item p {
    margin-bottom: 20px; /* Ensure minimum space before button */
}

.advantage-card .button, .feature-item .button {
    margin-top: auto; /* Align button to the bottom */
}
