/* =====================================================================
   SOL · GIỮ PHÒNG BA BƯỚC (Agent TRANG B)
   Bố cục theo bước 1 của Modern Village (mục 6b), số đo lấy từ mẫu Sol cũ
   (giao_dien_tham_chieu/site/dat-phong/thong-tin). Màu, phông, nút dùng biến ở nen.css.
   ===================================================================== */
/* ---------- thanh ba bước ---------- */
.tb { background: #fff; border-bottom: 1px solid rgba(179,145,84,.4); }
.tb ol { display: flex; align-items: center; gap: 8px; padding-top: 13px; padding-bottom: 13px; }
.tb li { display: flex; align-items: center; gap: 12px; flex: 1; }
.tb li:last-child { flex: 0 0 auto; }
.tb li:not(:last-child)::after { content: ''; flex: 1; height: 1px; min-width: 24px; background: rgba(179,145,84,.4); margin-left: 4px; }
.tb__so { width: 30px; height: 30px; border-radius: 50%; background: var(--kem); color: var(--chu-3); border: 1px solid rgba(179,145,84,.5); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.tb__chu { font-size: 16.5px; font-weight: 600; color: var(--chu-3); white-space: nowrap; }
.tb li.la .tb__so { background: var(--vang); border-color: var(--vang); color: #fff; }
.tb li.la .tb__chu { color: var(--muc); }
.tb li.xong .tb__so { background: var(--muc); border-color: var(--muc); color: var(--kem); }
.tb li.xong .tb__chu { color: var(--chu-2); }

/* ---------- khung hai cột ---------- */
.gp__luoi { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-top: 22px; padding-bottom: 36px; }
.gp__chinh { min-width: 0; }
.gp__td { font-family: var(--serif); font-weight: 500; font-size: 43px; line-height: 1.05; }
.gp__td2 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; }
.gp__mo { font-size: 17px; color: var(--chu-3); margin: 6px 0 16px; }
.gp__phai { display: grid; gap: 14px; position: sticky; top: 20px; }
.lk { display: inline-flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 600; color: var(--vang-dam); min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.lk:hover { color: var(--vang); }

/* ---------- chọn hạng khi chưa có hạng ---------- */
.ch-ds { display: grid; gap: 14px; }
.ch { display: flex; align-items: stretch; gap: 18px; background: #fff; border: 1px solid var(--vang-vien); border-radius: var(--bo); overflow: hidden; color: var(--muc); }
.ch:hover { color: var(--muc); }
.ch img { width: 170px; height: auto; min-height: 120px; object-fit: cover; flex-shrink: 0; }
.ch__chu { flex: 1; min-width: 0; padding: 16px 0; display: flex; flex-direction: column; gap: 3px; }
.ch__chu b { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.1; }
.ch__chu small { font-size: 14.5px; color: var(--chu-2); }
.ch__gia { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--vang); margin-top: 4px; }
.ch__gia small { font-family: var(--sans); font-weight: 500; font-size: 13.5px; color: var(--chu-3); }
.ch__lydo { font-size: 14px; color: #5A4410; background: #FBF3DC; border-radius: 8px; padding: 6px 10px; margin-top: 6px; }
.ch__nut { display: flex; align-items: center; gap: 6px; padding: 0 22px; font-weight: 600; color: var(--vang-dam); white-space: nowrap; }
.ch.khong-hop img, .ch.khong-hop b, .ch.khong-hop .ch__gia { opacity: .55; }

/* ---------- thẻ và ô nhập ---------- */
.the { background: #fff; border: 1px solid var(--vang-vien); border-radius: var(--bo); padding: 20px 22px; margin-bottom: 14px; }
.the__td { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.15; margin-bottom: 4px; }
.the__mo { font-size: 15px; color: var(--chu-3); margin-bottom: 12px; }
.chon-kieu { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chon-kieu--nho { margin-top: 0; }
.chon-kieu label { position: relative; cursor: pointer; }
.chon-kieu input, .cach__o input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chon-kieu span { display: flex; align-items: center; min-height: 46px; padding: 9px 20px; border: 1px solid rgba(179,145,84,.5); border-radius: var(--bo-nut); font-size: 16px; font-weight: 600; transition: background .18s, color .18s, border-color .18s; }
.chon-kieu input:checked + span { background: var(--muc); border-color: var(--muc); color: var(--kem); }
.chon-kieu input:focus-visible + span, .cach__o input:focus-visible + .cach__than { outline: 2px solid var(--vang); outline-offset: 2px; }
.luoi-o { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 12px; }
.o { min-width: 0; }
.the > .o { margin-top: 12px; }
.o__nhan { display: block; font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.o__sao { color: var(--do); }
.nhap { display: block; width: 100%; min-height: 50px; background: var(--kem-am); border: 1px solid var(--vang-mo); border-radius: var(--bo-nut); padding: 12px 15px; font-size: 16px; outline: none; transition: border-color .18s, box-shadow .18s; }
textarea.nhap { resize: vertical; line-height: 1.55; }
.nhap:focus { border-color: var(--vang); box-shadow: 0 0 0 3px var(--vang-nen); }
.nhap.sai { border-color: var(--do); background: var(--do-nen); }
.nhap::placeholder { color: var(--chu-mo); }
.o__gy { font-size: 14px; color: var(--chu-3); margin-top: 6px; }
.o__loi { font-size: 14.5px; font-weight: 600; color: var(--do-chu); margin-top: 6px; line-height: 1.45; }
.o__loi--khoi { margin-top: 14px; background: var(--do-nen); border: 1px solid var(--do); border-radius: var(--bo-nut); padding: 12px 14px; }
.gp__ghi { font-size: 15px; color: var(--chu-2); background: var(--kem-sang); border-radius: var(--bo-nut); padding: 12px 14px; margin-top: 16px; line-height: 1.55; }
.gp__ghi a { font-weight: 600; white-space: nowrap; }
.dat-cho { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; font-size: 16px; }
.bay { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.the--mo summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; min-height: 44px; }
.the--mo summary::-webkit-details-marker { display: none; }
.the--mo summary .the__td { margin: 0; }
.the--mo summary .ic { width: 22px; height: 22px; color: var(--vang); transition: transform .2s ease; }
.the--mo[open] summary .ic { transform: rotate(45deg); }
.the--mo .the__mo { margin: 10px 0 0; }
.gp__tiep { width: 100%; padding: 14px; font-size: 18px; min-height: 54px; }
.gp__tiep:disabled { opacity: .6; cursor: progress; }
.gp__duoi { text-align: center; font-size: 14.5px; color: var(--chu-3); margin-top: 14px; }
.gp__duoi a { font-weight: 600; }

/* ---------- bước 2 ---------- */
.tom { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--kem-sang); border-radius: var(--bo-nut); padding: 12px 16px; margin-bottom: 14px; }
.tom small { display: block; font-size: 13px; color: var(--chu-3); }
.tom b { font-size: 16px; overflow-wrap: anywhere; }
.cach { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.cach__o { position: relative; cursor: pointer; display: block; }
.cach__than { display: block; height: 100%; border: 1.5px solid var(--vang-mo); border-radius: 16px; padding: 20px; transition: border-color .18s, background .18s, box-shadow .18s; }
.cach__than .ic { width: 28px; height: 28px; color: var(--vang); }
.cach__than b { display: block; font-size: 18px; margin: 10px 0 6px; line-height: 1.3; }
.cach__than small { display: block; font-size: 15px; color: var(--chu-2); line-height: 1.55; }
.cach__o input:checked + .cach__than { border-color: var(--vang); background: var(--kem-sang); box-shadow: 0 0 0 3px var(--vang-nen); }

/* ---------- bước 3 ---------- */
.xn__dau { display: flex; gap: 16px; align-items: flex-start; }
.xn__ic { width: 52px; height: 52px; border-radius: 50%; background: #E6F0E7; color: var(--xanh-ok); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.xn__ic .ic { width: 28px; height: 28px; }
.xn__ic--vang { background: #FBF3DC; color: #9A7B14; }
.xn__dau .the__td:focus { outline: none; }
.xn__ma { font-size: 17px; margin-top: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.xn__ma b { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.chep { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--vang-mo); border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--vang-dam); vertical-align: middle; }
.chep:hover { background: var(--kem-sang); }
.xn__chua { margin-top: 14px; }
.xn__chua b { font-size: 17px; }
.xn__chua p { margin: 6px 0 14px; }
.xn__nut { display: flex; flex-wrap: wrap; gap: 10px; }
.xn__nut > * { min-height: 48px; padding: 12px 18px; font-size: 16px; white-space: normal; }
.xn__qr { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--vang-vien); }
.xn__qr-anh { background: #fff; border: 1px solid var(--vang-mo); border-radius: 16px; padding: 10px; min-height: 200px; }
.xn__qr-anh img { width: 100%; height: auto; }
.xn__td3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.xn__dl > div { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 44px; border-bottom: 1px solid rgba(179,145,84,.25); }
.xn__dl dt { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--chu-3); white-space: nowrap; }
.xn__dl dt .ic { width: 15px; height: 15px; color: var(--vang); }
.xn__dl dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15.5px; min-width: 0; }
.xn__dl dd > :first-child { min-width: 0; overflow-wrap: anywhere; }
.xn__dl .chep { min-height: 38px; padding: 6px 12px; flex-shrink: 0; }
.xn__nd { white-space: nowrap; overflow-x: auto; font-size: 14.5px; scrollbar-width: thin; overflow-wrap: normal !important; }
.xn__tien { font-family: var(--serif); font-size: 28px; color: var(--vang); }
.xn__ghi { font-size: 14.5px; color: var(--chu-2); margin-top: 12px; line-height: 1.55; }
.xn__hen { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; background: var(--kem-sang); border-radius: 14px; padding: 16px 18px; font-size: 16px; line-height: 1.6; }
.xn__hen .ic { width: 24px; height: 24px; color: var(--vang); margin-top: 2px; }
.xn__chan { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--vang-vien); }
.xn__chan p { font-size: 15.5px; color: var(--chu-2); margin-bottom: 14px; }

/* ---------- thẻ đơn và chính sách (cột phải) ---------- */
.don { background: #fff; border: 1px solid rgba(179,145,84,.35); border-radius: var(--bo); overflow: hidden; }
.don__dau { background: var(--kem-dam); padding: 14px 20px; font-size: 15px; font-weight: 700; letter-spacing: .06em; color: var(--vang-dam); display: flex; align-items: center; gap: 8px; }
.don__than { padding: 16px 20px; }
.don__ks { display: flex; gap: 14px; margin-bottom: 12px; }
.don__ks img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.don__ten { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.1; }
.don__ks small { display: block; font-size: 14px; color: var(--chu-3); margin-top: 4px; line-height: 1.45; }
.don__ngay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--vang-vien); padding-top: 16px; }
.don__ngay dt { font-size: 13px; color: var(--chu-3); letter-spacing: .04em; }
.don__ngay dd { font-size: 16px; font-weight: 600; line-height: 1.35; }
.don__phong { border-top: 1px solid var(--vang-vien); margin-top: 14px; padding-top: 14px; font-size: 15.5px; }
.don__nguoi { display: flex; align-items: center; gap: 8px; color: var(--chu-2); margin-bottom: 6px; }
.don__hang a { margin-left: 8px; font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 8px 0; }
.don__tien { border-top: 2px solid var(--muc); margin-top: 12px; padding-top: 12px; transition: opacity .2s; }
.don__tien.mo { opacity: .3; }
.don__tien > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.don__tien dt { font-size: 15px; color: var(--chu-2); }
.don__tien dd { font-size: 15.5px; font-weight: 600; text-align: right; }
.don__tong dt small { display: block; font-size: 13px; color: var(--chu-3); }
.don__tong dd { font-family: var(--serif); font-size: 28px; color: var(--vang); white-space: nowrap; }
.don__coc { border-top: 1px dashed rgba(179,145,84,.4); margin-top: 6px; padding-top: 10px !important; }
.don__ghi { font-size: 14px; color: var(--chu-2); margin-top: 12px; line-height: 1.5; }
.don__ghi--loi { color: var(--do-chu); background: var(--do-nen); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.cs { background: #fff; border: 1px solid rgba(179,145,84,.35); border-radius: var(--bo); padding: 16px 20px; }
.cs__td { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.cs__ds { display: grid; gap: 7px; }
.cs__o { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.cs__o li { display: flex; gap: 9px; align-items: center; min-width: 0; }
.cs__o .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--kem); color: var(--vang-dam); }
.cs__o span { display: block; min-width: 0; line-height: 1.25; }
.cs__o small { display: block; font-size: 13px; color: var(--chu-3); }
.cs__o b { display: block; font-size: 14.5px; font-weight: 600; color: var(--muc); }
.cs__them { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(179,145,84,.25); font-size: 14px; font-weight: 600; }
.cs__them a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.cs__them .ic { width: 14px; height: 14px; }
.cs__ds li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--chu-2); line-height: 1.5; }
.cs__ds .ic { width: 16px; height: 16px; color: var(--vang); margin-top: 4px; }

/* =====================================================================
   MÀN HÌNH NHỎ: thẻ đơn nằm trên form ở dạng gọn, chính sách xuống dưới form
   ===================================================================== */
@media (max-width: 900px) {
  .gp__luoi { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 14px; padding-bottom: 28px; }
  .gp__phai { display: contents; }
  .don { order: 1; }
  .gp__chinh { order: 2; }
  .cs { order: 3; }
  .gp[data-buoc-nay="3"] .don { order: 3; }
  .don__dau { padding: 10px 16px; font-size: 13.5px; }
  .don__than { padding: 14px 16px; }
  .don__ks { margin-bottom: 12px; }
  .don__ks img { width: 56px; height: 56px; }
  .don__ks small { display: none; }
  .don__ten { font-size: 20px; align-self: center; }
  .don__ks > div { display: flex; }
  .don__ngay { padding-top: 12px; }
  .don__phong { margin-top: 10px; padding-top: 10px; }
  .don__tien [data-don-dong] { display: none; }
  .don__tong dd { font-size: 25px; }
}
@media (max-width: 768px) {
  .tb ol { gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .tb li { gap: 8px; }
  .tb__chu { font-size: 14px; }
  .tb li:not(.la) .tb__chu { display: none; }
  .gp__td { font-size: 32px; }
  .gp__td2 { font-size: 26px; }
  .gp__mo { font-size: 16px; margin-bottom: 12px; }
  .the { padding: 16px 16px; }
  .luoi-o, .cach { grid-template-columns: minmax(0, 1fr); }
  .ch { gap: 14px; flex-wrap: wrap; }
  .ch img { width: 110px; min-height: 96px; }
  .ch__chu { padding: 12px 12px 12px 0; }
  .ch__nut { flex-basis: 100%; justify-content: center; min-height: 46px; border-top: 1px solid var(--vang-vien); }
  .xn__dau { gap: 12px; }
  .xn__ic { width: 44px; height: 44px; }
  .xn__qr { grid-template-columns: minmax(0, 1fr); }
  .xn__qr-anh { max-width: 280px; margin: 0 auto; }
  .xn__nut > * { flex: 1 1 100%; }
  .xn__dl > div { grid-template-columns: 112px minmax(0, 1fr); }
}

/* ---------- đợt 2: hội viên Sol Rewards, ưu đãi, gửi lại ---------- */
.tv-dong { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; background: var(--kem-dam); border: 1px solid var(--vang-mo); border-radius: var(--bo-nut); padding: 6px 16px; margin-bottom: 14px; font-size: 15.5px; color: #3A362F; }
.tv-dong--la { background: #EEF4EE; border-color: rgba(75,122,82,.45); padding: 13px 16px; font-weight: 600; color: #2F5236; }
.don__giam dt, .don__giam dd { color: var(--xanh-ok); font-weight: 600; }
.xn__giam { margin-top: 14px; background: #EEF4EE; border-radius: var(--bo-nut); padding: 12px 16px; font-size: 16px; font-weight: 600; color: #2F5236; }
.xn__tv { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 15.5px; color: var(--chu-2); line-height: 1.6; }
.xn__tv .ic { width: 22px; height: 22px; color: var(--vang); margin-top: 2px; }
.xn__tv a { font-weight: 600; white-space: nowrap; }
.xn__lai-loi { font-weight: 600; color: var(--do-chu); }

/* ---------- đợt 4: nút sang trang xác nhận ---------- */
.xn__tiep { display: grid; justify-items: center; gap: 4px; margin-top: 16px; }
.xn__chinh { width: 100%; min-height: 54px; font-size: 17.5px; }
.xn__sau { font-size: 15px; }
.xn__qr { align-items: center; }
