/* ===================================
   શ્રીજી કૃપા હોસ્પિટલ - CSS Stylesheet
   Shriji Krupa Hospital - Complete CSS Framework
   =================================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Container Layout System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Grid System */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-column {
    display: flex;
    flex-direction: column;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 15px 0;
}

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

/* Navigation Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* background: linear-gradient(135deg, #2563eb, #1e40af); */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trust{
background:#e53935;
color:white;
display:inline-block;
padding:4px 10px;
border-radius:6px;
font-size:10px;
margin-bottom:5px;
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0;
    line-height: 1.2;
}

.brand-text .tagline {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
    font-weight: 600;
}

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Emergency Button */
.emergency-btn {
    margin-left: 20px;
}

.btn-emergency {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white !important;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-emergency:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c, #991b1b);
}

.phone-icon {
    font-size: 1.1rem;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 150px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: #2563eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ===================================
   PAGE HEADERS
   =================================== */

.page-header {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   SECTIONS
   =================================== */

.section {
    padding: 80px 0;
}

.section-light {
    background-color: #f8fafc;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center;
}

/* ===================================
   HIGHLIGHT FEATURES SECTION
   =================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   ABOUT HOSPITAL PREVIEW SECTION
   =================================== */

.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.about-content {
    padding-right: 20px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 30px;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}
/* ===================================
    CEO section
   ===================================*/
   .ceo-container{
display:flex;
align-items:center;
justify-content: center;
gap:40px;
flex-wrap:wrap;
}

.ceo-image img{
width:280px;
border-radius:10px;
}

.ceo-content{
max-width:600px;
}

.ceo-content h3{
font-size:28px;
margin:10px 0;
}
/* ===================================
   MEDICAL SERVICES PREVIEW SECTION
   =================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(30, 64, 175, 0.05));
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.service-card:hover::after {
    opacity: 1;
    top: -25%;
    right: -25%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #2563eb;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #059669, #047857);
}

.service-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.service-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ===================================
   DOCTORS PREVIEW SECTION
   =================================== */

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.doctor-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.doctor-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.1);
}

.doctor-info {
    padding: 25px;
    text-align: center;
}

.doctor-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.doctor-qualification {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.doctor-availability {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===================================
   EMERGENCY CARE BANNER
   =================================== */

.emergency-banner {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.emergency-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.emergency-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.emergency-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: pulse 2s infinite;
}

.emergency-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.emergency-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.btn-emergency-large {
    background: white;
    color: #dc2626 !important;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.btn-emergency-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
}

/* ===================================
   APPOINTMENT CALL-TO-ACTION SECTION
   =================================== */

.cta-section {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   GALLERY PAGE STYLES
   =================================== */

/* Gallery Page Hero */
.gallery-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23f0f9ff" width="1200" height="400"/><path fill="%23e0f2fe" d="M0,140 Q300,40 600,140 T1200,140 L1200,400 L0,400 Z"/><path fill="%23bae6fd" d="M0,190 Q300,90 600,190 T1200,190 L1200,400 L0,400 Z"/><circle fill="%237dd3fc" cx="950" cy="80" r="50"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 140px 0 100px;
    text-align: center;
    color: white;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.8));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
}

.gallery-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(220, 38, 38, 0.8);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-caption {
    background: white;
    padding: 30px;
    text-align: center;
}

.lightbox-caption h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.lightbox-caption p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Fade-in Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Appointment Page Hero */
.appointment-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23f0f9ff" width="1200" height="400"/><path fill="%23e0f2fe" d="M0,160 Q300,60 600,160 T1200,160 L1200,400 L0,400 Z"/><path fill="%23bae6fd" d="M0,210 Q300,110 600,210 T1200,210 L1200,400 L0,400 Z"/><circle fill="%237dd3fc" cx="800" cy="100" r="60"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 140px 0 100px;
    text-align: center;
    color: white;
}

/* Contact Page Hero */
.contact-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23f0f9ff" width="1200" height="400"/><path fill="%23e0f2fe" d="M0,170 Q300,70 600,170 T1200,170 L1200,400 L0,400 Z"/><path fill="%23bae6fd" d="M0,220 Q300,120 600,220 T1200,220 L1200,400 L0,400 Z"/><circle fill="%237dd3fc" cx="700" cy="90" r="70"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 140px 0 100px;
    text-align: center;
    color: white;
}

/* Form Styles */
.appointment-form-container,
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.appointment-form,
.contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Success Messages */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* WhatsApp Booking */
.whatsapp-booking {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.whatsapp-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.btn-whatsapp {
    background: white;
    color: #25d366;
    border: 2px solid white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    font-size: 1.2rem;
}

/* Contact Information */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-info-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.contact-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2563eb;
    margin-bottom: 5px;
}

.contact-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-link {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Google Maps */

.map {
    width: 100%;
    height: 400px;
    border: none;
}


.map-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    align-items: center;
    justify-self: center;
}

.map-note {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 10px;
    font-style: italic;
}

/* Emergency Buttons */
.emergency-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ===================================
   SERVICES PAGE STYLES
   =================================== */

/* Services Page Hero */
.services-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23f0f9ff" width="1200" height="400"/><path fill="%23e0f2fe" d="M0,150 Q300,50 600,150 T1200,150 L1200,400 L0,400 Z"/><path fill="%23bae6fd" d="M0,200 Q300,100 600,200 T1200,200 L1200,400 L0,400 Z"/><circle fill="%237dd3fc" cx="900" cy="120" r="40"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 140px 0 100px;
    text-align: center;
    color: white;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981, #059669);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.benefit-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   DEPARTMENTS PAGE STYLES
   =================================== */

/* Departments Page Hero */
.departments-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23f0f9ff" width="1200" height="400"/><path fill="%23e0f2fe" d="M0,180 Q300,80 600,180 T1200,180 L1200,400 L0,400 Z"/><path fill="%23bae6fd" d="M0,220 Q300,120 600,220 T1200,220 L1200,400 L0,400 Z"/><circle fill="%237dd3fc" cx="1000" cy="100" r="50"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 140px 0 100px;
    text-align: center;
    color: white;
}

/* Departments Grid */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.department-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.department-card:hover::before {
    transform: scaleX(1);
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.department-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.department-card:hover .department-icon {
    transform: scale(1.1) rotate(5deg);
}

.department-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.department-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Specialized Care Section */
.specialized-care {
    max-width: 800px;
    margin: 50px auto 0;
    text-align: center;
}

.care-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 30px;
    text-align: left;
}

/* Doctors Page Hero */
.doctors-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23f0f9ff" width="1200" height="400"/><circle fill="%23e0f2fe" cx="200" cy="100" r="80"/><circle fill="%23bae6fd" cx="600" cy="150" r="120"/><circle fill="%237dd3fc" cx="1000" cy="80" r="60"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 140px 0 100px;
    text-align: center;
    color: white;
}

/* Doctors Directory Grid */
.doctors-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Enhanced Doctor Cards */
.doctors-directory-grid .doctor-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

.doctors-directory-grid .doctor-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.doctors-directory-grid .doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.doctors-directory-grid .doctor-card:hover::before {
    transform: scaleX(1);
}

.doctors-directory-grid .doctor-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.doctors-directory-grid .doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.doctors-directory-grid .doctor-card:hover .doctor-image img {
    transform: scale(1.1);
}

.doctors-directory-grid .doctor-info {
    padding: 25px;
    text-align: center;
}

.doctors-directory-grid .doctor-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.doctors-directory-grid .doctor-qualification {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.doctors-directory-grid .doctor-specialization {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.doctors-directory-grid .doctor-availability {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.doctors-directory-grid .doctor-appointment-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.doctors-directory-grid .doctor-appointment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Emergency Notice Section */
.emergency-notice-section {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 60px 0;
    border-top: 1px solid #fbbf24;
    border-bottom: 1px solid #fbbf24;
}

.emergency-notice-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.emergency-notice-title {
    font-size: 2rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 15px;
}

.emergency-notice-text {
    font-size: 1.1rem;
    color: #78350f;
    margin-bottom: 30px;
    line-height: 1.6;
}

.emergency-notice-contact {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #fbbf24;
}

.emergency-notice-phone {
    font-size: 2.2rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* About Page Hero */
.about-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23f0f9ff" width="1200" height="400"/><path fill="%23e0f2fe" d="M0,200 Q300,100 600,200 T1200,200 L1200,400 L0,400 Z"/><path fill="%23bae6fd" d="M0,250 Q300,150 600,250 T1200,250 L1200,400 L0,400 Z"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 140px 0 100px;
    text-align: center;
    color: white;
}

.gujarati-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 15px 0 20px;
    color: #f1f5f9;
}

/* About Introduction Section */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

.gujarati-quote {
    color: #2563eb;
    font-weight: 500;
    font-style: italic;
}

/* Mission & Vision Section */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.mission-vision-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.mission-vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981, #059669);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mission-vision-card:hover::before {
    transform: scaleX(1);
}

.mission-vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.mv-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.mission-vision-card:hover .mv-icon {
    transform: scale(1.1) rotate(5deg);
}

.mv-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.mv-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

/* Medical Approach Section */
.approach-section {
    max-width: 800px;
    margin: 50px auto 0;
    text-align: center;
}

.approach-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
    text-align: left;
}

/* Emergency Care Section */
.emergency-care-section {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.emergency-care-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.emergency-care-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.emergency-care-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.emergency-care-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.emergency-contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.emergency-label {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.emergency-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fbbf24;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.card-content {
    color: #64748b;
    line-height: 1.6;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2563eb;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Gallery Responsive Styles */
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    margin-bottom: 20px;
}

.gallery-image {
    height: 200px;
}

.gallery-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gallery-title {
    font-size: 1.1rem;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
}

.lightbox-close {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
}

.lightbox-caption {
    padding: 20px;
}

.lightbox-caption h3 {
    font-size: 1.3rem;
}

.lightbox-caption p {
    font-size: 0.9rem;
}

/* Responsive Styles for Appointment & Contact Pages */
.appointment-hero {
        padding: 120px 0 80px;
    }

/* Responsive Styles for Appointment & Contact Pages */
.appointment-hero {
    padding: 120px 0 80px;
}

.contact-hero {
    padding: 120px 0 80px;
}

.appointment-form-container,
.contact-form-container {
    padding: 30px 20px;
}

.form-row {
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 10px 14px;
    font-size: 0.95rem;
}

.form-textarea {
    min-height: 80px;
}

.btn-large {
    padding: 12px 24px;
    font-size: 1rem;
}

.whatsapp-booking {
    padding: 30px 20px;
    margin-top: 20px;
}

.whatsapp-title {
    font-size: 1.2rem;
}

.contact-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-info-card {
    padding: 25px 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-title {
    font-size: 1.1rem;
}

.map-placeholder {
    padding: 40px 15px;
}

.map-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.emergency-buttons {
    flex-direction: column;
    gap: 10px;
}

/* ===================================
   FLOATING ACTION BUTTONS
   =================================== */

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.emergency-float-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    animation: pulse 2s infinite;
}

.floating-btn .icon {
    font-size: 1.5rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(220, 38, 38, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-preview {
        gap: 40px;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .emergency-title {
        font-size: 2.2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .services-grid,
    .doctors-grid {
        gap: 25px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 50px 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .emergency-btn {
        margin-left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        min-height: 90vh;
        margin-top: 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .page-header {
        padding: 100px 0 60px;
        margin-top: 80px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-hero {
        padding: 120px 0 80px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card {
        padding: 25px 20px;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .benefit-title {
        font-size: 1.2rem;
    }
    
    .departments-hero {
        padding: 120px 0 80px;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .department-card {
        padding: 25px 20px;
    }
    
    .department-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .department-title {
        font-size: 1.2rem;
    }
    
    .specialized-care {
        margin: 25px auto 0;
    }
    
    .care-description {
        font-size: 1rem;
    }
    
    .doctors-directory-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .doctors-directory-grid .doctor-image {
        height: 180px;
    }
    
    .doctors-directory-grid .doctor-info {
        padding: 15px;
    }
    
    .doctors-directory-grid .doctor-name {
        font-size: 1.1rem;
    }
    
    .doctors-directory-grid .doctor-qualification {
        font-size: 0.85rem;
    }
    
    .doctors-directory-grid .doctor-specialization {
        font-size: 0.8rem;
    }
    
    .doctors-directory-grid .doctor-availability {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    
    .doctors-directory-grid .doctor-appointment-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .emergency-notice-section {
        padding: 40px 0;
    }
    
    .emergency-notice-title {
        font-size: 1.6rem;
    }
    
    .emergency-notice-text {
        font-size: 0.95rem;
    }
    
    .emergency-notice-contact {
        padding: 20px 15px;
    }
    
    .emergency-notice-phone {
        font-size: 1.6rem;
    }
    
    .gujarati-title {
        font-size: 1.5rem;
        margin: 10px 0 15px;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .about-image img {
        height: 250px;
        margin-top: 15px;
    }
    
    .intro-text p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mission-vision-card {
        padding: 30px 20px;
    }
    
    .mv-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .approach-section {
        margin: 30px auto 0;
    }
    
    .emergency-care-section {
        padding: 60px 0;
    }
    
    .emergency-care-title {
        font-size: 2rem;
    }
    
    .emergency-care-description {
        font-size: 1.1rem;
    }
    
    .emergency-contact-info {
        padding: 25px 20px;
    }
    
    .emergency-number {
        font-size: 2rem;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .benefit-card {
        padding: 30px 20px;
    }
    
    .benefit-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .departments-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .department-card {
        padding: 30px 20px;
    }
    
    .department-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .specialized-care {
        margin: 30px auto 0;
    }
    
    .care-description {
        font-size: 1rem;
    }
    
    .doctors-directory-grid .doctor-image {
        height: 200px;
    }
    
    .doctors-directory-grid .doctor-info {
        padding: 20px;
    }
    
    .doctors-directory-grid .doctor-name {
        font-size: 1.2rem;
    }
    
    .doctors-directory-grid .doctor-qualification {
        font-size: 0.9rem;
    }
    
    .doctors-directory-grid .doctor-specialization {
        font-size: 0.85rem;
    }
    
    .doctors-directory-grid .doctor-availability {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .doctors-directory-grid .doctor-appointment-btn {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .emergency-notice-section {
        padding: 50px 0;
    }
    
    .emergency-notice-title {
        font-size: 1.8rem;
    }
    
    .emergency-notice-text {
        font-size: 1rem;
    }
    
    .emergency-notice-contact {
        padding: 25px 20px;
    }
    
    .emergency-notice-phone {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .service-card {
        padding: 30px 20px;
    }
    
    .emergency-banner {
        padding: 80px 0;
    }
    
    .emergency-title {
        font-size: 2rem;
    }
    
    .emergency-description {
        font-size: 1.1rem;
    }
    
    .cta-section {
        padding: 40px 20px;
        margin: 0 10px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
    }
}

/* Mobile Phones */
/* Appointment Form Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* Appointment Error Message */
#errorMessage {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    animation: slideInUp 0.5s ease;
}

#errorMessage h3 {
    color: #dc2626;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#errorMessage p {
    color: #7f1d1d;
    margin-bottom: 0;
}

#errorMessage a {
    color: #dc2626;
    text-decoration: underline;
    font-weight: 600;
}

#errorMessage a:hover {
    color: #b91c1c;
}

/* Enhanced Success Message */
#successMessage {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    animation: slideInUp 0.5s ease;
}

#successMessage h3 {
    color: #16a34a;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#successMessage p {
    color: #14532d;
    margin-bottom: 15px;
}

#successMessage .success-details {
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: left;
}

#successMessage .success-details h4 {
    color: #16a34a;
    margin-bottom: 10px;
}

#successMessage .success-details p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btn.loading {
    animation: pulse 1.5s infinite;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .brand-text h1 {
        font-size: 1.2rem;
    }
    
    .brand-text .tagline {
        font-size: 0.75rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .features-grid,
    .services-grid,
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .service-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .doctor-image {
        height: 180px;
    }
    
    .doctor-info {
        padding: 20px;
    }
    
    .emergency-banner {
        padding: 60px 0;
    }
    
    .emergency-title {
        font-size: 1.8rem;
    }
    
    .emergency-description {
        font-size: 1rem;
    }
    
    .emergency-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .btn-emergency-large {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .cta-section {
        padding: 30px 15px;
        margin: 0;
    }
    
    .cta-title {
        font-size: 1.6rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-btn .icon {
        font-size: 1.2rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 2.5rem; }

.hidden { display: none; }
.visible { display: block; }

/* Ripple Animation */
@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus,
.floating-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .floating-buttons {
        display: none;
    }
    
    .hero {
        min-height: auto;
        margin-top: 0;
    }
}
