/* ================= RESET ================= */
*{ box-sizing:border-box; margin:0; padding:0; }
body{ font-family: Arial, sans-serif; background:#fff; color:#000; line-height:1.4; }
a{ color:inherit; text-decoration:none; }

/* ================= HEADER ================= */
.top{ display:flex; align-items:center; gap:20px; padding:16px 24px; background:#e6e6e6; }
.logo{ font-size:22px; font-weight:700; }
.search{ flex:1; display:flex; align-items:center; gap:10px; background:#d9d9d9; padding:8px 12px; border-radius:6px; }
.search input{ width:100%; border:0; outline:0; background:transparent; font-size:14px; }
.searchIcon{ opacity:.8; }
.actions{ display:flex; gap:10px; align-items:center; }
.lang{ padding:6px 10px; border:0; background:#d0d0d0; border-radius:6px; cursor:pointer; }
.authBtn{ padding:8px 12px; border:0; border-radius:8px; background:#2b2b2b; color:#fff; cursor:pointer; }

/* ================= MENU ================= */
.menu{ display:flex; gap:18px; padding:10px 24px; background:#f2f2f2; flex-wrap:wrap; }
.menu a{ font-size:14px; }

/* ================= HERO ================= */
.hero{ background:#e0e0e0; padding:20px; }
.hero img{ width:100%; height:260px; object-fit:cover; border-radius:10px; background:#cfcfcf; }
.hero-buttons{ margin-top:16px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.heroBtn{ padding:10px 16px; border:0; background:#cccccc; cursor:pointer; border-radius:10px; }

/* ================= SECTIONS ================= */
.section{ padding:40px 24px; }
.section h2{ margin-bottom:24px; font-size:22px; }

/* ================= CAROUSEL ================= */
.carousel{ display:flex; align-items:center; gap:12px; }
.arrow{ width:42px; height:42px; border-radius:999px; border:0; background:#ededed; cursor:pointer; font-size:18px; }

/* ================= GRIDS ================= */
.services, .doctors{ flex:1; display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
.card, .doctor{ background:#f0f0f0; padding:14px; border-radius:14px; text-align:center; }
.card img, .doctor img{ width:100%; height:220px; object-fit:cover; border-radius:12px; margin-bottom:10px; background:#d2d2d2; }

.doctor img{ height:240px; object-fit:contain; background:#e5e5e5; border-radius:16px; }
.doctor button{ margin-top:10px; padding:8px 14px; border:0; background:#2b2b2b; color:#fff; cursor:pointer; border-radius:10px; }

/* ================= FOOTER ================= */
.footer{ padding:20px; background:#f2f2f2; text-align:center; font-size:14px; }

/* ================= MODALS ================= */
.modal-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:999; }
.modal{ position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:16px; }
.modal-card{ width:min(860px, 96vw); max-height:90vh; overflow:auto; background:#fff; border-radius:14px; border:1px solid #e6e6e6; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.modal-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid #eee; }
.modal-head h3{ font-size:18px; }
.modal-x{ width:36px; height:36px; border-radius:10px; border:1px solid #e6e6e6; background:#f7f7f7; cursor:pointer; font-size:20px; }
.modal-body{ padding:16px; }

/* ================= FORMS ================= */
.grid2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.stack{ display:grid; gap:12px; }
label{ display:block; font-size:13px; margin:6px 0; color:#333; }
input, select, textarea{ width:100%; padding:10px 12px; border:1px solid #d7d7d7; border-radius:10px; outline:none; font-size:14px; }
textarea{ resize:vertical; }
input:focus, select:focus, textarea:focus{ border-color:#999; }
.err{ display:block; min-height:16px; font-size:12px; color:#c70000; margin-top:4px; }
.invalidField{ border-color:#c70000 !important; box-shadow:0 0 0 3px rgba(199,0,0,.10); }

/* ================= BUTTONS ================= */
.modal-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:12px; }
.btn-primary{ background:#2b2b2b; color:#fff; border:0; padding:10px 14px; border-radius:10px; cursor:pointer; }
.btn-ghost{ background:#f3f3f3; border:1px solid #e0e0e0; padding:10px 14px; border-radius:10px; cursor:pointer; }

/* ================= TOAST ================= */
.toast{ margin-top:12px; padding:10px 12px; border-radius:10px; background:#f2fff2; border:1px solid #bfe8bf; color:#1e6d1e; }
.muted{ color:#6d6d6d; }
.small{ font-size:12px; }

/* ================= CABINET ================= */
.cab-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0 12px; }
.cab-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cab-box{ border:1px solid #eee; border-radius:12px; padding:12px; background:#fafafa; }
.cab-box h4{ margin:0 0 10px; }
.list{ padding-left:18px; margin:0; }

/* Doctor modal image */
.docImg{ width:100%; height:260px; object-fit:contain; background:#e5e5e5; border-radius:12px; margin-bottom:12px; }

/* ================= RESPONSIVE ================= */
@media (max-width:980px){
  .services, .doctors{ grid-template-columns:1fr; }
  .carousel{ align-items:stretch; }
  .arrow{ height:48px; }
}
@media (max-width:720px){
  .grid2{ grid-template-columns:1fr; }
  .cab-grid{ grid-template-columns:1fr; }
}

/* Ensure hidden works */
[hidden]{ display:none !important; }
