/* Reset and Base Styles */
:root {
    --nav-offset: 64px;
}

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

/* Legal/Privacy Page Styles */
.legal-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 80px);
    padding: 60px 0;
    position: relative;
}

.legal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
    z-index: 1;
}

.legal-content .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.legal-header .last-updated {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    padding: 10px 20px;
    background: #f1f5f9;
    border-radius: 25px;
    display: inline-block;
    border: 1px solid #e2e8f0;
}

.legal-text {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.8;
    font-size: 1.1rem;
    color: #334155;
}

.legal-text h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 40px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #e2e8f0;
    position: relative;
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.legal-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.legal-text ul {
    margin: 20px 0;
    padding-left: 0;
}

.legal-text li {
    list-style: none;
    margin-bottom: 12px;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    position: relative;
    transition: all 0.3s ease;
}

.legal-text li:hover {
    background: #f1f5f9;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.legal-text li::before {
    content: '✓';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.legal-text strong {
    color: #1e293b;
    font-weight: 600;
}

.legal-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-text a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* Responsive Design for Legal/Privacy Pages */
@media (max-width: 480px) {
    .legal-content {
        padding: 30px 0;
    }

    .legal-content .container {
        padding: 0 15px;
    }

    .legal-header {
        padding: 30px 20px;
        margin-bottom: 30px;
        border-radius: 15px;
    }

    .legal-header h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .legal-header .last-updated {
        font-size: 1rem;
        padding: 8px 16px;
    }

    .legal-text {
        padding: 30px 25px;
        border-radius: 15px;
        font-size: 1rem;
        line-height: 1.7;
    }

    .legal-text h2 {
        font-size: 1.6rem;
        margin: 30px 0 15px 0;
    }

    .legal-text li {
        padding: 12px 15px;
        margin-bottom: 10px;
    }

    .legal-text li::before {
        width: 20px;
        height: 20px;
        font-size: 10px;
        left: -10px;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 20px 0;
    }

    .legal-content .container {
        padding: 0 10px;
    }

    .legal-header {
        padding: 25px 15px;
        margin-bottom: 25px;
        border-radius: 12px;
    }

    .legal-header h1 {
        font-size: 1.8rem;
    }

    .legal-header .last-updated {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .legal-text {
        padding: 25px 20px;
        border-radius: 12px;
        font-size: 0.95rem;
    }

    .legal-text h2 {
        font-size: 1.4rem;
        margin: 25px 0 12px 0;
    }

    .legal-text p {
        margin-bottom: 15px;
        text-align: left;
    }

    .legal-text li {
        padding: 10px 12px;
        margin-bottom: 8px;
        border-radius: 8px;
    }

    .legal-text li:hover {
        transform: none;
    }

    .legal-text li::before {
        width: 18px;
        height: 18px;
        font-size: 9px;
        left: -9px;
    }
}

/* Accessibility Improvements */
.legal-text {
    scroll-behavior: smooth;
}

.legal-text h2:focus,
.legal-text a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

.legal-text li:focus-within {
    background: #e0e7ff;
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .legal-content {
        background: white;
        padding: 0;
    }

    .legal-content::before {
        display: none;
    }

    .legal-header,
    .legal-text {
        box-shadow: none;
        border: 1px solid #ddd;
        background: white;
    }

    .legal-text li::before {
        background: #333;
    }

    .legal-text a {
        color: #333;
        text-decoration: underline;
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile-First Base Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    body {
        font-size: 14px;
        line-height: 1.6;
    }

    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    h3 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
        width: 100%;
        margin-bottom: 10px;
    }

    .btn-group {
        flex-direction: column;
        gap: 10px;
    }

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

    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }

    .card {
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

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

    .hidden-mobile {
        display: none;
    }

    .full-width-mobile {
        width: 100%;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(42, 110, 243, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(42, 110, 243, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(42, 110, 243, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(42, 110, 243, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(42, 110, 243, 0.6);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    background-attachment: fixed;
    scroll-behavior: smooth;
    font-weight: 400;
    letter-spacing: 0.3px;
}

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

/* Enhanced Navigation */
.navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 80px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Prevent horizontal overflow and body scroll when mobile menu is open */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.navbar.scrolled {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo a:hover {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(203, 213, 225, 0.9);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 12px 20px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.2);
}

.cta-nav {
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 50%, #16A085 100%);
    color: #f8fafc !important;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.cta-nav:hover {
    background: linear-gradient(135deg, #219A52 0%, #27AE60 50%, #138D75 100%);
    color: white !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
    position: relative;
    z-index: 1002;
}

.hamburger:hover {
    background: rgba(59, 130, 246, 0.1);
}

.bar {
    width: 24px;
    height: 3px;
    background: rgba(203, 213, 225, 0.9);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: #3b82f6;
}

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

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: #3b82f6;
}

/* Enhanced Mobile Booking Form Styles */
@media (max-width: 768px) {
    .booking-form {
        padding: 1rem;
        margin: 0;
    }

    .booking-step {
        padding: 1rem;
    }

    .clinic-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .clinic-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .time-slot {
        padding: 0.75rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-col {
        width: 100%;
    }

    .booking-summary {
        position: static;
        margin-top: 2rem;
        padding: 1rem;
    }

    .step-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-nav-btn {
        width: 100%;
        min-height: 44px;
    }
}

/* Tablet Navigation Styles */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 25px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* Body scroll prevention when mobile nav is open */
body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        left: 0;
        right: 0;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 70px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(59, 130, 246, 0.2);
        padding: 30px 0;
        gap: 0;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 999;
        box-sizing: border-box;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 8px 0;
        width: 100%;
    }

    .nav-link {
        display: flex;
        width: 85%;
        margin: 0 auto;
        padding: 16px 20px;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        min-height: 44px; /* Touch target size */
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .cta-nav {
        margin-top: 20px;
        padding: 16px 28px;
        font-size: 15px;
        min-height: 48px; /* Larger touch target for CTA */
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        min-width: 44px; /* Touch target size */
        min-height: 44px;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo {
        height: 35px;
        flex-shrink: 0;
    }

    .nav-logo {
        gap: 8px;
        flex-shrink: 0;
    }
}

/* Small Mobile Navigation Styles */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo {
        height: 30px;
    }
    
    .nav-link {
        width: 90%;
        font-size: 15px;
        padding: 14px 18px;
    }
    
    .cta-nav {
        font-size: 14px;
        padding: 14px 24px;
    }
}

/* Large Screen Navigation Styles */
@media (min-width: 1200px) {
    .nav-container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .nav-menu {
        gap: 40px;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 14px 24px;
    }
}

/* Enhanced Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 60%, #475569 100%);
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 700px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 101, 101, 0.08) 0%, transparent 50%);
    z-index: 1;
    animation: glow 4s ease-in-out infinite alternate;
}

.hero::after {
    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="stars" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23stars)"/></svg>') repeat;
    z-index: 1;
    animation: shimmer 8s linear infinite;
}

.hero-brand {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.brand-accent {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.brand-slogan {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.5px;
}







/* Mobile responsive adjustments for hero */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
        min-height: 500px;
    }

    .hero-brand {
        margin-bottom: 24px;
    }

    .brand-accent {
        font-size: 2.2rem;
    }

    .brand-slogan {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.4rem;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 12px;
        text-align: center;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }
}



.hero-container {
    position: relative;
    z-index: 3;
}

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

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
    text-align: center;
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
}

.search-box:focus-within {
    box-shadow: 0 25px 80px rgba(42, 110, 243, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.3);
    transform: translateY(-5px) scale(1.02);
}

.search-icon {
    position: absolute;
    left: 25px;
    color: #999;
    font-size: 16px;
    z-index: 1;
}

.search-input {
    flex: 1;
    padding: 22px 30px 22px 60px;
    border: none;
    font-size: 17px;
    font-weight: 500;
    outline: none;
    background: transparent;
    cursor: pointer;
    color: #2c3e50;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.search-input:focus {
    cursor: text;
    color: #1e293b;
}

.search-btn {
    background: linear-gradient(135deg, #2A6EF3 0%, #3B82F6 50%, #1E5AD1 100%);
    border: none;
    padding: 22px 30px;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    font-size: 16px;
    border-radius: 0 60px 60px 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 110, 243, 0.3), transparent);
    transition: left 0.5s;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    background: linear-gradient(135deg, #1E5AD1 0%, #2A6EF3 50%, #3B82F6 100%);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(42, 110, 243, 0.4);
}

.search-btn:active {
    transform: scale(0.98);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: #2C3E50;
}

/* Star Rating Styles */
.clinic-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.stars {
    display: flex;
    gap: 2px;
    color: #FFD700;
    font-size: 16px;
}

.stars i {
    transition: color 0.2s ease;
}

.rating-text {
    font-weight: 600;
    color: #2C3E50;
    font-size: 14px;
}

.review-count {
    color: #666;
    font-size: 13px;
    font-weight: 400;
}

/* Categories Section */
.categories {
    padding: 50px 0;
    background: #ffffff;
    scroll-margin-top: 80px; /* Positioned where white background starts */
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.category-btn {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #E8F4FD;
    padding: 45px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 110, 243, 0.15), transparent);
    transition: left 0.6s ease;
}

.category-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover::after {
    opacity: 1;
}

.category-btn:hover {
    border-color: #3b82f6;
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(42, 110, 243, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, #2A6EF3 0%, #3B82F6 50%, #1E5AD1 100%);
    border-color: #2A6EF3;
    color: white;
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 60px rgba(42, 110, 243, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.category-btn.active::after {
    background: linear-gradient(135deg, rgba(42, 110, 243, 0.1), rgba(59, 130, 246, 0.05));
    opacity: 1;
}

.category-btn.active span {
    color: white;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #2A6EF3;
}

.category-icon i {
    color: #2A6EF3;
}

/* Ensure all Font Awesome icons use consistent blue color */
.fas, .far, .fab {
    color: #2A6EF3;
}

/* Override for specific contexts where different colors are needed */
.contact-icon .fas,
.contact-icon .far,
.contact-icon .fab {
    color: white;
}

.search-btn .fas,
.search-btn .far,
.search-btn .fab {
    color: white;
}

.action-btn .fas,
.action-btn .far,
.action-btn .fab,
.action-btn i {
    color: white !important;
}

.category-btn span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2C3E50;
}

/* Locations Section */
.locations {
    padding: 50px 0;
    background: #F8FAFC;
}

/* Hide mobile dropdown on desktop */
.mobile-location-select {
    display: none;
}

.location-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* More specific rule for desktop-only location grid */
.desktop-only.location-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.location-btn {
    background: white;
    border: 2px solid #E8F4FD;
    padding: 35px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.location-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 110, 243, 0.1), transparent);
    transition: left 0.5s;
}

.location-btn:hover::before {
    left: 100%;
}

.location-btn:hover {
    border-color: #2A6EF3;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(42, 110, 243, 0.2);
}

.location-btn.active {
    background: #2A6EF3;
    border-color: #2A6EF3;
    color: white;
}

.location-btn.active .location-name {
    color: white;
}

.location-btn.active .clinic-count {
    color: rgba(255, 255, 255, 0.8);
}

.location-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2C3E50;
}

.clinic-count {
    font-size: 0.9rem;
    color: #5A6C7D;
}

/* Featured Clinics Section */
.featured-clinics {
    padding: 0;
    background: #ffffff;
}

.featured-clinics-header {
    padding: 15px 0 10px 0;
    background: #2A6EF3;
}

.featured-clinics-header .section-title {
    color: white;
    margin-bottom: 15px;
}

.featured-clinics-header .filters {
    margin-bottom: 0;
}

.featured-clinics-content {
    padding: 30px 0 50px 0;
    background: #ffffff;
}

.filters {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filters select {
    padding: 12px 20px;
    border: 2px solid #E1E8ED;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filters select:focus {
    outline: none;
    border-color: #2A6EF3;
}

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

.clinic-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
    cursor: pointer;
    position: relative;
}



.clinic-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 110, 243, 0.05) 0%, rgba(42, 110, 243, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}



.clinic-card:hover::after {
    opacity: 1;
}

.clinic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(42, 110, 243, 0.15);
}

.clinic-card > * {
    position: relative;
    z-index: 2;
}

.clinic-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.clinic-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    animation: fadeInScale 0.8s ease-out;
}

/* Remove empty ruleset */
    /* Hover animations removed */
.clinic-card:hover .clinic-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    z-index: 3;
}

.clinic-card:hover .image-overlay {
    opacity: 1;
}

.image-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
    z-index: 2;
}

.type-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2C3E50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    align-self: flex-start;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.clinic-card:hover .type-badge {
    transform: translateY(0);
}

.type-badge i {
    color: #2A6EF3;
    font-size: 1rem;
}

.premium-badge-image {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-end;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.clinic-card:hover .premium-badge-image {
    transform: translateY(0);
}

.premium-badge-image i {
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

/* Data Completeness Indicator */
.data-completeness-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 193, 7, 0.95);
    backdrop-filter: blur(10px);
    color: #856404;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    align-self: flex-end;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.clinic-card:hover .data-completeness-indicator {
    transform: translateY(0);
}

.data-completeness-indicator i {
    font-size: 0.8rem;
    color: #856404;
}

/* Missing Data Styling */
.clinic-location.missing-data {
    color: #dc3545;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clinic-location.missing-data i {
    color: #dc3545;
    font-size: 0.9rem;
}

/* Disabled Contact Button */
.contact-btn.disabled {
    background: #6c757d !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

.contact-btn.disabled:hover {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Data Quality Classes */
.clinic-card[data-quality="incomplete"] {
    border-left: 4px solid #ffc107;
}

.clinic-card[data-quality="poor"] {
    border-left: 4px solid #dc3545;
}

.clinic-card[data-quality="good"] {
    border-left: 4px solid #28a745;
}

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

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

.clinic-card:hover .clinic-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
    /* Float animation removed */
.clinic-card:hover .clinic-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.clinic-content {
    padding: 30px;
}

.clinic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.clinic-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 5px;
}

.clinic-type {
    color: #5A6C7D;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}



.clinic-location {
    color: #5A6C7D;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clinic-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stars {
    color: #FFD700;
}

.rating-text {
    color: #5A6C7D;
    font-size: 0.9rem;
}

.clinic-actions {
    display: flex;
    gap: 15px;
}

.visit-btn {
    background: #27AE60;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease;
    cursor: pointer;
    min-width: 120px;
}

.visit-btn:hover {
    background: #219A52;
}

.contact-btn {
    background: transparent;
    color: #2A6EF3;
    border: 2px solid #2A6EF3;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 100px;
    text-align: center;
}

.contact-btn:hover {
    background: #2A6EF3;
    color: white;
}

.website-btn {
    background: #FF6B35;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease;
    cursor: pointer;
}

.website-btn:hover {
    background: #E55A2B;
}

.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    background: white;
    color: #2A6EF3;
    border: 2px solid #e1e5e9;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background: #f8f9fa;
    border-color: #2A6EF3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 110, 243, 0.15);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #2A6EF3 0%, #1E5AD1 100%);
    color: white;
    border-color: #2A6EF3;
    box-shadow: 0 4px 12px rgba(42, 110, 243, 0.3);
}

.pagination-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 110, 243, 0.4);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    min-width: 44px;
    height: 44px;
}

@media (max-width: 768px) {
    .pagination-controls {
        gap: 4px;
    }

    .pagination-btn {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 40px;
        height: 40px;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2A6EF3 0%, #1E5AD1 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-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 20"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-btn {
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: none;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 110, 243, 0.2), transparent);
    transition: left 0.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 50%, #219A52 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    animation: subtle-pulse 3s ease-in-out infinite;
}

.cta-btn.primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(39, 174, 96, 0.4);
    animation: pulse 0.5s ease-in-out;
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    }
    50% {
        box-shadow: 0 12px 30px rgba(39, 174, 96, 0.4);
    }
}

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

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #2A6EF3;
    border-color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

/* Clinic Profile Styles */
.clinic-profile-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafe 50%, #e8f4fd 100%);
    position: relative;
    overflow: hidden;
}

.clinic-profile-header::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="%23e8f4fd" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.4;
    z-index: 0;
}

.profile-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.clinic-image-large {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(42, 110, 243, 0.15), 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.clinic-image-large:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: 0 35px 70px rgba(42, 110, 243, 0.2), 0 15px 35px rgba(0, 0, 0, 0.15);
}

.clinic-image-large img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.clinic-image-large:hover img {
    transform: scale(1.05);
}

.clinic-info {
    padding: 20px 0;
    position: relative;
}

.clinic-info::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 4px;
    height: 60px;
    background: linear-gradient(135deg, #2A6EF3 0%, #4F46E5 100%);
    border-radius: 2px;
    opacity: 0.8;
}

.clinic-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.clinic-info .clinic-type {
    font-size: 1.1rem;
    color: #2A6EF3;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    background: rgba(42, 110, 243, 0.1);
    border-radius: 25px;
    display: inline-block;
    border: 1px solid rgba(42, 110, 243, 0.2);
}

.rating-row {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.stars {
    font-size: 1.4rem;
    color: #FFD700;
    text-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
}

.rating-score {
    font-size: 1.1rem;
    color: #4A5568;
    font-weight: 600;
}

.clinic-address {
    font-size: 1.2rem;
    color: #4A5568;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(42, 110, 243, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.clinic-address:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(42, 110, 243, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 110, 243, 0.1);
}

.clinic-address i {
    color: #2A6EF3;
    font-size: 1.3rem;
}

.clinic-contact {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.website-btn {
    background: transparent;
    color: #2A6EF3;
    border: 2px solid #2A6EF3;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.website-btn:hover {
    background: #2A6EF3;
    color: white;
    transform: translateY(-2px);
}

.clinic-details {
    padding: 80px 0;
    background: white;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.section-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #F0F4F8;
}

.section-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 20px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.service-tag {
    background: #E8F4FD;
    color: #2A6EF3;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F0F4F8;
}

.hour-row:last-child {
    border-bottom: none;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    padding: 15px 20px;
    border-radius: 12px;
    border: none !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    background: #2A6EF3 !important;
    color: white !important;
    text-decoration: none !important;
}

.action-btn.primary {
    background: #2A6EF3 !important;
    color: white !important;
}

.action-btn.primary:hover {
    background: #1E5AD1 !important;
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: #2A6EF3 !important;
    color: white !important;
    border: none !important;
}

.action-btn.secondary:hover {
    background: #1E5AD1 !important;
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #5A6C7D;
}

.contact-item i {
    color: #2A6EF3;
    width: 20px;
}

.similar-clinics {
    padding: 80px 0;
    background: #F8FAFE;
}

/* List Clinic Page Styles */
.list-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.list-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 110, 243, 0.9) 0%, rgba(39, 174, 96, 0.8) 100%);
    z-index: 1;
}

.list-hero .hero-content {
    position: relative;
    z-index: 2;
}

.list-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.list-hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.benefits {
    padding: 100px 0;
    background: #F8FAFE;
}

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

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

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(42, 110, 243, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2A6EF3 0%, #1E5AD1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.benefit-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #5A6C7D;
    line-height: 1.6;
}

.registration-form {
    padding: 100px 0;
    background: white;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 60px;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 15px;
}

.form-header p {
    font-size: 1.2rem;
    color: #5A6C7D;
}

.clinic-form {
    background: #F8FAFE;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #E8F4FD;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E8F4FD;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2A6EF3;
    box-shadow: 0 0 0 3px rgba(42, 110, 243, 0.1);
}

.services-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: #F0F8FF;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.day-hours {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    align-items: center;
}

.day-hours label {
    font-weight: 600;
    color: #2C3E50;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-inputs input[type="time"] {
    width: 120px;
    padding: 10px;
}

.time-inputs span {
    color: #5A6C7D;
    font-weight: 500;
}

.package-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.package-card {
    position: relative;
}

.package-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.package-label {
    display: block;
    background: white;
    border: 2px solid #E8F4FD;
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.package-card input[type="radio"]:checked + .package-label {
    border-color: #2A6EF3;
    background: #F0F8FF;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(42, 110, 243, 0.15);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.package-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2C3E50;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2A6EF3;
}

.package-features {
    list-style: none;
    padding: 0;
}

.package-features li {
    padding: 8px 0;
    color: #5A6C7D;
    border-bottom: 1px solid #F0F4F8;
}

.package-features li:last-child {
    border-bottom: none;
}

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

.submit-btn {
    background: linear-gradient(135deg, #2A6EF3 0%, #1E5AD1 100%);
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(42, 110, 243, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(42, 110, 243, 0.4);
}

.form-note {
    margin-top: 20px;
    color: #5A6C7D;
    font-size: 0.9rem;
}

.form-note a {
    color: #2A6EF3;
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

/* Responsive Design for Clinic Profile */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .clinic-image-large {
        max-width: 300px;
        margin: 0 auto;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .clinic-contact {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

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

    .package-options {
        grid-template-columns: 1fr;
    }

    .clinic-form {
        padding: 30px 20px;
    }

    .day-hours {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .time-inputs {
        flex-wrap: wrap;
    }
}

/* Directory Disclaimer */
.directory-disclaimer {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0;
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #fef3cd 0%, #fef7e0 100%);
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.disclaimer-icon {
    color: #d97706;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.disclaimer-text p {
    margin: 0;
    color: #92400e;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 768px) {
    .directory-disclaimer {
        margin: 20px 15px;
    }

    .disclaimer-content {
        padding: 15px 20px;
        gap: 12px;
    }

    .disclaimer-text p {
        font-size: 14px;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

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

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.step-number {
    position: absolute;
    top: -15px;
    left: 30px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

.step-card h3 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 24px;
    font-weight: 600;
}

.step-card p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: white;
}

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

.testimonial-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 20px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 16px;
}

.testimonial-content p {
    color: #475569;
    line-height: 1.6;
    font-style: italic;
    margin: 0 0 25px 0;
    font-size: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    margin: 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.author-info span {
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .step-card {
        padding: 30px 20px;
    }

    .testimonial-card {
        padding: 25px;
    }
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.footer-section {
    position: relative;
}

.footer-section h4 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
    position: relative;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    display: inline-block;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #94a3b8;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.footer-legal {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.company-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #cbd5e1;
}

.company-details a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.company-details a:hover {
    color: #3b82f6;
}

/* Tablet Navigation Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 25px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .logo-text {
        font-size: 24px;
    }
}

/* Small Mobile Navigation Styles */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
        height: 65px;
    }
    
    .navbar {
        height: 65px;
    }
    
    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
        padding: 25px 0;
    }
    
    .nav-link {
        width: 90%;
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .cta-nav {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo {
        height: 32px;
    }
    
    .nav-logo {
        gap: 6px;
    }
    
    .hamburger {
        padding: 6px;
    }
    
    .bar {
        width: 22px;
        height: 2.5px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .location-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Mobile dropdown style for locations */
    .locations .location-grid {
        display: none;
    }

    .locations::after {
        content: '';
        display: block;
        width: 100%;
    }

    .mobile-location-select {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 15px 20px;
        border: 2px solid #E8F4FD;
        border-radius: 12px;
        background: white;
        font-size: 16px;
        font-weight: 500;
        color: #2C3E50;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-location-select:focus {
        outline: none;
        border-color: #2A6EF3;
        box-shadow: 0 0 0 3px rgba(42, 110, 243, 0.1);
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filters {
        flex-direction: column;
        align-items: center;
    }
}

/* Form Styles for List Clinic Page */
.list-clinic-hero {
    background: linear-gradient(135deg, #E6F0FF 0%, #F0F8FF 100%);
    padding: 120px 0 60px;
}

.form-section {
    padding: 60px 0;
    background: #f8fafc;
}

.form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.clinic-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2C3E50;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E8F4FD;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2A6EF3;
    box-shadow: 0 0 0 3px rgba(42, 110, 243, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
}

.success-message {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.success-message i {
    font-size: 48px;
    color: #10B981;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #2C3E50;
    margin-bottom: 10px;
}

.benefits-sidebar {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: fixed;
    top: 100px;
    left: 2rem;
}

.benefits-sidebar h3 {
    color: #2C3E50;
    margin-bottom: 25px;
    font-size: 20px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.benefit-item i {
    color: #2A6EF3;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.benefit-item h4 {
    color: #2C3E50;
    margin-bottom: 5px;
    font-size: 16px;
}

.benefit-item p {
    color: #64748B;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .form-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .clinic-form {
        padding: 30px 20px;
        margin-top: -20px;
    }

    .benefits-sidebar {
        position: static;
    }
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-results h3 {
    color: #2C3E50;
    margin-bottom: 10px;
    font-size: 24px;
}

.no-results p {
    color: #64748B;
    font-size: 16px;
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    #rotating-text {
         display: inline-block;
         text-align: center;
         width: 100%;
         margin: 0 auto;
         position: relative;
     }

    .hero-description {
        font-size: 0.9rem;
    }

    .search-input {
        font-size: 16px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .category-btn {
        padding: 15px;
    }

    .clinic-form {
        padding: 20px 15px;
    }
}

/* Enhanced Button Animations */
.category-btn:hover {
    animation: pulse 0.6s ease-in-out;
}

.location-btn:hover {
    animation: pulse 0.6s ease-in-out;
}

.search-btn:hover {
    animation: pulse 0.4s ease-in-out;
}

.cta-btn:hover {
    animation: pulse 0.5s ease-in-out;
}



/* Ripple Effect for Buttons */
.category-btn,
.location-btn,
.search-btn,
.cta-btn,
.pagination-btn {
    position: relative;
    overflow: hidden;
}

.category-btn::after,
.location-btn::after,
.search-btn::after,
.cta-btn::after,
.pagination-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.category-btn:active::after,
.location-btn:active::after,
.search-btn:active::after,
.cta-btn:active::after,
.pagination-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Utility Classes */
.hidden {
    display: none;
}

#signInForm.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Active states for filters */
.category-btn.active,
.location-btn.active {
    border-color: #2A6EF3;
    background: #E6F0FF;
}

.category-btn.active span,
.location-btn.active .location-name {
    color: #2A6EF3;
}

/* Booking Page Styles */
.booking-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #2A6EF3 0%, #27AE60 100%);
    color: white;
    text-align: center;
}

.booking-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.booking-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.clinic-info-bar {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.clinic-info-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.clinic-info-content img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.clinic-info-text h3 {
    margin: 0 0 5px 0;
    color: #2C3E50;
    font-size: 1.2rem;
}

.clinic-info-text p {
    margin: 0;
    color: #5A6C7D;
    font-size: 0.9rem;
}

.booking-container {
    padding: 40px 0 80px;
    background: #2A6EF3;
}

.booking-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.booking-progress {
    display: flex;
    background: #F8FAFE;
    padding: 30px;
    justify-content: space-between;
    position: relative;
}

.booking-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30px;
    right: 30px;
    height: 2px;
    background: #E5E7EB;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: #2A6EF3;
    color: white;
}

.progress-step.completed .step-circle {
    background: #27AE60;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: #5A6C7D;
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #2A6EF3;
    font-weight: 600;
}

.booking-content {
    padding: 40px;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.step-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 10px;
}

.step-description {
    color: #5A6C7D;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2C3E50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2A6EF3;
    box-shadow: 0 0 0 3px rgba(42, 110, 243, 0.1);
}

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

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

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.time-slot {
    padding: 15px 10px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
}

.time-slot:hover {
    border-color: #2A6EF3;
    background: #F0F7FF;
}

.time-slot.selected {
    border-color: #2A6EF3;
    background: #2A6EF3;
    color: white;
}

.time-slot.unavailable {
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
    border-color: #E5E7EB;
}

.time-slot.unavailable:hover {
    background: #F3F4F6;
    border-color: #E5E7EB;
}

.booking-summary {
    background: #F8FAFE;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2A6EF3;
}

.summary-label {
    color: #5A6C7D;
    font-weight: 500;
}

.summary-value {
    color: #2C3E50;
    font-weight: 600;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
}

.terms-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.terms-text {
    color: #5A6C7D;
    font-size: 0.95rem;
    line-height: 1.5;
}

.terms-text a {
    color: #2A6EF3;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #E5E7EB;
}

.btn-secondary {
    background: #F3F4F6;
    color: #5A6C7D;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #E5E7EB;
}

.btn-primary {
    background: #2A6EF3;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #1E5AD1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 110, 243, 0.3);
}

.btn-primary:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-step {
    display: none;
    text-align: center;
    padding: 60px 40px;
}

.success-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #27AE60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 2rem;
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: #27AE60;
    margin-bottom: 15px;
}

.success-message {
    color: #5A6C7D;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.booking-reference {
    background: #F0F7FF;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid #2A6EF3;
}

.reference-label {
    font-size: 0.9rem;
    color: #5A6C7D;
    margin-bottom: 5px;
}

.reference-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2A6EF3;
    font-family: 'Courier New', monospace;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn-primary,
.success-actions .btn-secondary {
    min-width: 150px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .booking-progress {
        padding: 20px 15px;
    }

    .progress-step {
        flex: none;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .booking-content {
        padding: 30px 20px;
    }

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

    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .time-slot {
        padding: 12px 8px;
        font-size: 0.9rem;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 15px;
    }

    .success-actions {
        flex-direction: column;
    }

    .clinic-info-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Advanced Search & Filters Styles */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #F3F4F6;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-suggestion:hover,
.search-suggestion.highlighted {
    background: #F8FAFE;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.suggestion-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F7FF;
    border-radius: 6px;
    color: #2A6EF3;
    font-size: 0.8rem;
}

.suggestion-text {
    flex: 1;
}

.suggestion-title {
    font-weight: 500;
    color: #2C3E50;
    margin-bottom: 2px;
}

.suggestion-subtitle {
    font-size: 0.85rem;
    color: #5A6C7D;
}

.filters-toggle {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 12px 20px;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #5A6C7D;
}

.filters-toggle:hover {
    border-color: #2A6EF3;
    color: #2A6EF3;
    background: #F8FAFE;
}

.filters-toggle.active {
    border-color: #2A6EF3;
    background: #2A6EF3;
    color: white;
}

.advanced-filters {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 25px;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: none;
    animation: slideDown 0.3s ease;
}

.advanced-filters.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #2C3E50;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 12px 15px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    background: white;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #2A6EF3;
    box-shadow: 0 0 0 3px rgba(42, 110, 243, 0.1);
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.clear-filters-btn,
.apply-filters-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.clear-filters-btn {
    background: #F3F4F6;
    color: #5A6C7D;
    border: 1px solid #E5E7EB;
}

.clear-filters-btn:hover {
    background: #E5E7EB;
    color: #374151;
}

.apply-filters-btn {
    background: #2A6EF3;
    color: white;
    border: 1px solid #2A6EF3;
}

.apply-filters-btn:hover {
    background: #1E5AD1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 110, 243, 0.3);
}

.search-box {
    position: relative;
}

.search-input:focus + .search-suggestions {
    display: block;
}

/* Active filter indicators */
.filter-active {
    position: relative;
}

.filter-active::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #27AE60;
    border-radius: 50%;
    border: 2px solid white;
}

.filters-count {
    background: #27AE60;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: 600;
}

/* Mobile responsiveness for filters */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filter-actions {
        flex-direction: column;
    }

    .clear-filters-btn,
    .apply-filters-btn {
        width: 100%;
        justify-content: center;
    }

    .filters-toggle {
        width: 100%;
        justify-content: center;
    }

    .advanced-filters {
         padding: 20px 15px;
     }
 }

/* Authentication Styles */
.auth-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.auth-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="%23e2e8f0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.5;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    width: 100%;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 2.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.auth-header p {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Forgot Password Form Specific Styling */
#forgotPasswordForm:not(.hidden) {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 16px;
    padding: 30px;
    margin-top: 20px;
    position: relative;
    box-shadow: 0 8px 25px rgba(42, 110, 243, 0.15);
    animation: slideInFromRight 0.4s ease-out;
}

#forgotPasswordForm:not(.hidden)::before {
    content: '🔐';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2A6EF3;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(42, 110, 243, 0.3);
}

#forgotPasswordForm .form-group label {
    color: #1e40af;
    font-weight: 700;
}

#forgotPasswordForm .form-group input {
    border-color: #93c5fd;
    background: white;
}

#forgotPasswordForm .form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

#forgotPasswordForm .auth-btn.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

#forgotPasswordForm .auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.form-group input {
    padding: 16px 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    font-weight: 400;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.form-group input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    flex: 1;
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #5A6C7D;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #2A6EF3;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8rem;
    color: #5A6C7D;
    font-weight: 500;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 16px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 400;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #2563eb;
    text-decoration: underline;
}

.auth-btn {
    padding: 16px 28px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.auth-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.auth-btn.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.auth-btn.secondary {
    background: #f8fafc;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
}

.auth-btn.secondary:hover {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 400;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    padding: 0 18px;
    background: white;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.social-btn {
    padding: 14px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
}

.social-btn:hover {
    border-color: #cbd5e1;
    color: #475569;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.social-btn.google:hover {
    border-color: #db4437;
    color: #db4437;
    background: #fef7f7;
}

.social-btn.facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
    background: #f7f8ff;
}

.social-btn.apple:hover {
    border-color: #000000;
    color: #000000;
    background: #f5f5f5;
}

/* Business Login Styles */
.business-login {
    margin: 24px 0;
}

.business-login .divider {
    display: flex;
    align-items: center;
    margin: 20px 0 16px 0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.business-login .divider::before,
.business-login .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.business-login .divider span {
    padding: 0 16px;
    background: white;
}

.business-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
    width: 100%;
}

.business-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.25);
    color: white;
    border-color: transparent;
}

.business-btn i {
    font-size: 1.1rem;
}

.auth-toggle {
    text-align: center;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.auth-toggle p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
}

.auth-toggle a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-toggle a:hover {
    color: #2563eb;
    text-decoration: underline;
}



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

.form-help {
    color: #5A6C7D;
    font-size: 0.85rem;
    margin-top: 5px;
}

.terms-link {
    color: #2A6EF3;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Password Reset Wizard Styles */
#passwordResetWizard {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 16px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(42, 110, 243, 0.15);
    animation: slideInFromRight 0.4s ease-out;
}

#passwordResetWizard.hidden {
    display: none !important;
}

#passwordResetWizard.auth-form.hidden {
    display: none !important;
}

.auth-form#passwordResetWizard.hidden {
    display: none !important;
}

.reset-step {
    display: block;
}

.reset-step.hidden {
    display: none;
}

/* Step Indicator */
#passwordResetWizard .step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 25px 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

#passwordResetWizard .step {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 3px solid transparent;
    background-clip: padding-box;
}

#passwordResetWizard .step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 2px;
    transition: all 0.4s ease;
}

#passwordResetWizard .step.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

#passwordResetWizard .step.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    transform: scale(1.05);
}

#passwordResetWizard .step.completed::after {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    height: 4px;
}

#passwordResetWizard .step:not(.active):not(.completed) {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    border: 3px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#passwordResetWizard .step:not(.active):not(.completed):hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: scale(1.02);
}

/* Password Requirements */
.password-requirements {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.password-requirements h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.password-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.9rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.password-requirements li::before {
    content: '○';
    color: #cbd5e1;
    font-weight: bold;
    transition: all 0.2s ease;
}

.password-requirements li.valid {
    color: #10b981;
}

.password-requirements li.valid::before {
    content: '✓';
    color: #10b981;
}

.password-requirements li.invalid {
    color: #dc2626;
}

.password-requirements li.invalid::before {
    content: '✗';
    color: #dc2626;
}

/* Success Content */
.success-content {
    text-align: center;
    padding: 40px 20px;
}

.success-content .success-icon {
    margin-bottom: 20px;
}

.success-content .success-icon i {
    font-size: 4rem;
    color: #10b981;
    animation: pulse 2s infinite;
}

.success-content h3 {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.success-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Help Text */
.form-help {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
}

#emailDisplay {
    font-weight: 600;
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    #passwordResetWizard .step-indicator {
        gap: 20px;
        padding: 20px 0;
        margin-bottom: 30px;
    }

    #passwordResetWizard .step {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    #passwordResetWizard .step:not(:last-child)::after {
        width: 20px;
        height: 2px;
    }

    #passwordResetWizard .step.completed::after {
        height: 3px;
    }

    .password-requirements {
        padding: 15px;
    }

    .success-content {
        padding: 30px 15px;
    }

    .success-content .success-icon i {
        font-size: 3rem;
    }
}

/* Success Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    margin-bottom: 30px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #27AE60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 10px;
}

.modal-header p {
    color: #5A6C7D;
    line-height: 1.5;
}

.booking-details {
    margin: 25px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    color: #2C3E50;
    font-weight: 600;
}

.booking-ref {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #2A6EF3;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.modal-actions .btn {
    flex: 1;
    max-width: 150px;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-actions .btn-primary {
    background: #2A6EF3;
    color: white;
    border: none;
}

.modal-actions .btn-primary:hover {
    background: #1e5ad1;
    transform: translateY(-1px);
}

.modal-actions .btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.modal-actions .btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px;
    }

    .auth-card {
        padding: 30px 25px;
    }

    .auth-benefits {
        order: -1;
        text-align: center;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

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

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .social-auth {
        gap: 10px;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .auth-benefits h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 20px 15px;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .modal-content {
        padding: 30px 25px;
    }
}

/* Dashboard Styles */
.dashboard-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.user-info:hover {
    background: #f8f9fa;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar span {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.user-avatar i {
    color: white;
    font-size: 0.8rem;
    opacity: 0.8;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2A6EF3;
    border-radius: 8px;
    border: 2px solid #2A6EF3;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item.logout {
    color: #dc3545;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem;
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.top-widgets-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: stretch;
}

.upcoming-appointments-widget.top-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0;
    height: 100%;
    position: sticky;
    top: 2rem;
}

/* Dashboard Widgets Layout */
.dashboard-widgets {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.recent-activity-widget.full-width {
    width: 100%;
    margin-bottom: 0;
}

.bottom-widgets-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.widgets-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widgets-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Actions and Activity Row */
.actions-activity-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Quick Actions Widget */
.quick-actions-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-actions-widget h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Full-width Quick Actions Widget */
.quick-actions-widget.full-width {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    width: 100%;
}

.quick-actions-widget.full-width h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.quick-actions-widget.full-width .quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.quick-actions-widget.full-width .quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #495057;
    min-height: 120px;
    justify-content: center;
}

.quick-actions-widget.full-width .quick-action-btn:hover {
    background: #2A6EF3;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 110, 243, 0.3);
}

.quick-actions-widget.full-width .quick-action-btn i {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.quick-actions-widget.full-width .quick-action-btn span {
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

/* Responsive design for actions-activity row */
@media (max-width: 480px) {
    .actions-activity-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .quick-actions-widget .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .quick-actions-widget .quick-action-btn {
        padding: 1rem 0.75rem;
        min-height: 80px;
    }

    .quick-actions-widget .quick-action-btn i {
        font-size: 1.3rem;
    }

    .quick-actions-widget .quick-action-btn span {
        font-size: 0.8rem;
    }
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #495057;
}

.quick-action-btn:hover {
    background: #2A6EF3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 110, 243, 0.3);
}

.quick-action-btn:hover i {
    color: white;
}

.quick-action-btn i {
    font-size: 1.2rem;
}

.quick-action-btn span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* Upcoming Appointments Widget */
.upcoming-appointments-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Health Tips Widget */
.health-tips-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.health-tips-widget h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.health-tip {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
}

/* Recent Activity Widget */
.recent-activity-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.recent-activity-widget h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.activity-item:hover {
    background-color: #f8f9fa;
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e3f2fd;
    color: #2A6EF3;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

.activity-time {
    color: #6c757d;
    font-size: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #2A6EF3;
}

.health-tip:last-child {
    margin-bottom: 0;
}

.tip-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #2A6EF3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.tip-icon i {
    font-size: 0.9rem;
}

.tip-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #495057;
}

.tip-content strong {
    color: #2A6EF3;
}

.dashboard-sidebar {
    width: 250px;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    position: static;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0;
    transition: all 0.3s;
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar-link:hover {
    background: #f8f9fa;
    color: #2A6EF3;
}

.sidebar-link.active {
    background: #2A6EF3;
    color: white !important;
    font-weight: 600;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
}

.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.dashboard-main {
    flex: 1;
    margin-top: 2rem;
    padding: 0 1rem;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 2rem 2rem;
    margin: 5rem 2rem 2rem 2rem;
    max-width: calc(100% - 4rem);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15), 0 8px 16px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-header::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 20"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.welcome-section h1 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.welcome-section p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.action-btn.primary {
    background: rgba(42, 110, 243, 0.95);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.action-btn.primary:hover {
    background: rgba(42, 110, 243, 1);
    color: white;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.action-icon.book { background: var(--primary-color); }

.action-icon.find { background: #28a745; }
.action-icon.support { background: #17a2b8; }

.dashboard-section {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.section-title {
    margin: 0;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #2A6EF3, #2980b9);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(42, 110, 243, 0.3);
    background: linear-gradient(135deg, #1e5bb8, #2471a3);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.9;
    font-size: 0.9rem;
}

.appointments-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appointment-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.appointment-date {
    text-align: center;
    min-width: 80px;
}

.appointment-date .date {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
}

.appointment-date .time {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.appointment-details {
    flex: 1;
}

.appointment-details h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
}

.appointment-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.appointment-actions {
    display: flex;
    gap: 0.5rem;
}

.reschedule-btn,
.cancel-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.reschedule-btn {
    background: #17a2b8;
    color: white;
}

.reschedule-btn:hover {
    background: #138496;
}

.cancel-btn {
    background: #dc3545;
    color: white;
}

.cancel-btn:hover {
    background: #c82333;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.appointment-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.appointment-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.clinic-info h3 {
    margin: 0 0 0.25rem 0;
    color: #333;
}

.clinic-type {
    color: #666;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.upcoming {
    background: #d4edda;
    color: #155724;
}

.status-badge.completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.appointment-body {
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.detail-item i {
    width: 16px;
    color: var(--primary-color);
}

.appointment-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none !important;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none !important;
    background: #2A6EF3 !important;
    color: white !important;
}

.action-btn.primary {
    background: #2A6EF3 !important;
    color: white !important;
}

.action-btn.primary:hover {
    background: #1E5AD1 !important;
}

.action-btn.secondary {
    background: #2A6EF3 !important;
    color: white !important;
    border: none !important;
}

.action-btn.secondary:hover {
    background: #1E5AD1 !important;
}

.action-btn.danger {
    background: #dc3545;
    color: white;
}

.action-btn.danger:hover {
    background: #c82333;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.favorite-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.favorite-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

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

.clinic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.remove-favorite:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.clinic-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
    justify-content: flex-start;
}

.clinic-info h1,
.clinic-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.clinic-info h1 {
    font-size: 1.75rem;
    color: #2C3E50;
    margin-bottom: 0.75rem;
}

.clinic-info h3 {
    font-size: 1.25rem;
}

.rating,
.rating-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
    font-weight: 600;
}

.rating-value,
.rating-score {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.address,
.clinic-address {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.clinic-address i {
    color: #2A6EF3;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.clinic-type {
    color: #2A6EF3;
    font-weight: 600;
    font-size: 1rem;
    margin: 0.25rem 0 0.75rem 0;
    text-transform: capitalize;
}

.clinic-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
    flex-wrap: wrap;
}

/* Responsive Design for Clinic Info */
@media (max-width: 768px) {
    .clinic-info {
        padding: 1rem;
        min-height: 180px;
        gap: 0.5rem;
    }
    
    .clinic-info h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .clinic-info h3 {
        font-size: 1.1rem;
    }
    
    .clinic-type {
        font-size: 0.9rem;
        margin: 0.25rem 0 0.5rem 0;
    }
    
    .clinic-address {
        font-size: 0.85rem;
        margin: 0.25rem 0;
    }
    
    .rating-row {
        margin: 0.25rem 0;
    }
    
    .stars {
        font-size: 1rem;
    }
    
    .rating-score {
        font-size: 0.85rem;
    }
    
    .clinic-actions {
        padding: 0 1rem 1rem;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .clinic-info {
        padding: 0.75rem;
        min-height: 160px;
    }
    
    .clinic-info h1 {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .clinic-info h3 {
        font-size: 1rem;
    }
    
    .clinic-type {
        font-size: 0.85rem;
    }
    
    .clinic-address {
        font-size: 0.8rem;
    }
    
    .rating-score {
        font-size: 0.8rem;
    }
    
    .clinic-actions {
         padding: 0 0.75rem 0.75rem;
         flex-direction: column;
     }
 }

/* Enhanced Visual Hierarchy for Clinic Info */
.clinic-info {
    background: #ffffff;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.clinic-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Loading States */
.clinic-info .loading-text {
    color: #999;
    font-style: italic;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Focus States for Accessibility */
.clinic-info:focus-within {
    outline: 2px solid #2A6EF3;
    outline-offset: 2px;
}

/* Premium Badge Styling */
.clinic-info .premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clinic-info .premium-badge i {
    font-size: 0.7rem;
}

/* Status Indicators */
.clinic-info .status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.clinic-info .status-indicator.open {
    background: #d4edda;
    color: #155724;
}

.clinic-info .status-indicator.closed {
    background: #f8d7da;
    color: #721c24;
}

.clinic-info .status-indicator.busy {
    background: #fff3cd;
    color: #856404;
}

.clinic-actions .action-btn {
    flex: 1;
    justify-content: center;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.review-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-header h3 {
    margin: 0;
    color: #333;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-content {
    margin-bottom: 1rem;
}

.review-content p {
    margin: 0;
    color: #666;
    font-style: italic;
    line-height: 1.6;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.helpful-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.review-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s;
}

.notification-item.unread {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
}

.notification-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
}

.notification-content p {
    margin: 0 0 0.5rem 0;
    color: #666;
    line-height: 1.5;
}

.notification-time {
    font-size: 0.8rem;
    color: #999;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mark-read-btn,
.delete-notification-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mark-read-btn {
    background: #28a745;
    color: white;
}

.mark-read-btn:hover {
    background: #218838;
}

.delete-notification-btn {
    background: #dc3545;
    color: white;
}

.delete-notification-btn:hover {
    background: #c82333;
}

.profile-content {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 2rem;
}

.profile-form {
    max-width: 700px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    width: 100%;
}

.form-section {
    margin-bottom: 2.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), #4CAF50);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-section:hover::before {
    opacity: 0.1;
}

.form-section h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.form-section h3::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    background: rgba(42, 110, 243, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 1rem;
}

.form-section:nth-child(2) h3::before {
    content: '\f013';
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label::before {
    content: '\f040';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.form-group:has(input[type="email"]) label::before {
    content: '\f0e0';
}

.form-group:has(input[type="tel"]) label::before {
    content: '\f095';
}

.form-group:has(select) label::before {
    content: '\f0ac';
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(42, 110, 243, 0.15);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #c6d4fd;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.checkbox-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(42, 110, 243, 0.15);
    transform: translateY(-2px);
}

.checkbox-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 110, 243, 0.1);
    outline: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2.5px solid #d1d5db;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(42, 110, 243, 0.3);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: checkmarkScale 0.2s ease-out;
}

@keyframes checkmarkScale {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.checkbox-container label {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
    font-weight: 500;
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.form-actions {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
    text-align: center;
}

.save-btn {
    background: #2A6EF3;
    color: white !important;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
    text-decoration: none;
    outline: none;
}

.save-btn:hover {
    background: #2A6EF3;
}

.save-btn:active {
    background: #2A6EF3;
}

/* Ensure button text is always visible */
.save-btn i {
    color: white !important;
    opacity: 1;
}

.save-btn:before {
    content: none;
}

.save-btn:after {
    content: none;
}

.clear-data-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    text-decoration: none;
    outline: none;
    margin-top: 0.5rem;
}

.clear-data-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #c82333, #bd2130);
}

.clear-data-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.clear-data-btn i {
    color: white !important;
    opacity: 1;
}

.form-help {
    font-size: 0.85rem;
    color: #666;
    margin: 0.25rem 0 0.75rem 0;
    line-height: 1.4;
}

/* Simplified View All Link Styling */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #2a6ef3 !important;
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #2a6ef3;
}

.view-all-link:hover {
    color: white !important;
    text-decoration: none;
    background: #1e5bb8 !important;
    border-color: #1e5bb8;
}

.view-all-link:visited {
    color: white !important;
    background: #2a6ef3 !important;
}

.view-all-link:after {
    content: '→';
    font-size: 0.875rem;
    color: white !important;
}



.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.no-data h4 {
    color: #333;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
    font-style: normal;
}

.no-data p {
    margin: 0.5rem 0 1.5rem 0;
    font-style: normal;
    line-height: 1.5;
}

.no-data-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-activity {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.no-activity-icon {
    font-size: 2rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-activity p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.no-activity span {
    font-size: 0.9rem;
    color: #999;
}

/* Dashboard Mobile Responsiveness */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .dashboard-grid {
        gap: 1rem;
    }

    .top-widgets-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-sidebar {
        width: 100%;
        position: static;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .upcoming-appointments-widget.top-widget {
        position: static;
        margin-bottom: 1rem;
    }

    .dashboard-widgets {
        gap: 1.5rem;
    }

    .bottom-widgets-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .widgets-right {
        gap: 1rem;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .quick-action-btn {
        padding: 0.75rem;
    }

    .health-tip {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .upcoming-appointments-widget {
        padding: 1rem;
    }

    .widget-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .sidebar-link {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0.5rem;
        margin-bottom: 0;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .dashboard-nav .nav-container {
        padding: 1rem;
    }

    .dashboard-header {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        margin: 5rem 1rem 2rem 1.5rem;
        max-width: calc(100% - 2.5rem);
    }

    .header-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .quick-actions {
        justify-content: center;
        width: 100%;
    }

    .action-btn {
        flex: 1;
        min-width: 200px;
        justify-content: center;
    }

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

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

    .appointment-preview {
        flex-direction: column;
        text-align: center;
    }

    .appointment-card {
        padding: 1rem;
    }

    .appointment-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .appointment-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .clinic-actions {
        flex-direction: column;
    }

    .review-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .review-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .review-actions {
        justify-content: center;
    }

    .notification-item {
        flex-direction: column;
        text-align: center;
    }

    .notification-actions {
        justify-content: center;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .profile-content {
        padding: 0 1rem;
    }

    .profile-form {
        padding: 1.5rem;
    }

    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .form-section h3 {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.875rem 1rem;
    }

    .save-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    .view-all-link {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 10px;
    }

    .view-all-link:after {
        font-size: 0.8rem;
    }
}

/* Rotating Text Animation */
#rotating-text {
    display: inline-block;
    position: relative;
    color: #2A6EF3;
    font-weight: 600;
    min-width: 150px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#rotating-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(42, 110, 243, 0.1) 50%, transparent 100%);
    animation: shimmer 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

#rotating-text.changing::after {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) scale(1.1);
        opacity: 0;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-5px) scale(0.95);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.text-fade-out {
    animation: fadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.text-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stakeholder-only visibility */
.stakeholder-only {
    display: none !important;
}

body.stakeholder .stakeholder-only {
    display: block !important;
}

/* For inline elements in navigation */
body.stakeholder .nav-menu .stakeholder-only {
    display: list-item !important;
}

/* Modern Auth Page Styles */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.auth-page .navbar {
    display: none;
}

/* Auth Back Button */
.auth-back-button {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    z-index: 1000;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(42, 110, 243, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(42, 110, 243, 0.8);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-btn:hover {
    background: rgba(30, 90, 209, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    color: white;
    text-decoration: none;
    border-color: rgba(30, 90, 209, 0.9);
}

.back-btn i {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .auth-back-button {
        top: 0.25rem;
        left: 0.5rem;
    }

    .back-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .back-btn span {
        display: none;
    }
}

.navbar-transparent {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.auth-container-modern {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    min-height: 600px;
}

.auth-panel-left {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-content {
    width: 100%;
    max-width: 400px;
}

.auth-header-modern {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.auth-logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2A6EF3;
    background: linear-gradient(135deg, #2A6EF3, #1E5AD1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2A6EF3;
    margin: 0;
    background: linear-gradient(135deg, #2A6EF3, #1E5AD1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0.5rem 0 1.5rem 0;
    text-align: center;
    line-height: 1.4;
}

.modern-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-modern {
    position: relative;
}

.modern-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.modern-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-input-modern {
    position: relative;
}

.password-toggle-modern {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.password-toggle-modern:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

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

.checkbox-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #6b7280;
}

.checkbox-modern input[type="checkbox"] {
    display: none;
}

.checkmark-modern {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-modern input[type="checkbox"]:checked + .checkmark-modern {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-modern input[type="checkbox"]:checked + .checkmark-modern::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.modern-login-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #3b82f6;
    color: rgba(255, 255, 255, 0.95) !important;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.modern-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modern-login-btn:hover::before {
    left: 100%;
}

.modern-login-btn:hover {
    transform: translateY(-2px);
    background: #2563eb;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    color: rgba(255, 255, 255, 1) !important;
}

.modern-login-btn .btn-text {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.modern-login-btn:hover .btn-text {
    color: rgba(255, 255, 255, 1) !important;
}

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

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.divider-modern {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.divider-modern span {
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.social-auth-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-btn-modern {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-btn-modern:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

.social-btn-modern.google:hover {
    border-color: #ea4335;
    background: rgba(234, 67, 53, 0.05);
}

.social-btn-modern.facebook:hover {
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.05);
}

.social-btn-modern.apple:hover {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.05);
}

.business-access {
    margin-top: 1rem;
}

.business-btn-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.business-btn-modern:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.auth-toggle-modern {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-toggle-modern p {
    color: #6b7280;
    margin: 0;
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.signup-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Right Panel Illustration */
.auth-panel-right {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-panel-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.illustration-container {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.illustration-content {
    max-width: 400px;
}

.project-visual {
    position: relative;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-container {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 0.5rem;
    height: 80px;
    margin-bottom: 1.5rem;
}

.chart-bar {
    width: 20px;
    background: linear-gradient(180deg, #60a5fa, #3b82f6);
    border-radius: 4px 4px 0 0;
    animation: chartGrow 2s ease-out infinite alternate;
}

@keyframes chartGrow {
    0% { transform: scaleY(0.7); }
    100% { transform: scaleY(1); }
}

.dashboard-elements {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.element-card {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    transition: transform 0.4s ease, background 0.3s ease;
    cursor: pointer;
}

.element-card:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}



.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    animation: floatAround 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
}

@keyframes floatAround {
    0%, 100% { transform: translateY(0px); }
    25% { transform: translateY(-2px); }
    50% { transform: translateY(-1px); }
    75% { transform: translateY(-3px); }
}

.illustration-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.illustration-text p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.progress-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container-modern {
        grid-template-columns: 1fr;
        margin: 1rem;
    }

    .auth-panel-right {
        display: none;
    }

    .auth-panel-left {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 2rem;
    }

    .social-auth-modern {
        grid-template-columns: 1fr;
    }
}

/* Modern Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-container {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 400px;
    padding: 2rem;
}

.loading-animation {
    margin-bottom: 2rem;
    position: relative;
}

.loading-circle {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
    position: relative;
}

.loading-circle-inner {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite reverse;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.loading-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-text {
    color: white;
}

.loading-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

.loading-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.7s forwards;
}

.loading-progress {
    margin-top: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
    border-radius: 3px;
    width: 0%;
    animation: progressFill 3s ease-in-out infinite;
}

.progress-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

.loading-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-shape.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-shape.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.floating-shape.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 25%;
    animation-delay: 1s;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    33% {
        transform: translateY(-3px);
    }
    66% {
        transform: translateY(2px);
    }
}

/* Responsive adjustments for loading overlay */
@media (max-width: 768px) {
    .loading-container {
        padding: 1rem;
        max-width: 300px;
    }

    .loading-circle {
        width: 80px;
        height: 80px;
    }

    .loading-circle-inner {
        width: 50px;
        height: 50px;
    }

    .loading-title {
        font-size: 1.25rem;
    }

    .loading-subtitle {
        font-size: 0.875rem;
    }

    .floating-shape {
        display: none;
    }
}

/* Search Form Styles for Two-Input Layout */
#hero form {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

#hero input, #hero button {
    padding: 0.5rem;
    border-radius: 4px;
}

#hero button {
    background: #2A6EF3;
    color: white;
    border: none;
}

/* Simple Navigation and Footer Styles as requested in ticket */
/* These styles support the simplified navigation structure */
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #E6F0FF;
}

header ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #2A6EF3;
    color: white;
}

@media (max-width: 768px) {
    header ul {
        flex-direction: column;
    }
}

/* Skeleton Loading Animation for Featured Clinics */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton-card {
    pointer-events: none;
    user-select: none;
}

.skeleton-text {
    border-radius: 4px;
    animation: skeleton-shimmer 1.5s infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

.skeleton-image {
    border-radius: 8px 8px 0 0;
}

/* Demo Badge Styles */
.demo-badge {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Clinic Card Enhancements */
.clinic-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
}

.clinic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.clinic-card__image {
    position: relative;
    overflow: hidden;
}

.clinic-card__image img {
    transition: transform 0.3s ease;
}

.clinic-card:hover .clinic-card__image img {
    transform: scale(1.05);
}

.clinic-card__head,
.clinic-card__body,
.clinic-card__actions {
    padding: 15px;
}

.clinic-card__head {
    padding-bottom: 10px;
}

.clinic-card__body {
    padding-top: 0;
    padding-bottom: 10px;
}

.clinic-card__actions {
    padding-top: 0;
    border-top: 1px solid #f0f0f0;
}

.clinic-card__actions a {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.clinic-card__actions a:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* Mobile Sticky Filter Bar - Exact spec implementation */
@media (max-width: 600px) {
  .sticky-filters {
    position: sticky;
    top: var(--nav-offset, 64px);
    background: #fff;
    z-index: 30;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
  }

  .chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 8px 12px;
    min-height: 44px;
    line-height: 26px;
    font-size: 14px;
    background: #fff;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }

  .chip:focus {
    outline: 2px solid #2e7;
    outline-offset: 2px;
  }

  .chip:hover {
    background: #f8f9fa;
    border-color: #007bff;
  }

  .chip.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
  }

  .bottom-sheet {
    position: fixed;
    inset: auto 0 0 0;
    background: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -10px 30px rgba(0,0,0,.15);
    z-index: 40;
    max-height: 70vh;
    overflow: auto;
    padding: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .bottom-sheet.open {
    transform: translateY(0);
  }

  .sheet-hidden {
    display: none;
  }
}

/* Legacy mobile filter bar - maintain compatibility */
.mobile-filter-bar {
    position: sticky;
    top: 80px; /* Below navbar */
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 15px;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none; /* Show on mobile only */
}

.filter-chips-container {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px; /* Accessibility requirement */
    min-width: 44px;
    scroll-snap-align: start;
    line-height: 26px;
}

.filter-chip:focus {
    outline: 2px solid #2e7;
    outline-offset: 2px;
}

.filter-chip:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.filter-chip.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-chip.has-count::after {
    content: attr(data-count);
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 6px;
}

.more-filters-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.more-filters-btn:hover {
    background: #5a6268;
}

/* Filter Bottom Sheet - Updated to match spec */
.filter-bottom-sheet {
    position: fixed;
    inset: auto 0 0 0;
    background: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -10px 30px rgba(0,0,0,.15);
    z-index: 40;
    max-height: 70vh;
    overflow: auto;
    padding: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.filter-bottom-sheet.open {
    transform: translateY(0);
}

.bottom-sheet-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 80vh;
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.bottom-sheet-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-sheet-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.filter-option:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.filter-option.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.bottom-sheet-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
}

.filter-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    transition: all 0.2s;
}

.filter-btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.filter-btn.secondary:hover {
    background: #e9ecef;
    color: #5a6268;
}

.filter-btn.primary {
    background: #007bff;
    color: white;
}

.filter-btn.primary:hover {
    background: #0056b3;
}

/* Desktop-only class to hide sections on mobile */
.desktop-only {
    display: block;
}

/* Utility Classes */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .mobile-filter-bar {
        /* Mobile filter bar styles will be defined here */
    }

    /* Hide advanced filters on mobile as we have the sticky bar */
    .advanced-filters {
        display: none;
    }
}

/* ==================================================================
   MOBILE UI IMPROVEMENTS - Zoopla/Rightmove Style
   ================================================================== */

/* Mobile-First Clinic Cards with Enhanced Visual Design */
@media (max-width: 768px) {
    .clinic-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }

    .clinic-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        border: 1px solid #f0f0f0;
        margin-bottom: 0;
        position: relative;
    }

    .clinic-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .clinic-image-container {
        position: relative;
        aspect-ratio: 16/9;
        height: auto;
        background: #f8f9fa;
    }

    .clinic-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .clinic-content {
        padding: 16px;
    }

    .clinic-name {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0 0 4px 0;
        color: #1a1a1a;
        line-height: 1.3;
    }

    .clinic-type {
        font-size: 0.85rem;
        color: #666;
        margin: 0 0 8px 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 500;
    }

    .clinic-location {
        font-size: 0.9rem;
        color: #888;
        margin: 0 0 12px 0;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .clinic-location::before {
        content: '📍';
        font-size: 0.8rem;
    }

    .clinic-rating {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }

    .clinic-rating .stars {
        color: #ffc107;
        font-size: 0.9rem;
    }

    .clinic-rating .rating-text {
        font-weight: 600;
        color: #333;
        font-size: 0.9rem;
    }

    .clinic-rating .review-count {
        color: #666;
        font-size: 0.85rem;
    }

    .clinic-actions {
        display: flex;
        gap: 8px;
    }

    .clinic-actions a {
        flex: 1;
        padding: 12px 16px;
        text-align: center;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.2s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .visit-btn {
        background: #2A6EF3;
        color: white !important;
        border: 2px solid #2A6EF3;
    }

    .visit-btn:hover {
        background: #1E5AD1;
        border-color: #1E5AD1;
        transform: translateY(-1px);
    }

    .contact-btn {
        background: transparent;
        color: #2A6EF3 !important;
        border: 2px solid #2A6EF3;
    }

    .contact-btn:hover {
        background: #2A6EF3;
        color: white !important;
        transform: translateY(-1px);
    }

    /* Enhanced badges */
    .image-overlay {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 12px;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2;
    }

    .type-badge {
        background: rgba(42, 110, 243, 0.9);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 4px;
        backdrop-filter: blur(4px);
    }

    .premium-badge-image {
        background: linear-gradient(135deg, #ffd700, #ffed4e);
        color: #333;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 4px;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
}

/* Sticky Filter Bar for Mobile */
@media (max-width: 768px) {
    .filters-section {
        position: sticky;
        top: 80px;
        background: white;
        border-bottom: 1px solid #e5e7eb;
        padding: 12px 0;
        z-index: 100;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        margin-bottom: 16px;
    }

    .filter-chips {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0 16px 4px 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex: 0 0 auto;
        padding: 8px 16px;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 500;
        color: #374151;
        white-space: nowrap;
        scroll-snap-align: start;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .filter-chip.active {
        background: #2A6EF3;
        color: white;
        border-color: #2A6EF3;
    }

    .filter-chip:hover {
        background: #e5e7eb;
    }

    .filter-chip.active:hover {
        background: #1E5AD1;
    }

    .overflow-chip {
        background: #6b7280;
        color: white;
        border-color: #6b7280;
    }
}

/* Skeleton Loading States */
@media (max-width: 768px) {
    .clinic-card.skeleton {
        pointer-events: none;
    }

    .clinic-card.skeleton .clinic-image {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
    }

    .clinic-card.skeleton .clinic-name,
    .clinic-card.skeleton .clinic-type,
    .clinic-card.skeleton .clinic-location {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
        border-radius: 4px;
        color: transparent;
    }

    .clinic-card.skeleton .clinic-name {
        height: 20px;
        width: 80%;
    }

    .clinic-card.skeleton .clinic-type {
        height: 14px;
        width: 40%;
    }

    .clinic-card.skeleton .clinic-location {
        height: 16px;
        width: 90%;
    }

    @keyframes skeleton-loading {
        0% {
            background-position: -200% 0;
        }
        100% {
            background-position: 200% 0;
        }
    }
}

/* Sticky Bottom Action Bar for Clinic Profile */
@media (max-width: 768px) {
    .clinic-profile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        gap: 12px;
    }

    .bottom-action-btn {
        flex: 1;
        padding: 14px 20px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
        text-align: center;
        transition: all 0.2s ease;
        min-height: 52px;
    }
}

/* Responsive Design for Modern Clinic Profile Header */
@media (max-width: 1024px) {
    .profile-content {
        grid-template-columns: 350px 1fr;
        gap: 40px;
    }
    
    .clinic-info h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .clinic-profile-header {
        padding: 40px 0 30px;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .clinic-image-large {
        max-width: 400px;
        margin: 0 auto;
        transform: none;
    }
    
    .clinic-image-large:hover {
        transform: scale(1.02);
    }
    
    .clinic-info {
        padding: 15px 0;
    }
    
    .clinic-info::before {
        display: none;
    }
    
    .clinic-info h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .clinic-info .clinic-type {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .rating-row {
        justify-content: center;
        margin: 1rem 0;
    }
    
    .clinic-address {
        font-size: 1.1rem;
        margin: 20px auto;
        max-width: 400px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .clinic-profile-header {
        padding: 30px 0 20px;
    }
    
    .profile-content {
        padding: 0 15px;
        gap: 20px;
    }
    
    .clinic-image-large {
        max-width: 100%;
    }
    
    .clinic-image-large img {
        height: 250px;
    }
    
    .clinic-info h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .clinic-info .clinic-type {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .rating-row {
        flex-direction: column;
        gap: 8px;
        margin: 0.75rem 0;
    }
    
    .stars {
        font-size: 1.2rem;
    }
    
    .rating-score {
        font-size: 1rem;
    }
    
    .clinic-address {
        font-size: 1rem;
        padding: 12px 16px;
        margin: 15px auto;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .type-badge {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .premium-badge-image {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .bottom-action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: none;
        cursor: pointer;
    }

    .bottom-action-btn.call {
        background: #2A6EF3;
        color: white;
    }

    .bottom-action-btn.call:hover {
        background: #1E5AD1;
        transform: translateY(-1px);
    }

    .bottom-action-btn.email {
        background: #10b981;
        color: white;
    }

    .bottom-action-btn.email:hover {
        background: #059669;
        transform: translateY(-1px);
    }

    /* Add bottom padding to profile content to avoid overlap */
    .profile-content {
        padding-bottom: 100px;
    }

    /* Add bottom padding to similar clinics section to avoid overlap */
    .similar-clinics {
        padding-bottom: 100px;
    }

    /* Hide on desktop */
    .clinic-profile-bottom-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    .clinic-profile-bottom-bar {
        display: flex;
    }
}

/* reCAPTCHA v2 Styling */
.recaptcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    min-height: 78px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.recaptcha-container:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.recaptcha-container iframe {
    border-radius: 4px;
}

/* Demo reCAPTCHA styling */
.recaptcha-container div[style*="border: 2px dashed"] {
    border-radius: 8px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 500 !important;
    color: #667eea !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border: 2px dashed #667eea !important;
}

/* Error styling for reCAPTCHA */
.recaptcha-container.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-group-modern .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Responsive reCAPTCHA */
@media (max-width: 480px) {
    .recaptcha-container {
        margin: 0.75rem 0;
        padding: 0.5rem;
    }

    .recaptcha-container iframe {
        transform: scale(0.85);
        transform-origin: center;
    }
}
