:root {
    --primary-color: #2e7d32;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --nav-bg: #2e7d32;
    --header-text: white;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.dark-theme {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #aaaaaa;
    --nav-bg: #1b1b1b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-main);
    transition: background 0.3s, color 0.3s;
}

header {
    background-color: var(--nav-bg);
    color: var(--header-text);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 60px;
    height: auto;
    margin-right: 15px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
}

nav a {
    margin-left: 1.5rem;
    padding: 0.6rem 1.2rem;
    color: #2e7d32;
    text-decoration: none;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

nav a:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}

.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Cleaned up redundant header/nav styles */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

nav a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
}

#theme-toggle:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

#gallery {
    height: 250px;
    margin: auto;
    position: relative;
    width: 90%;
    display: block;
    place-items: center;
    overflow: hidden;
}

.slider {
    display: flex;
    width: calc(250px * 6);
    /* 3 unique slides * 2 sets */
    animation: scroll 20s linear infinite;
    /* Increased speed slightly for smoothness */
}

.slider:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translate3d(0, 0, 0);
        /* Hardware acceleration */
    }

    100% {
        transform: translate3d(calc(-250px * 3), 0, 0);
        /* Move by wider of one set */
    }
}

.slide {
    height: 200px;
    width: 250px;
    display: flex;
    align-items: center;
    padding: 15px;
    perspective: 100px;
}

img {
    width: 100%;
    transition: transform 1s;
    cursor: pointer;
}

img:hover {
    transform: translateZ(20px);
}

/* shadow */
#gallery::before,
#gallery::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    content: '';
    height: 100%;
    position: absolute;
    width: 15%;
    z-index: 2;
}

#gallery::before {
    left: 0;
    top: 0;
}

#gallery::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

/* styles for the image preview */
#imagePreview {
    margin: auto;
    display: none;
    text-align: center;
}

#imagePreview img {
    max-width: 80%;
    height: auto;
}



/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 63%;
    /* Adjusted width to make the image smaller */
    max-width: 540px;
    /* Adjusted max-width */
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content,
#caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0.1)
    }

    to {
        transform: scale(1)
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

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

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}





.title-link {
    text-decoration: none;
    /* Remove underline from link */
}

.site-title {
    font-size: 1.5rem;
    color: white;
    /* Set title color to white */
    margin-left: 10px;
    /* Add space between logo and text */
    font-weight: bold;
    /* Make the text bold */
}

/* Cleaned up duplicate nav block */

header {
    background-color: #2e7d32;
    /* Primary Green */
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 60px;
    height: auto;
    margin-right: 10px;
}

.site-title {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    margin: 0;
}

nav {
    display: flex;
    align-items: center;
}

/* --- Floating Theme Toggle --- */
.theme-toggle {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    background: #2e7d32;
    /* Solid green for light mode */
    color: white !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .theme-toggle {
    background: #333 !important;
    border-color: #555 !important;
    color: #fdd835 !important;
}

body.dark-theme .fa-moon {
    display: none;
}

body:not(.dark-theme) .fa-sun {
    display: none;
}

nav a {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    color: #2e7d32;
    text-decoration: none;
    border-radius: 8px;
    background-color: white;
    font-weight: 600;
    border: 1px solid #2e7d32;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #e8f5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-theme {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.btn-theme:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 1.5rem;
        position: sticky;
        top: 0;
        z-index: 1100;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        box-sizing: border-box;
    }

    .logo-container {
        display: flex !important;
        width: auto !important;
        flex: none !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    .logo-container a:first-child {
        display: block;
        line-height: 0;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        cursor: pointer;
        z-index: 1002;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2.5px;
        background: white;
        border-radius: 3px;
        transition: all 0.3s ease;
        transform-origin: left center;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(-2px);
    }

    .hamburger.active span:nth-child(2) {
        width: 0;
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(2px);
    }

    .site-title {
        display: none !important;
    }

    .menu-toggle {
        display: none !important;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2e7d32;
        padding: 1rem 0;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 0.5rem 2rem;
        text-align: center;
    }
}

.menu-toggle {
    display: none;
}

.minimal-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group-minimal {
    margin-bottom: 1.5rem;
}

.form-group-minimal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

.form-input-minimal {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    transition: border-color 0.3s ease;
}

.form-input-minimal:focus {
    border-color: #2e7d32;
    outline: none;
    background: white;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Toggleable Sections */
.toggle-box {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.toggle-header {
    background: #fff;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #2e7d32;
    user-select: none;
}

.toggle-header:hover {
    background: #f1f8e9;
}

.toggle-content {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #fff;
}

.toggle-content.active {
    display: block;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-box.active .toggle-icon {
    transform: rotate(180deg);
}

/* Validation Styles */
.form-input-minimal:invalid:not(:placeholder-shown) {
    border-color: #d32f2f;
}

/* Unit Selector */
.unit-selector-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.unit-select {
    flex: 0 0 70px !important;
    padding: 0.8rem 0.2rem !important;
    background: #f0f0f0 !important;
}

/* Refund Alert */
.refund-alert {
    background: #fff3cd;
    color: #856404;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #ffeeba;
    text-align: center;
    font-weight: 700;
    margin: 2rem 0;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(133, 100, 4, 0.1);
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: black;
}

h1 {
    text-align: center;
    font-size: 2rem;
    color: #2e7d32;
}

p {
    text-align: center;
}

form {
    display: grid;
    gap: 1rem;
}

label {
    margin-bottom: 0.5rem;
}

.form-container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-container label {
    display: block;
    margin-bottom: 5px;
}

.form-container input,
.form-container select {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

.radio-group label {
    display: inline-block;
    margin-right: 20px;
}

#explain {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#goal {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.input-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
}

.input-group select,
.input-group input {
    border: none;
    outline: none;
    margin-right: 5px;
}

.input-group input[type="tel"] {
    width: 100px;
}

.separator {
    margin: 0 5px;
    color: #ccc;
}

.timings {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.QR {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

input,
textarea,
button {
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #5cb85c;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #4cae4c;
}

.hidden {
    display: none;
}

.success-message {
    text-align: center;
    color: #3c096c;
}

.success-message .circle {
    display: inline-block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border: 5px solid #5cb85c;
    border-radius: 50%;
    text-align: center;
    font-size: 3rem;
    color: #5cb85c;
    margin: 1rem auto;
}

.success-message p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.back-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: #2e7d32;
    color: white;
    border: none;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
}

.welcome-photo {
    width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 10px;
}

.quote {
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f0e7db;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #333;
}

.quote h2 {
    text-align: center;
    color: #240046;
}

.quote p {
    font-size: 1.2rem;
    text-align: center;
    color: #240046;
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }

    .input-group select,
    .input-group input {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .input-group input:last-child {
        margin-bottom: 0;
    }

    .container {
        padding: 1.5rem;
        margin: 1rem;
    }

    header,
    footer {
        flex-direction: column;
        /* Stack header content vertically on mobile */
    }

    .site-title {
        margin-left: 0;
        /* Remove margin for mobile */
        margin-top: 0.5rem;
        /* Add some space on top for mobile */
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.9rem;
        margin: 0.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .success-message .circle {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 2.5rem;
    }

    .success-message p {
        font-size: 1rem;
    }
}


/* --- Floating WhatsApp Button --- */
.floating-whatsapp {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    background-color: #25D366 !important;
    color: white !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    text-decoration: none !important;
}

.floating-whatsapp:hover {
    transform: scale(1.1) !important;
    background-color: #128c7e !important;
}

.floating-whatsapp img {
    width: 24px !important;
    height: 24px !important;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Enhanced Container */
.container-glass {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    /* High opacity for readability */
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #240046;
    /* Header color */
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2e7d32;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Professional Cards (Pricing, Classes) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

@media (max-width: 600px) {
    .container-glass {
        padding: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .form-professional {
        padding: 1.5rem !important;
    }

    .input-inline-group {
        flex-direction: column;
    }

    .input-inline-group select {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #00B4DB;
}

.card-title {
    font-size: 1.5rem;
    color: #240046;
    margin-bottom: 1rem;
    font-weight: bold;
}

.card-price {
    font-size: 2.5rem;
    color: #00B4DB;
    /* Brand Blue */
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    display: flex;
    align-items: center;
}

.card-features li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    margin-right: 0.75rem;
}

/* Professional Tables (Schedule, Admin) */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-glass {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.table-glass th,
.table-glass td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table-glass th {
    background-color: #240046;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.table-glass tr:hover {
    background-color: #f8f9fa;
}

/* Professional Forms */
.form-professional {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group-pro {
    display: flex;
    flex-direction: column;
}

.form-group-pro label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #240046;
}

.form-control {
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

.form-control:focus {
    border-color: #00B4DB;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 180, 219, 0.1);
}

/* Buttons */
.btn-pro {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #2e7d32;
    /* Primary Green */
    color: white;
}

.btn-primary:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 80, 0.3);
}

.btn-secondary {
    background: #00B4DB;
    /* Brand Blue */
    color: white;
}

.btn-secondary:hover {
    background: #009ec0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 219, 0.3);
}

/* Testimonials / Feedbacks */
.testimonial-section {
    padding: 4rem 0;
    background: white;
    margin-top: 4rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.testimonial-card {
    background: #fdfbf7;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid #00B4DB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-user {
    font-weight: bold;
    color: #240046;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-user::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #ddd;
    border-radius: 50%;
    background-image: url('https://ui-avatars.com/api/?name=User&background=240046&color=fff');
    background-size: cover;
}