/* =========================================================================
   Mukundha Mom And Kids Clinic | Premium Design System
   ========================================================================= */

:root {
    /* Color Palette */
    --primary: #86B6F6;       /* Soft Blue */
    --primary-dark: #378CE7;  /* Deeper Blue */
    --secondary: #FFB0B0;     /* Soft Peach/Pink */
    --accent: #B4D4FF;        /* Light Accent Blue */
    --text-dark: #2C3E50;
    --text-light: #7E8C9A;
    --bg-light: #F8FBFE;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --gradient-primary: linear-gradient(135deg, #86B6F6 0%, #378CE7 100%);
    --gradient-warm: linear-gradient(135deg, #FFB0B0 0%, #ff8080 100%);
    --gradient-hero: linear-gradient(135deg, #F8FBFE 0%, #E8F0FE 50%, #F8FBFE 100%);
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(134, 182, 246, 0.15);
    --shadow-glow: 0 0 40px rgba(55, 140, 231, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

body {
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { line-height: 1.6; color: var(--text-light); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.highlight {
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--secondary);
    opacity: 0.3;
    z-index: -1;
    border-radius: 5px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================== Components ================== */

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}
.btn-secondary:hover {
    background-color: #ff9999;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}
.btn-block {
    width: 100%;
}
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
}

/* ================== Navbar ================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled, .solid-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    padding: 0.8rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.logo i {
    font-size: 2rem;
    color: var(--secondary);
}
.logo small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    display: block;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    font-weight: 500;
}
.nav-links a:hover:not(.btn-primary):not(.btn-outline) {
    color: var(--primary);
}
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* ================== Hero Section ================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: var(--gradient-hero);
}
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.4;
    z-index: -1;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(55, 140, 231, 0.1), rgba(134, 182, 246, 0.15));
    color: var(--primary-dark);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(55, 140, 231, 0.2);
    animation: fadeIn 1s ease;
}
.hero-badge i { color: #FFD700; font-size: 1rem; }

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 { margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.2rem; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; }
.hero-actions .btn-primary i { margin-right: 0.4rem; }

.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 1.2rem 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(134, 182, 246, 0.15);
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.trust-item strong {
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-weight: 700;
}
.trust-stars { display: flex; gap: 2px; }
.trust-stars i { color: #FFD700; font-size: 0.85rem; }
.trust-divider { width: 1px; height: 30px; background: #ddd; }

.hero-image-wrapper { position: relative; }
.hero-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}
.blob-bg {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: var(--secondary);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.15;
    z-index: 1;
    animation: morph 8s ease-in-out infinite alternate;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.fade-in { animation: fadeIn 0.6s ease forwards; }
.slide-up { animation: slideUp 0.6s ease forwards; }

/* ================== Section Badges ================== */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(55, 140, 231, 0.1), rgba(134, 182, 246, 0.15));
    color: var(--primary-dark);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(55, 140, 231, 0.15);
}

/* ================== Services ================== */
.services {
    padding: 6rem 0;
    background-color: var(--white);
}
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    background: var(--white);
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.service-link:hover { gap: 0.8rem; color: var(--primary); }
.icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}
.service-card:hover .icon-wrapper {
    background: var(--primary-dark);
    color: var(--white);
    transform: scale(1.1);
}

/* ================== Why Choose Us ================== */
.why-choose {
    padding: 6rem 0;
    background: var(--bg-light);
    position: relative;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.why-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    background: var(--white);
    border: 1px solid transparent;
    transition: var(--transition);
}
.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}
.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(55, 140, 231, 0.25);
    transition: var(--transition);
}
.why-card:hover .why-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ================== Testimonials ================== */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--white) 0%, #EEF5FF 100%);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(134, 182, 246, 0.1);
    transition: var(--transition);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.testimonial-stars i { color: #FFD700; font-size: 0.9rem; }
.testimonial-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.testimonial-author strong { display: block; color: var(--text-dark); font-size: 0.95rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-light); }

/* ================== Booking Section ================== */
.booking {
    padding: 6rem 0;
    background: linear-gradient(to right, var(--bg-light) 50%, var(--accent) 50%);
}
.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.booking-info {
    padding: 4rem;
    background: var(--primary);
    color: var(--white);
}
.booking-info h2 { color: var(--white); }
.booking-info p { color: rgba(255,255,255,0.9); margin-bottom: 2rem; }
.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.contact-list i { font-size: 1.3rem; }

.booking-form-container {
    padding: 4rem 4rem 4rem 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}
input, select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-light);
    transition: var(--transition);
}
input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(134, 182, 246, 0.2);
}
.status-msg {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}
.success-msg { color: #28a745; }
.error-msg { color: #dc3545; }

/* ================== Portal Specific ================== */
.portal-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 40px;
}
.portal-card {
    width: 100%;
    max-width: 600px;
    padding: 3rem;
}
.portal-header {
    text-align: center;
    margin-bottom: 2rem;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.appointments-list { max-height: 60vh; overflow-y: auto; padding-right: 10px; }
.appointment-card {
    background: var(--white);
    border: 1px solid #eee;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.appointment-card:hover { transform: translateX(5px); box-shadow: var(--shadow-md); }
.appointment-card h4 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.apt-detail {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}
.apt-detail i { color: var(--text-light); width: 20px; }

.no-appointments {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
}
.no-appointments i { font-size: 3rem; margin-bottom: 1rem; color: #ddd; }
.demo-hint { margin-top: 1.5rem; text-align: center; color: var(--text-light); }

/* ================== Footer ================== */
.footer {
    background-color: var(--bg-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid #eee;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-logo { margin-bottom: 1rem; display: inline-flex; }
.footer h3 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links ul li a:hover { color: var(--primary); }
.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    color: var(--text-light);
}
.built-by {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.built-by i.fa-code {
    color: var(--primary-dark);
}
.developer-link {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.developer-link:hover {
    color: var(--primary);
    text-decoration: underline;
}
.built-by .separator {
    color: #ccc;
    margin: 0 0.2rem;
}
.developer-cta {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 0.8rem;
}
.developer-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}
.developer-cta i {
    margin-right: 0.2rem;
}
.login-footer {
    padding: 2rem 0;
    margin-top: 2rem;
}
.login-footer .copyright {
    padding-top: 0;
    border-top: none;
}

/* ================== Footer Enhancements ================== */
.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    font-size: 1rem;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
}
.footer-contact i {
    color: var(--primary-dark);
    margin-right: 0.3rem;
}
.footer-contact p {
    margin-bottom: 0.8rem;
}
.footer-map {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.footer-links ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-links ul li a i {
    font-size: 0.6rem;
    color: var(--primary-dark);
}

/* ================== Scroll Reveal Animations ================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: var(--delay, 0s);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-right {
    transform: translateX(60px);
}
.reveal-right.active {
    transform: translateX(0);
}

/* ================== WhatsApp Widget ================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

/* ================== AI Assistant Widget ================== */
.ai-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}
.ai-widget-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #ff8080);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulseObj 2s infinite;
}
.ai-widget-toggle:hover {
    transform: scale(1.05);
}
@keyframes pulseObj {
    0% { box-shadow: 0 0 0 0 rgba(255, 176, 176, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 176, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 176, 176, 0); }
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 520px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    display: none; /* toggled via JS */
    border: 1px solid var(--glass-border);
}
.ai-chat-window.active { display: flex; }

.ai-chat-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 1.25rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar-header {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ai-chat-header strong { font-size: 1.1rem; display: block; line-height: 1.2; }
.ai-chat-header span { font-size: 0.75rem; opacity: 0.85; display: block; }
.ai-chat-header button {
    background: none; border: none; color: white;
    font-size: 1.5rem; cursor: pointer; opacity: 0.8;
    transition: var(--transition);
}
.ai-chat-header button:hover { opacity: 1; transform: rotate(90deg); }

.ai-chat-tabs {
    display: flex;
    padding: 0.5rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid #f0f0f0;
    gap: 1.5rem;
}

.ai-tab {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.ai-tab.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.ai-chat-messages {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* WhatsApp Tab Style */
.ai-whatsapp-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.wa-icon-large {
    width: 70px;
    height: 70px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.wa-cta-btn {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.wa-status {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
}

.msg { display: flex; gap: 0.8rem; align-items: flex-end; }
.msg.user-msg { flex-direction: row-reverse; }
.msg-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--secondary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; flex-shrink: 0;
}
.msg.user-msg .msg-avatar { background: var(--primary); }
.msg-bubble {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 80%;
    box-shadow: var(--shadow-sm);
}
.bot-msg .msg-bubble {
    background: var(--white); color: var(--text-dark);
    border-bottom-left-radius: 2px;
}
.user-msg .msg-bubble {
    background: var(--primary); color: white;
    border-bottom-right-radius: 2px;
}

.ai-chat-input {
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}
.ai-chat-input input {
    flex: 1; padding: 0.6rem 1rem;
    border: 1px solid #ddd; border-radius: 20px;
    font-size: 0.9rem;
}
.ai-chat-input button {
    background: var(--secondary); color: white;
    border: none; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer;
    transition: var(--transition);
}
.ai-chat-input button:hover { background: #ff8080; }

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 1rem;
    background: var(--background-light);
    border-radius: 12px;
    width: max-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ================== Responsive ================== */
@media (max-width: 900px) {
    .booking-wrapper { grid-template-columns: 1fr; }
    .booking { background: var(--bg-light); }
    .booking-info { border-radius: var(--border-radius) var(--border-radius) 0 0; }
    .booking-form-container { padding: 3rem 2rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-trust-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .trust-divider { width: 60px; height: 1px; }
    .hero-badge { font-size: 0.75rem; }
    .nav-links {
        position: fixed; top: 70px; right: -100%; width: 250px;
        height: calc(100vh - 70px); background: var(--white);
        flex-direction: column; align-items: flex-start;
        padding: 2rem; box-shadow: -5px 0 15px rgba(0,0,0,0.05);
        transition: var(--transition);
    }
    .nav-links.active { right: 0; }
    .hamburger { display: block; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-logo { margin: 0 auto; }
    .footer-social { justify-content: center; }
    .footer-links ul li a { justify-content: center; }
    .built-by { flex-direction: column; gap: 0.5rem; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .why-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .hero-trust-bar { padding: 1rem; }
}
