/* Màu lấy từ logo phòng khám: xanh lá #009746, cam #f6851f */
:root {
  --xanh: #009746;
  --xanh-dam: #007a38;
  --xanh-nhat: #e8f6ed;
  --cam: #f6851f;
  --cam-dam: #d96d0c;
  --nen: #f2f8f4;
  --the: #ffffff;
  --chu: #14302a;
  --mo: #5d7369;
  --vien: #d6e6dc;
  --loi: #b42318;
  --loi-nen: #fdefef;
  --bo: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--nen); color: var(--chu);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--xanh-dam); }
.khung { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* đầu trang */
.dau { background: var(--xanh); color: #fff; border-bottom: 4px solid var(--cam); }
.dau-trong { display: flex; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.logo { background: #fff; border-radius: 12px; padding: 4px; width: 56px; height: 58px; object-fit: contain; flex: none; }
.ten-pk { font-weight: 700; font-size: 1.08rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .01em; }
.phu-de { opacity: .92; font-size: .95rem; }

main { padding-top: 18px; padding-bottom: 8px; }
.the { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo);
       padding: 20px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(20, 48, 42, .05); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 8px; }
h1 { font-size: 1.4rem; color: var(--xanh-dam); }
h2 { font-size: 1.2rem; color: var(--xanh-dam); }
h3 { font-size: 1.02rem; margin-top: 18px; }
.mo-ta { color: var(--mo); margin: 0 0 14px; }

/* biểu mẫu */
label { display: block; font-weight: 600; margin: 14px 0 6px; }
.bat-buoc { color: var(--loi); }
input[type=text], input[type=tel] {
  width: 100%; font: inherit; font-size: 1.1rem; padding: 12px 14px; min-height: 50px;
  border: 1.5px solid #b9cfc2; border-radius: 10px; background: #fff; color: var(--chu);
}
input:focus { outline: 3px solid rgba(0, 151, 70, .25); border-color: var(--xanh); }
input[aria-invalid=true] { border-color: var(--loi); }
fieldset.mot-trong-hai { border: 1.5px dashed #b9cfc2; border-radius: 12px; padding: 4px 14px 14px; margin: 18px 0 0; }
fieldset legend { padding: 0 6px; color: var(--mo); font-size: .95rem; }
.bay { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.nut { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
       font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
       border-radius: 12px; min-height: 52px; padding: 12px 20px; border: 0; }
.nut svg { width: 22px; height: 22px; fill: currentColor; }
.nut-chinh { width: 100%; margin-top: 18px; background: var(--xanh); color: #fff; font-size: 1.1rem; }
.nut-chinh:hover { background: var(--xanh-dam); }
.nut-chinh[disabled] { opacity: .65; cursor: wait; }
.nut-cam { width: 100%; background: var(--cam); color: #fff; font-size: 1.1rem; margin: 6px 0 14px; }
.nut-cam:hover { background: var(--cam-dam); }
.nut-vien { background: #fff; color: var(--xanh-dam); border: 2px solid var(--xanh); min-height: 44px; padding: 8px 16px; }
.nut-phu { font: inherit; background: none; border: 0; color: var(--xanh-dam); text-decoration: underline; cursor: pointer; padding: 6px 0; }

.thong-bao { background: var(--loi-nen); color: var(--loi); border-radius: 10px; padding: 12px 14px; margin: 16px 0 0; }

/* kết quả */
.hang-dau { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hang-dau h2 { margin: 0; }
.ds-ket-qua { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ds-ket-qua button {
  width: 100%; text-align: left; font: inherit; cursor: pointer; background: var(--xanh-nhat);
  border: 1.5px solid transparent; border-radius: 12px; padding: 14px 16px; color: var(--chu);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.ds-ket-qua button:hover, .ds-ket-qua button[aria-current=true] { border-color: var(--xanh); }
.ds-ket-qua .ngay { font-weight: 700; }
.ds-ket-qua .phu { color: var(--mo); font-size: .92rem; }
.ds-ket-qua .mui { color: var(--xanh); font-weight: 700; font-size: 1.3rem; }
#xem { margin-top: 18px; border-top: 1px solid var(--vien); padding-top: 16px; }
.xem-tieu-de { font-weight: 700; }
.trang-kq { display: grid; gap: 12px; }
.trang-kq img { width: 100%; height: auto; border: 1px solid var(--vien); border-radius: 8px; background: #fff; }
.dang-tai { color: var(--mo); padding: 20px 0; text-align: center; }
.chu-nho { color: var(--mo); font-size: .9rem; margin: 12px 0 0; }

/* thông tin phòng khám */
.ttin { margin: 0; display: grid; gap: 12px; }
.ttin dt, .ds-gio dt { font-weight: 700; color: var(--mo); font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
.ttin dd, .ds-gio dd { margin: 2px 0 0; }
.ds-tel { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tel { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.ds-gio { margin: 0; display: grid; gap: 10px; }
.gio { background: var(--nen); border-radius: 10px; padding: 10px 14px; }

.chan { color: var(--mo); font-size: .88rem; padding-bottom: 90px; text-align: center; }
.goi-nhanh { position: fixed; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%;
             background: var(--xanh); color: #fff; display: grid; place-items: center;
             box-shadow: 0 4px 14px rgba(0, 0, 0, .22); border: 3px solid #fff; }
.goi-nhanh svg { width: 26px; height: 26px; fill: currentColor; }

@media (min-width: 640px) {
  .ten-pk { font-size: 1.25rem; }
  .the { padding: 26px 28px; }
}
@media print {
  .dau, #o-tra-cuu, .the-pk, .chan, .goi-nhanh, .hang-dau, .chu-nho { display: none !important; }
  .the { border: 0; box-shadow: none; padding: 0; }
}
