/* ===== Design tokens ===== */
:root {
  --pine: #1E5A4C;
  --pine-dark: #133F35;
  --mint: #E4F1EA;
  --sun: #F3B23F;
  --sun-soft: #FDF1D8;
  --ink: #1B2925;
  --muted: #5C6D67;
  --paper: #FAFBF8;
  --line: #D7E2DC;
  --danger: #C2412D;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
a { color: var(--pine); }
a:hover { color: var(--pine-dark); }
.text-muted-ink { color: var(--muted); }
.readable { max-width: 68ch; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* ===== Buttons ===== */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.4rem; }
.btn-sm { padding: .35rem .9rem; }
.btn-pine { background: var(--pine); color: #fff; border: 2px solid var(--pine); }
.btn-pine:hover, .btn-pine:focus { background: var(--pine-dark); border-color: var(--pine-dark); color: #fff; }
.btn-sun { background: var(--sun); color: var(--ink); border: 2px solid var(--sun); }
.btn-sun:hover, .btn-sun:focus { background: #e5a12c; border-color: #e5a12c; color: var(--ink); }
.btn-line { background: transparent; color: var(--pine); border: 2px solid var(--pine); }
.btn-line:hover { background: var(--pine); color: #fff; }

/* ===== Top bar & nav ===== */
.topbar { background: var(--pine-dark); color: #DDEBE4; font-size: .875rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.site-nav { background: #fff; border-bottom: 1px solid var(--line); }
.site-nav .navbar-brand { font-weight: 800; color: var(--pine); display: flex; align-items: center; gap: .5rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--pine); color: var(--sun); display: grid; place-items: center; font-size: 1.25rem; }
.site-nav .nav-link { color: var(--ink); font-weight: 500; padding: .5rem .85rem !important; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--pine); }

/* ===== Hero ===== */
.hero { background: var(--pine); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  /* dấu chân mờ trang trí */
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 420px; height: 420px;
  background: radial-gradient(circle at 50% 62%, rgba(255,255,255,.06) 0 28%, transparent 29%),
              radial-gradient(circle at 22% 30%, rgba(255,255,255,.06) 0 10%, transparent 11%),
              radial-gradient(circle at 42% 18%, rgba(255,255,255,.06) 0 10%, transparent 11%),
              radial-gradient(circle at 62% 18%, rgba(255,255,255,.06) 0 10%, transparent 11%),
              radial-gradient(circle at 80% 30%, rgba(255,255,255,.06) 0 10%, transparent 11%);
  pointer-events: none;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #D3E6DD; max-width: 46ch; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; color: #D3E6DD; font-size: .95rem; }
.hero-facts strong { display: block; color: var(--sun); font-size: 1.05rem; }

.slot-board { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: 0 24px 60px -30px rgba(0,0,0,.45); position: relative; z-index: 1; }
.slot-board h2 { font-size: 1.25rem; margin: 0; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; }
.slot-chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: .45rem 0;
  font-weight: 600; font-size: .9rem; text-align: center; color: var(--ink); text-decoration: none; cursor: pointer;
}
.slot-chip:hover { border-color: var(--pine); color: var(--pine); }
.slot-chip.selected { background: var(--pine); border-color: var(--pine); color: #fff; }
.slot-chip:disabled, .slot-chip.disabled { background: #F1F3F2; color: #A6B1AD; text-decoration: line-through; cursor: not-allowed; border-color: #EEF1EF; }
.slot-legend { font-size: .8rem; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-mint { background: var(--mint); }
.section-head { max-width: 640px; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); margin: .5rem 0 0; }

/* Service list: hàng ngang có biểu tượng, không phải card đồng dạng */
.service-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 1.25rem; align-items: start; padding: 1.4rem 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .icon { width: 56px; height: 56px; border-radius: 16px; background: var(--mint); color: var(--pine); display: grid; place-items: center; font-size: 1.5rem; }
.service-row h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.service-row p { margin: 0; color: var(--muted); max-width: 60ch; }
.service-row .price { font-weight: 700; color: var(--pine); white-space: nowrap; }
.service-row:hover h3 { color: var(--pine); }

/* Doctors */
.doctor { text-align: left; }
.doctor .avatar { aspect-ratio: 4/5; border-radius: var(--radius-lg); background: var(--mint); display: grid; place-items: center; overflow: hidden; margin-bottom: .9rem; }
.doctor .avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor .avatar span { font-size: 2.6rem; font-weight: 800; color: var(--pine); }
.doctor h3 { font-size: 1.05rem; margin: 0; }
.doctor .role { color: var(--pine); font-weight: 600; font-size: .9rem; }
.doctor .spec { color: var(--muted); font-size: .9rem; }

/* Values */
.value { padding-left: 1rem; border-left: 4px solid var(--sun); }
.value h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Articles */
.article-card { display: block; text-decoration: none; color: inherit; }
.article-card .thumb { aspect-ratio: 16/10; border-radius: var(--radius-md); background: var(--mint) center/cover no-repeat; margin-bottom: .9rem; display: grid; place-items: center; color: var(--pine); font-size: 2rem; }
.article-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.article-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.article-card:hover h3 { color: var(--pine); }
.meta { color: var(--muted); font-size: .85rem; }

.prose { max-width: 70ch; font-size: 1.05rem; line-height: 1.75; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose img { max-width: 100%; border-radius: var(--radius-md); }

/* Page header */
.page-head { background: var(--mint); padding: 3rem 0 2.5rem; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; }
.page-head p { color: var(--muted); margin: .5rem 0 0; max-width: 60ch; }
.crumbs { font-size: .85rem; margin-bottom: .6rem; }
.crumbs a { color: var(--muted); text-decoration: none; }

/* CTA band */
.cta-band { background: var(--sun); border-radius: var(--radius-lg); padding: 2.5rem; }
.cta-band h2 { margin: 0; }

/* Panels & forms */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
.panel-title { font-size: 1.1rem; margin-bottom: 1rem; }
.form-control, .form-select { border-radius: var(--radius-sm); border: 1.5px solid var(--line); padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--pine); box-shadow: 0 0 0 .2rem rgba(30,90,76,.15); }
.form-label { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field-validation-error, .validation-summary-errors { color: var(--danger); font-size: .875rem; }
.validation-summary-errors ul { padding-left: 1rem; margin: 0; }
.input-validation-error { border-color: var(--danger) !important; }

.step-label { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin-bottom: 1rem; }
.step-label .n { width: 28px; height: 28px; border-radius: 50%; background: var(--pine); color: #fff; display: grid; place-items: center; font-size: .85rem; }

/* Status badges */
.badge-status { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.status-pending { background: var(--sun-soft); color: #8A5A00; }
.status-confirmed { background: #E2ECFB; color: #1D4E9A; }
.status-completed { background: var(--mint); color: var(--pine); }
.status-cancelled { background: #EFEFEF; color: #6B6B6B; }

/* Account area */
.account-nav .list-group-item { border: 0; border-radius: var(--radius-sm) !important; font-weight: 500; color: var(--ink); padding: .65rem 1rem; }
.account-nav .list-group-item.active { background: var(--pine); color: #fff; }
.account-nav .list-group-item i { width: 1.4rem; display: inline-block; }

.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; }
.stat .num { font-size: 1.8rem; font-weight: 800; color: var(--pine); line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: .9rem; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 2.25rem; padding-bottom: 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--pine); }

.record-sheet dt { color: var(--muted); font-weight: 600; font-size: .85rem; }
.record-sheet dd { margin-bottom: 1rem; white-space: pre-line; }

.table { --bs-table-bg: transparent; }
.table thead th { font-size: .82rem; color: var(--muted); font-weight: 600; border-bottom-width: 1px; }
.table td { vertical-align: middle; }

.pagination .page-link { color: var(--pine); border-radius: 8px !important; margin: 0 2px; border: 1px solid var(--line); }
.pagination .active .page-link { background: var(--pine); border-color: var(--pine); color: #fff; }

/* Footer */
.site-footer { background: var(--pine-dark); color: #C6D9D0; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #C6D9D0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }

/* Floating contact */
.float-contact { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 1030; }
.float-contact a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.3rem; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); text-decoration: none; }
.float-contact .call { background: var(--danger); }
.float-contact .zalo { background: #0068FF; font-weight: 800; font-size: .8rem; }

/* Toast-like alerts */
.flash { border-radius: var(--radius-md); border: 0; }

@media (max-width: 767.98px) {
  .section { padding: 3rem 0; }
  .service-row { grid-template-columns: 48px 1fr; }
  .service-row .price { grid-column: 2; }
  .cta-band { padding: 1.75rem; }
}

@media print {
  .topbar, .site-nav, .site-footer, .float-contact, .no-print, .account-nav { display: none !important; }
  body { background: #fff; }
  .panel { border: 0; padding: 0; }
}
.record-head { border-bottom: 2px solid var(--pine); padding-bottom: .75rem; margin-bottom: 1.25rem; }

/* ---- Logo và liên kết mạng xã hội (quản trị viên cấu hình) ---- */
.site-nav .brand-logo { height: 38px; width: auto; max-width: 160px; object-fit: contain; }
.footer-social { display: flex; gap: .65rem; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.footer-social a:hover { background: var(--sun); color: var(--ink); }
.map-embed iframe { width: 100%; min-height: 240px; border: 0; border-radius: 14px; }
