/* --- VARIABLES --- */
:root {
    --primary: #00b4d8;
    --dark: #0077b6;
    --text: #2b2d42;
    --light: #edf6f9;
    --white: #ffffff;
    --shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: var(--light); color: var(--text); overflow-x: hidden; scroll-behavior: smooth; }

/* --- UTILS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-pad { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.2rem; color: var(--text); margin-bottom: 0.5rem; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }

/* --- NAVBAR --- */
.med-navbar { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.logo { font-size: 1.6rem; font-weight: 700; color: var(--text); }
.logo span { color: var(--primary); }
.logo i { color: #e63946; margin-right: 5px; }
.nav-menu { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-menu a { text-decoration: none; color: #555; font-weight: 500; transition: 0.3s; }
.nav-menu a:hover { color: var(--primary); }
.nav-btn { background: var(--primary); color: white !important; padding: 8px 20px; border-radius: 50px; }
.nav-btn:hover { background: var(--dark); }

/* --- HERO --- */
.med-hero { display: flex; align-items: center; padding: 6rem 5% 4rem; background: white; flex-wrap: wrap; }
.hero-content { flex: 1; min-width: 300px; padding-right: 2rem; }
.badge { background: #e0fbfc; color: var(--dark); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.hero-content h1 { font-size: 3.2rem; line-height: 1.2; margin: 15px 0; color: var(--text); }
.hero-content h1 span { color: var(--primary); }
.hero-content p { color: #6c757d; margin-bottom: 2rem; font-size: 1.1rem; }
.hero-image { flex: 1; position: relative; }
.hero-image img { width: 100%; border-radius: 30px; box-shadow: var(--shadow); }
.floating-card { position: absolute; bottom: 30px; left: -20px; background: white; padding: 15px 25px; border-radius: 15px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 15px; animation: float 3s infinite ease-in-out; }
.floating-card i { font-size: 2rem; color: var(--primary); }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

.search-box { display: flex; background: white; border: 1px solid #dee2e6; border-radius: 50px; padding: 5px; max-width: 450px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.search-box i { padding: 12px 15px; color: #adb5bd; }
.search-box input { flex: 1; border: none; outline: none; font-size: 1rem; }
.search-box button { background: var(--dark); color: white; border: none; padding: 10px 25px; border-radius: 50px; cursor: pointer; transition: 0.3s; }
.search-box button:hover { background: var(--primary); }

/* --- SERVICES GRID --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.svc-card { background: white; padding: 2rem; border-radius: 20px; transition: 0.3s; border: 1px solid #f1f1f1; }
.svc-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--primary); }
.icon-bg { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; color: white; }
.blue { background: #48cae4; } .green { background: #90be6d; } .purple { background: #9d4edd; } .orange { background: #f9c74f; }
.svc-card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.svc-card p { color: #6c757d; font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.6; }
.svc-card a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 0.9rem; cursor: pointer;}
.svc-card a:hover { color: var(--primary); }

/* --- DOCTORS --- */
.bg-light { background: #f8f9fa; }
.filter-pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pill { background: white; border: 1px solid #dee2e6; padding: 8px 20px; border-radius: 50px; cursor: pointer; transition: 0.2s; }
.pill.active, .pill:hover { background: var(--dark); color: white; border-color: var(--dark); }
.doctor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 2rem; }
.doc-card { background: white; padding: 1.5rem; border-radius: 15px; text-align: center; border: 1px solid #f1f1f1; transition: 0.3s; }
.doc-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.doc-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid #caf0f8; }

/* --- AI SECTION --- */
.ai-wrapper { background: linear-gradient(135deg, #023e8a 0%, #0077b6 100%); padding: 5rem 0; color: white; }
.ai-flex { display: flex; gap: 4rem; align-items: center; flex-wrap: wrap; }
.ai-info { flex: 1; min-width: 300px; }
.ai-info h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.check-list { list-style: none; margin-top: 2rem; }
.check-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; opacity: 0.9; }
.chat-box { flex: 1; background: white; border-radius: 20px; height: 400px; display: flex; flex-direction: column; overflow: hidden; min-width: 300px; }
.chat-history { flex: 1; padding: 20px; background: #f8f9fa; overflow-y: auto; color: #333; }
.msg { padding: 10px 15px; border-radius: 15px; margin-bottom: 10px; max-width: 80%; font-size: 0.9rem; }
.bot { background: #caf0f8; border-bottom-left-radius: 0; align-self: flex-start; }
.user { background: var(--dark); color: white; border-bottom-right-radius: 0; margin-left: auto; }
.chat-input { padding: 15px; background: white; display: flex; gap: 10px; border-top: 1px solid #eee; }
.chat-input input { flex: 1; border: 1px solid #dee2e6; padding: 10px; border-radius: 50px; outline: none; }
.chat-input button { background: var(--dark); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }

/* --- FINAL BOOKING SECTION --- */
.booking-section { padding: 5rem 0; background: white; }
.booking-card { display: flex; flex-wrap: wrap; background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); overflow: hidden; max-width: 900px; margin: 0 auto; border: 1px solid #f1f1f1; }
.booking-left { background: var(--text); color: white; padding: 3rem; flex: 1; min-width: 300px; }
.booking-left h3 { font-size: 2rem; margin-bottom: 1rem; }
.booking-left p { opacity: 0.7; margin-bottom: 3rem; }
.info-row { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; font-size: 1.1rem; }
.booking-right { padding: 3rem; flex: 1.5; min-width: 300px; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; color: #555; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #dee2e6; border-radius: 8px; outline: none; background: #f8f9fa; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
.btn-submit { width: 100%; background: var(--primary); color: white; border: none; padding: 15px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 1rem; margin-top: 10px; transition: 0.3s; }
.btn-submit:hover { background: var(--dark); }
.status-msg { text-align: center; margin-top: 15px; font-weight: 600; color: #2a9d8f; }

footer { background: var(--text); color: white; text-align: center; padding: 2rem; font-size: 0.9rem; }
.map-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid white;
}