/* ===== FindTrustedCare.com - Main Stylesheet ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef2ff;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-light: #fff7ed;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --teal: #14b8a6;
  --pink: #ec4899;
  --gray-50: #fafaf9;
  --gray-100: #f5f5f4;
  --gray-200: #e7e5e4;
  --gray-300: #d6d3d1;
  --gray-400: #a8a29e;
  --gray-500: #78716c;
  --gray-600: #57534e;
  --gray-700: #44403c;
  --gray-800: #292524;
  --gray-900: #1c1917;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -4px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.07), 0 8px 10px -6px rgba(0,0,0,0.03);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: 2.75rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

.subtitle { color: var(--gray-500); }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 0.9rem; cursor: pointer; border: none; transition: all 0.15s ease;
  font-family: var(--font-sans); text-decoration: none; letter-spacing: -0.01em;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99,102,241,0.35); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,115,22,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--gray-300); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); color: var(--primary); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--gray-700); font-size: 0.9rem; }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font-sans);
  transition: border-color var(--transition); background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.form-control::placeholder { color: var(--gray-500); }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

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

/* --- Cards --- */
.card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  transition: all 0.2s ease; overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-body { padding: 24px; }

/* --- Navigation --- */
.navbar {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px; position: sticky; top: 0; z-index: 1000;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  font-size: 1.3rem; font-weight: 800; color: var(--primary);
  display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em;
}
.navbar-brand span { color: var(--accent); }
.navbar-nav { display: flex; align-items: center; gap: 8px; list-style: none; }
.navbar-nav a {
  padding: 8px 14px; color: var(--gray-600); font-weight: 500; font-size: 0.9rem;
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.navbar-nav a:hover { background: var(--gray-100); color: var(--gray-900); }
.navbar-nav .active a { color: var(--primary); background: var(--primary-light); }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 8px; color: var(--gray-700); }

/* --- Hero Section --- */
.hero {
  background-size: cover; background-position: center;
  color: var(--white); padding: 120px 0 100px; text-align: center;
  position: relative; overflow: hidden; min-height: 520px;
  display: flex; align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.88) 0%, rgba(139,92,246,0.82) 40%, rgba(168,85,247,0.78) 70%, rgba(217,70,239,0.72) 100%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 { font-size: 3.25rem; margin-bottom: 16px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.hero p { font-size: 1.15rem; opacity: 0.92; margin-bottom: 32px; max-width: 580px; line-height: 1.7; margin-left: auto; margin-right: auto; }
.hero .search-box { max-width: 680px; margin: 0 auto 24px; }
.hero-social-proof {
  display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 0.88rem;
  opacity: 0.9;
}
.hero-avatars { display: flex; }
.hero-avatars img {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8); margin-left: -10px;
  object-fit: cover;
}
.hero-avatars img:first-child { margin-left: 0; }
.hero-floating-cards {
  display: flex; justify-content: center; gap: 24px; margin-top: 36px;
}
.hero-image-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-xl); color: var(--gray-800); font-size: 0.85rem;
  animation: float 3s ease-in-out infinite;
}
.hero-image-card strong { display: block; font-size: 0.88rem; }
.hero-image-card small { color: var(--gray-500); font-size: 0.78rem; }
.hero-image-card-right { animation-delay: 1.5s; }
.hero-rating-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Search Box --- */
.search-box {
  background: var(--white); border-radius: var(--radius-xl); padding: 8px;
  display: flex; gap: 4px; max-width: 880px; margin: 0 auto;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1); position: relative;
}
.search-box .search-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: var(--radius-lg);
}
.search-box .search-field .icon { color: var(--gray-400); flex-shrink: 0; width: 20px; height: 20px; }
.search-box .search-field .icon svg { width: 20px; height: 20px; }
.search-box .search-field input {
  border: none; outline: none; font-size: 0.95rem; width: 100%;
  font-family: var(--font-sans); color: var(--gray-800);
}
.search-box .search-field input::placeholder { color: var(--gray-400); }
.location-action {
  width: 36px; height: 36px; flex: 0 0 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--primary); cursor: pointer;
}
.location-action:hover, .location-action:focus-visible { background: var(--primary-light); outline: 2px solid transparent; }
.location-action:disabled { cursor: wait; opacity: 0.6; }
.location-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.search-box .divider { width: 1px; background: var(--gray-200); margin: 10px 0; }
.search-box .btn { padding: 14px 32px; border-radius: var(--radius-lg); font-size: 0.95rem; background: var(--accent); }
.search-box .btn:hover { background: var(--accent-dark); box-shadow: 0 4px 14px rgba(249,115,22,0.3); }

/* --- Specialties Grid --- */
.specialties { padding: 96px 0; background: var(--white); }
.specialties h2 { text-align: center; margin-bottom: 12px; }
.specialties .subtitle { text-align: center; color: var(--gray-500); margin-bottom: 56px; font-size: 1.05rem; }
.specialty-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.specialty-card {
  background: var(--white); border-radius: var(--radius-md); padding: 28px 16px;
  text-align: center; cursor: pointer; border: 1.5px solid var(--gray-100);
  transition: all 0.2s ease;
}
.specialty-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.specialty-card .icon { width: 52px; height: 52px; margin: 0 auto 14px; background: var(--primary-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.specialty-card .icon svg { width: 24px; height: 24px; color: var(--primary); transition: color 0.2s ease; }
.specialty-card:hover .icon { background: var(--primary); transform: scale(1.05); }
.specialty-card:hover .icon svg { color: var(--white); }
.specialty-card:nth-child(2) .icon { background: #fef3c7; }
.specialty-card:nth-child(2) .icon svg { color: #d97706; }
.specialty-card:nth-child(3) .icon { background: #fce7f3; }
.specialty-card:nth-child(3) .icon svg { color: #db2777; }
.specialty-card:nth-child(4) .icon { background: #dbeafe; }
.specialty-card:nth-child(4) .icon svg { color: #2563eb; }
.specialty-card:nth-child(5) .icon { background: #d1fae5; }
.specialty-card:nth-child(5) .icon svg { color: #059669; }
.specialty-card:nth-child(6) .icon { background: #ede9fe; }
.specialty-card:nth-child(6) .icon svg { color: #7c3aed; }
.specialty-card:nth-child(7) .icon { background: #fff1f2; }
.specialty-card:nth-child(7) .icon svg { color: #e11d48; }
.specialty-card:nth-child(8) .icon { background: #fef3c7; }
.specialty-card:nth-child(8) .icon svg { color: #dc2626; }
.specialty-card:nth-child(9) .icon { background: #ccfbf1; }
.specialty-card:nth-child(9) .icon svg { color: #0d9488; }
.specialty-card:nth-child(10) .icon { background: #fee2e2; }
.specialty-card:nth-child(10) .icon svg { color: #dc2626; }
.specialty-card:nth-child(11) .icon { background: #dbeafe; }
.specialty-card:nth-child(11) .icon svg { color: #2563eb; }
.specialty-card:nth-child(12) .icon { background: #fae8ff; }
.specialty-card:nth-child(12) .icon svg { color: #a21caf; }
.specialty-card:hover .icon { background: var(--primary) !important; }
.specialty-card:hover .icon svg { color: var(--white) !important; }
.specialty-card h4 { font-size: 0.88rem; color: var(--gray-700); font-weight: 600; }

/* --- How It Works --- */
.how-it-works { padding: 96px 0; background: var(--gray-50); }
.how-it-works h2 { text-align: center; margin-bottom: 56px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step { text-align: center; }
.step .step-number {
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary);
  color: var(--white); font-weight: 700; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}
.step:nth-child(2) .step-number { background: var(--accent); box-shadow: 0 4px 12px rgba(249,115,22,0.25); }
.step:nth-child(3) .step-number { background: var(--teal); box-shadow: 0 4px 12px rgba(20,184,166,0.25); }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--gray-500); font-size: 0.93rem; line-height: 1.7; }

/* --- Trust Section --- */
.trust-section { padding: 96px 0; background: linear-gradient(180deg, var(--accent-light) 0%, #fff1f2 100%); }
.trust-section h2 { margin-bottom: 12px; }
.trust-section .subtitle { margin-bottom: 56px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.trust-item { padding: 32px 24px; background: var(--white); border-radius: var(--radius-md); transition: all 0.2s ease; }
.trust-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.trust-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  color: var(--primary);
}
.trust-item:nth-child(1) .trust-icon { background: #d1fae5; color: #059669; }
.trust-item:nth-child(2) .trust-icon { background: #fef3c7; color: #d97706; }
.trust-item:nth-child(3) .trust-icon { background: #ede9fe; color: #7c3aed; }
.trust-item:nth-child(4) .trust-icon { background: #dbeafe; color: #2563eb; }
.trust-item h4 { margin-bottom: 8px; }
.trust-item p { color: var(--gray-500); font-size: 0.93rem; line-height: 1.6; }

/* --- Provider Cards (Search Results) --- */
.search-results { padding: 40px 0 80px; }
.search-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.search-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-chip {
  padding: 8px 18px; border-radius: var(--radius-full); border: 1.5px solid var(--gray-200);
  background: var(--white); font-size: 0.85rem; cursor: pointer; transition: all 0.15s ease;
  font-family: var(--font-sans); color: var(--gray-600); font-weight: 500;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.filter-chip.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.provider-list { display: flex; flex-direction: column; gap: 16px; }

.provider-card {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; padding: 24px; align-items: start;
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  background: var(--white); transition: all 0.2s ease;
}
.provider-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(99,102,241,0.1); }
.provider-card.directory-card { grid-template-columns: auto 1fr; }
.provider-card .provider-avatar {
  width: 110px; height: 110px; border-radius: 12px;
  background: var(--gray-100); display: flex; align-items: center;
  justify-content: center; font-size: 3rem; color: var(--gray-400);
  overflow: hidden; flex-shrink: 0;
}
.provider-card .provider-avatar img { width: 100%; height: 100%; object-fit: cover; }
.provider-info h3 { margin-bottom: 4px; font-size: 1.1rem; }
.provider-info h3 a { color: var(--gray-900); }
.provider-info h3 a:hover { color: var(--primary); }
.provider-specialty { color: var(--primary); font-weight: 500; font-size: 0.88rem; margin-bottom: 8px; }
.provider-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; font-size: 0.85rem; color: var(--gray-500); }
.provider-meta span { display: flex; align-items: center; gap: 4px; }
.provider-rating { color: var(--warning); }
.provider-address { font-size: 0.88rem; color: var(--gray-500); }

.provider-slots { min-width: 220px; }
.provider-slots h4 { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 10px; font-weight: 500; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slot-btn {
  padding: 8px 4px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--accent-dark); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; text-align: center; transition: all 0.15s ease;
  font-family: var(--font-sans);
}
.slot-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); box-shadow: 0 2px 8px rgba(249,115,22,0.2); }

/* --- Provider Profile Page --- */
.provider-profile { padding: 40px 0 80px; }
.profile-header {
  display: flex; gap: 32px; margin-bottom: 40px; align-items: start;
}
.profile-avatar {
  width: 160px; height: 160px; border-radius: var(--radius-lg);
  background: var(--gray-100); flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; font-size: 4rem;
  color: var(--gray-400); overflow: hidden; box-shadow: var(--shadow-md);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-details { flex: 1; }
.profile-details h1 { font-size: 1.85rem; margin-bottom: 4px; }
.profile-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.badge {
  padding: 5px 14px; border-radius: var(--radius-full); font-size: 0.78rem;
  font-weight: 600; letter-spacing: -0.01em;
}
.badge-verified { background: #d1fae5; color: var(--success); }
.badge-top { background: #fef3c7; color: #b45309; }
.profile-stats { display: flex; gap: 32px; margin-top: 16px; }
.stat { text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }
.stat-label { font-size: 0.8rem; color: var(--gray-500); }

.profile-content { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
.profile-section { margin-bottom: 32px; }
.profile-section h3 { margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-200); }

.booking-sidebar {
  position: sticky; top: 84px; background: var(--white);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 24px; height: fit-content; box-shadow: var(--shadow-sm);
}
.booking-sidebar h3 { margin-bottom: 16px; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.calendar-nav { background: none; border: none; cursor: pointer; font-size: 1.2rem; padding: 4px 8px; color: var(--gray-700); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; margin-bottom: 20px; }
.calendar-day-label { font-size: 0.75rem; font-weight: 600; color: var(--gray-500); padding: 4px; }
.calendar-day {
  padding: 8px 4px; border-radius: var(--radius-sm); font-size: 0.85rem;
  cursor: pointer; transition: all var(--transition); border: none; background: none;
  font-family: var(--font-sans);
}
.calendar-day:hover { background: var(--primary-light); }
.calendar-day.available { font-weight: 600; color: var(--primary); }
.calendar-day.selected { background: var(--primary); color: var(--white); border-radius: var(--radius-sm); }
.calendar-day.disabled { color: var(--gray-400); cursor: default; }
.calendar-day.disabled:hover { background: none; }

.time-slots-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; }
.time-slot-btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer; transition: all var(--transition);
  font-family: var(--font-sans); font-size: 0.9rem;
}
.time-slot-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.time-slot-btn.selected { border-color: var(--primary); background: var(--primary); color: var(--white); }

/* --- Review Stars --- */
.stars { color: var(--warning); letter-spacing: 2px; }

.review-card { padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.reviewer-name { font-weight: 600; }
.review-date { font-size: 0.85rem; color: var(--gray-500); }
.review-text { color: var(--gray-700); font-size: 0.95rem; }

/* --- Booking Page --- */
.booking-page { padding: 40px 0 80px; }
.booking-steps {
  display: flex; justify-content: center; gap: 0; margin-bottom: 48px;
  position: relative;
}
.booking-step {
  display: flex; align-items: center; gap: 10px; padding: 12px 24px;
  position: relative;
}
.booking-step .step-circle {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-size: 0.9rem; color: var(--gray-500); background: var(--white);
}
.booking-step.active .step-circle { border-color: var(--primary); background: var(--primary); color: var(--white); }
.booking-step.completed .step-circle { border-color: var(--success); background: var(--success); color: var(--white); }
.booking-step .step-label { font-weight: 500; color: var(--gray-600); }
.booking-step.active .step-label { color: var(--primary); font-weight: 600; }

.booking-content { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }
.booking-summary {
  background: var(--gray-50); border-radius: var(--radius-lg);
  padding: 28px; height: fit-content; position: sticky; top: 90px;
}
.booking-summary h3 { margin-bottom: 20px; }
.summary-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-200); font-size: 0.95rem; }
.summary-item:last-child { border-bottom: none; }
.summary-label { color: var(--gray-600); }
.summary-value { font-weight: 600; }

/* --- Auth Pages --- */
.auth-page {
  min-height: calc(100vh - 64px); display: flex; align-items: center;
  justify-content: center; background: var(--gray-50); padding: 40px 24px;
}
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 48px; width: 100%; max-width: 440px;
  border: 1px solid var(--gray-100);
}
.auth-card h1 { font-size: 1.75rem; margin-bottom: 8px; text-align: center; }
.auth-card .subtitle { text-align: center; color: var(--gray-600); margin-bottom: 32px; }
.auth-divider {
  display: flex; align-items: center; gap: 16px; margin: 24px 0;
  color: var(--gray-500); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-300); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--gray-600); }

.social-btn {
  width: 100%; padding: 12px; border: 2px solid var(--gray-300); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer; font-size: 0.95rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all var(--transition); font-family: var(--font-sans); margin-bottom: 10px;
}
.social-btn:hover { border-color: var(--gray-400); background: var(--gray-50); }

/* --- Provider Dashboard --- */
.dashboard { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 64px); }

.sidebar {
  background: var(--gray-900); color: var(--white); padding: 32px 0;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px;
  color: var(--gray-400); font-weight: 500; transition: all var(--transition);
}
.sidebar-nav li a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar-nav li.active a { background: rgba(99,102,241,0.25); color: var(--white); border-left: 3px solid var(--primary); }
.sidebar-section { padding: 8px 24px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); margin-top: 20px; }

.dashboard-main { padding: 32px; background: var(--gray-50); overflow-y: auto; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.dashboard-header h1 { font-size: 1.75rem; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border-radius: var(--radius-md); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
  transition: all 0.2s ease;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .stat-icon { font-size: 1.75rem; margin-bottom: 12px; }
.stat-card .stat-number { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--gray-600); margin-top: 4px; }
.stat-card .stat-change { font-size: 0.8rem; font-weight: 600; margin-top: 4px; }
.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }

/* --- Tables --- */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; }
th { background: var(--gray-100); font-weight: 600; font-size: 0.85rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.5px; }
td { border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; }
tr:hover td { background: var(--gray-50); }

.status-badge {
  padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.75rem;
  font-weight: 600; display: inline-block;
}
.status-confirmed { background: #d1fae5; color: var(--success); }
.status-pending { background: #fef3c7; color: #b45309; }
.status-cancelled { background: #fde8e8; color: var(--danger); }
.status-completed { background: var(--primary-light); color: var(--primary); }

/* --- Integration Cards --- */
.integration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.integration-card {
  background: var(--white); border-radius: var(--radius-md); padding: 24px;
  border: 2px solid var(--gray-200); display: flex; flex-direction: column;
}
.integration-card .int-header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.integration-card .int-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.integration-card .int-name { font-weight: 700; }
.integration-card .int-desc { font-size: 0.9rem; color: var(--gray-600); flex: 1; margin-bottom: 16px; }
.integration-card.connected { border-color: var(--success); }

/* --- Footer --- */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.footer-brand span { color: var(--accent); }
.footer p { font-size: 0.9rem; line-height: 1.7; }
.footer h4 { color: var(--white); margin-bottom: 16px; font-size: 0.95rem; letter-spacing: -0.01em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--gray-400); font-size: 0.88rem; transition: color 0.15s ease; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--gray-500); }

/* --- Alerts / Notifications --- */
.alert {
  padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px;
  font-size: 0.9rem; display: flex; align-items: center; gap: 12px;
}
.alert-success { background: #d1fae5; color: var(--success); border: 1px solid #a7f3d0; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-error { background: #fee2e2; color: var(--danger); border: 1px solid #fca5a5; }
.alert-info { background: var(--primary-light); color: var(--primary); border: 1px solid #c7d2fe; }

/* --- Tabs --- */
.tabs { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 24px; }
.tab {
  padding: 12px 20px; cursor: pointer; font-weight: 500; color: var(--gray-600);
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition);
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--font-sans); font-size: 0.95rem;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal h2 { margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .profile-content { grid-template-columns: 1fr; }
  .booking-content { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 80px 0 60px; min-height: 420px; }
  .hero-floating-cards { flex-direction: column; align-items: center; gap: 12px; }
  .hero-image-card { font-size: 0.8rem; }
  .search-box { flex-direction: column; }
  .search-box .divider { width: 100%; height: 1px; margin: 0; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .provider-card { grid-template-columns: 1fr; }
  .provider-slots { min-width: auto; }
  .slot-grid { grid-template-columns: repeat(4, 1fr); }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .stat-cards { grid-template-columns: 1fr; }
  .navbar-nav { display: none; }
  .navbar-nav.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); padding: 16px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md); }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .booking-steps { flex-direction: column; align-items: start; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.75rem; }
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--gray-600); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.hidden { display: none; }

/* --- Loading Spinner --- */
.spinner {
  width: 40px; height: 40px; border: 4px solid var(--gray-200);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Skeleton Loading --- */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- Scroll Reveal --- */
.reveal-on-scroll {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1; transform: translateY(0);
}
