:root{
  --primary:#1e5fa8;
  --primary-dark:#174b84;
  --accent:#2f80ed;
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --border:#dbe3ee;
  --shadow:0 10px 30px rgba(15, 23, 42, 0.08);
  --radius:18px;
  --radius-sm:12px;
  --container:1180px;
}

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

html{
  scroll-behavior:smooth;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

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

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

a:hover{
  color:var(--primary-dark);
}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
}

.main-area{
  padding:32px 0 48px;
}

/* Header */
.site-header{
  background:#fff;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:100;
}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:74px;
}

.brand{
  font-size:1.6rem;
  font-weight:800;
  color:var(--text);
}

.brand span{
  color:var(--accent);
}

nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

nav a{
  color:var(--text);
  font-weight:600;
}

nav a:hover{
  color:var(--accent);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--primary), var(--accent));
  color:#fff;
  font-weight:700;
  border:none;
  cursor:pointer;
  transition:0.25s ease;
  box-shadow:0 8px 20px rgba(47,128,237,0.18);
}

.btn:hover{
  transform:translateY(-2px);
  color:#fff;
}

.btn-small{
  padding:9px 14px;
  font-size:0.92rem;
}

.btn-outline{
  background:#fff;
  color:var(--primary);
  border:1px solid var(--primary);
  box-shadow:none;
}

.btn-outline:hover{
  background:#eef5ff;
  color:var(--primary-dark);
}

/* Generic cards / tiles */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
}

.section{
  margin-top:34px;
}

.section-head{
  margin-bottom:18px;
}

.section-head h2{
  font-size:1.8rem;
  margin-bottom:6px;
}

.section-head p{
  color:var(--muted);
}

.split-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

/* Hero */
.hero{
  display:grid;
  grid-template-columns:1.2fr 0.9fr;
  gap:24px;
  align-items:stretch;
}

.hero-advanced > div{
  min-width:0;
}

.hero h1{
  font-size:clamp(2rem, 4vw, 3.3rem);
  line-height:1.15;
  margin:14px 0 14px;
}

.hero p{
  color:var(--muted);
  font-size:1.05rem;
}

.pill{
  display:inline-block;
  background:#eaf3ff;
  color:var(--primary-dark);
  padding:8px 14px;
  border-radius:999px;
  font-size:0.92rem;
  font-weight:700;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}

.trust-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.trust-chip{
  background:#fff;
  border:1px solid var(--border);
  padding:10px 14px;
  border-radius:999px;
  color:var(--text);
  font-size:0.94rem;
  box-shadow:var(--shadow);
}

.hero-panel{
  background:
    linear-gradient(180deg, rgba(47,128,237,0.06), rgba(255,255,255,1));
}

.hero-panel h3{
  margin-bottom:14px;
  font-size:1.3rem;
}

/* Tiled search */
.search-bar,
.advanced-search{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.search-bar select,
.search-bar input,
.search-bar textarea,
.search-bar button,
form select,
form input,
form textarea{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  outline:none;
  background:#fff;
  color:var(--text);
  font-size:0.98rem;
}

form input:focus,
form select:focus,
form textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(47,128,237,0.12);
}

.hero-metrics{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-top:18px;
}

.hero-metrics div{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  text-align:center;
}

.hero-metrics strong{
  display:block;
  font-size:1.2rem;
  color:var(--primary-dark);
}

.hero-metrics span{
  color:var(--muted);
  font-size:0.92rem;
}

/* Tile grids */
.grid-three{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}

.info-grid .feature-card{
  min-height:190px;
}

.feature-card h3{
  margin-bottom:10px;
}

/* Doctor cards */
.doctor-card,
.rich-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:100%;
}

.doctor-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.verified-badge,
.rating-badge{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  font-size:0.88rem;
  font-weight:700;
}

.verified-badge{
  background:#e9f7ef;
  color:#157347;
}

.rating-badge{
  background:#fff8db;
  color:#8a6d1d;
}

.muted{
  color:var(--muted);
}

.meta-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:auto;
}

.meta-list span{
  background:#f3f6fa;
  border:1px solid var(--border);
  padding:8px 12px;
  border-radius:999px;
  font-size:0.9rem;
  color:var(--text);
}

/* Timeline tiles */
.timeline-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}

.timeline-grid .card{
  min-height:150px;
}

/* City tiles */
.city-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}

.city-card{
  position:relative;
  overflow:hidden;
}

.city-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(30,95,168,0.04), transparent 55%);
  pointer-events:none;
}

.city-card h3{
  margin-bottom:8px;
}

.city-card p{
  color:var(--muted);
  margin-bottom:14px;
}

.mini-list{
  list-style:none;
  display:grid;
  gap:10px;
}

.mini-list li{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:14px;
  background:#f8fbff;
  border:1px solid var(--border);
}

.mini-list span{
  white-space:nowrap;
  color:var(--primary-dark);
  font-weight:700;
}

/* Footer */
.site-footer{
  margin-top:40px;
  background:#0f172a;
  color:#d9e2f0;
  padding:36px 0;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}

.site-footer h4{
  color:#fff;
  margin-bottom:10px;
}

/* Simple tables and forms for inner pages */
table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

table th,
table td{
  padding:14px;
  border-bottom:1px solid var(--border);
  text-align:left;
}

table th{
  background:#f7faff;
}

.alert,
.success,
.error{
  padding:14px 16px;
  border-radius:14px;
  margin-bottom:16px;
  font-weight:600;
}

.alert{
  background:#eef5ff;
  color:var(--primary-dark);
}

.success{
  background:#e9f7ef;
  color:#157347;
}

.error{
  background:#fdecec;
  color:#b42318;
}

/* Responsive */
@media (max-width: 1024px){
  .hero,
  .grid-three,
  .city-grid,
  .timeline-grid,
  .footer-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width: 768px){
  .nav-wrap{
    flex-direction:column;
    align-items:flex-start;
    padding:14px 0;
  }

  nav{
    width:100%;
  }

  .hero,
  .grid-three,
  .city-grid,
  .timeline-grid,
  .footer-grid,
  .hero-metrics{
    grid-template-columns:1fr;
  }

  .split-head{
    align-items:flex-start;
  }

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

  .main-area{
    padding-top:20px;
  }
}

.logout-form{
  display:inline-block;
  margin:0;
}

.logout-form button{
  appearance:none;
}

nav .logout-form{
  display:inline-flex;
  align-items:center;
}

.status-badge{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid transparent;
}

.status-requested{
  background:#eef5ff;
  color:#1e5fa8;
  border-color:#cfe0f7;
}

.status-confirmed{
  background:#e9f7ef;
  color:#157347;
  border-color:#b7e4c7;
}

.status-rejected{
  background:#fdecec;
  color:#b42318;
  border-color:#f5c2c7;
}

.status-completed{
  background:#f2f4f7;
  color:#344054;
  border-color:#d0d5dd;
}

.status-rescheduled{
  background:#fff4e5;
  color:#b54708;
  border-color:#f5d0a9;
}

.pay-pending{
  background:#fff7e6;
  color:#b26a00;
  border-color:#f2d39b;
}

.pay-initiated{
  background:#eef5ff;
  color:#1e5fa8;
  border-color:#cfe0f7;
}

.pay-paid{
  background:#e9f7ef;
  color:#157347;
  border-color:#b7e4c7;
}

.pay-failed{
  background:#fdecec;
  color:#b42318;
  border-color:#f5c2c7;
}

.pay-refunded{
  background:#f3f4f6;
  color:#4b5563;
  border-color:#d1d5db;
}