/* Màu và phông theo trang nhận diện Mộc An (Bài 3/thiet-ke/mau-va-phong.css) */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url("phong-chu/BeVietnamPro-Regular.ttf") format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("phong-chu/BeVietnamPro-Medium.ttf") format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url("phong-chu/BeVietnamPro-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url("phong-chu/BeVietnamPro-Bold.ttf") format("truetype"); }

:root {
  --nau: #7A4B2A;
  --xanh: #86B97A;
  --kem: #FAF5EC;
  --be: #EADFCD;
  --nau-dam: #3D2614;
  --xanh-dam: #4E7A43;
  --phong: "Be Vietnam Pro", system-ui, sans-serif;
  --bo-goc: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--kem); color: var(--nau-dam);
  font-family: var(--phong); font-size: 17px; line-height: 1.55;
}
.khung { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
h1, h2, h3 { color: var(--nau); line-height: 1.25; margin: 0 0 8px; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 12px; }
a { color: var(--xanh-dam); }

.nhap {
  background: var(--nau-dam); color: var(--kem); font-size: 14px;
  padding: 8px 16px; text-align: center;
}

.dau-trang { padding: 40px 0 24px; }
.phu { color: var(--xanh-dam); font-weight: 600; }

.nut {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--nau); color: var(--kem); font: 600 17px var(--phong);
  padding: 14px 24px; text-decoration: none; text-align: center; min-height: 48px;
}
.nut:disabled { opacity: .45; cursor: not-allowed; }
.nut.rong { width: 100%; }
.nut.phu-nut { background: transparent; color: var(--nau); border: 2px solid var(--nau); }

.the {
  background: #fff; border: 2px solid var(--be); border-radius: var(--bo-goc);
  padding: 16px; margin-bottom: 12px;
}

/* Các bước đặt lịch */
.buoc { margin-top: 28px; }
.so-buoc {
  display: inline-flex; width: 28px; height: 28px; border-radius: 50%;
  background: var(--xanh-dam); color: #fff; font-size: 15px; font-weight: 700;
  align-items: center; justify-content: center; margin-right: 8px;
}
.chon { display: block; cursor: pointer; }
.chon input { position: absolute; opacity: 0; pointer-events: none; }
.chon .the { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.chon input:checked + .the { border-color: var(--xanh-dam); background: #F1F7EE; }
.chon input:focus-visible + .the { outline: 3px solid var(--xanh); }
.gia { font-weight: 700; color: var(--nau); white-space: nowrap; }

.hang-chip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; }
.luoi-chip { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  flex: 0 0 auto; border: 2px solid var(--be); background: #fff; color: var(--nau-dam);
  border-radius: 12px; padding: 10px 14px; font: 500 16px var(--phong); cursor: pointer; min-height: 48px;
}
.chip small { display: block; font-size: 13px; color: #7a6656; }
.chip[aria-pressed="true"] { border-color: var(--xanh-dam); background: var(--xanh-dam); color: #fff; }
.chip[aria-pressed="true"] small { color: #E3F0DE; }

label.o { display: block; font-weight: 600; margin: 14px 0 6px; }
input.o, textarea.o {
  width: 100%; font: 400 17px var(--phong); color: var(--nau-dam);
  border: 2px solid var(--be); border-radius: 12px; padding: 12px; background: #fff;
}
input.o:focus, textarea.o:focus { outline: none; border-color: var(--xanh-dam); }
.goi-y { font-size: 14px; color: #7a6656; margin-top: 4px; }
.loi { color: #A3341F; font-weight: 600; margin-top: 12px; }

/* Màn hình mã QR */
.qr-hop { text-align: center; }
.qr-hop svg, .qr-hop img { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto; }
.dau-mau { position: relative; display: inline-block; }
.dau-mau::after {
  content: "MẪU"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 64px; font-weight: 700; color: rgba(163, 52, 31, .55); transform: rotate(-20deg); pointer-events: none;
}
.dong { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--be); align-items: center; }
.dong:last-child { border-bottom: 0; }
.dong span:first-child { color: #7a6656; font-size: 15px; }
.dong b { text-align: right; word-break: break-all; }
.chep { border: 0; background: var(--be); color: var(--nau-dam); border-radius: 8px; font: 600 14px var(--phong); padding: 6px 10px; margin-left: 8px; cursor: pointer; }
.dem-nguoc { font-size: 28px; font-weight: 700; color: var(--nau); }
.trang-thai { border-radius: var(--bo-goc); padding: 14px 16px; margin: 16px 0; background: var(--be); }
.trang-thai.xong { background: #E3F0DE; color: var(--xanh-dam); }
.tom-tat { margin-top: 16px; background: #F1F7EE; border-color: var(--xanh); }
.tom-tat .dong { padding: 6px 0; border: 0; }
.so-lon { font-size: 26px; font-weight: 700; color: var(--nau); }
.nut-nho { display: block; margin: 12px auto 0; }
.ghi-chu-qr { font-size: 15px; background: var(--be); border-radius: 12px; padding: 10px 12px; margin-top: 12px; text-align: left; }
.so-lon { white-space: nowrap; word-break: normal !important; }
