/* Đặt hàng nhận báo giá + đặt hàng thành công (học từ trang thanh toán Stitch, bỏ giá & thanh toán) */
.qo { padding-bottom: 48px; }
.qo-top { padding-top: 18px; padding-bottom: 6px; }
.qo-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--muted); font-weight: 600; font-size: 14px; }
.qo-back:hover { color: var(--red); }
.qo-top h1 { margin: 6px 0 6px; }
.qo-sub { color: var(--ink2); max-width: 720px; margin: 0 0 14px; line-height: 1.6; }
.qo-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.qo-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid #F0DDD8; font: 700 13.5px/1.2 var(--display); color: var(--muted); }
.qo-steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #F4ECEA; font-style: normal; }
.qo-steps li.on { color: var(--red); border-color: #F3B9AE; } .qo-steps li.on i { background: var(--grad); color: #fff; }
.qo-steps li.done i { background: #17803D; color: #fff; font-size: 0; } .qo-steps li.done i::before { content: '✓'; font-size: 14px; }

.qo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-top: 18px; }
.qo-main { display: grid; gap: 16px; min-width: 0; }
.qo-card { background: #fff; border: 1px solid #EFE1DC; border-radius: 20px; padding: clamp(16px, 2.4vw, 24px); box-shadow: 0 8px 24px -6px rgba(23,23,28,.06); }
.qo-card h3 { margin: 0 0 14px; font-size: 18px; } .qo-card h3 small { font: 500 13px var(--font); color: var(--muted); }

.qo-prod { display: flex; gap: 16px; align-items: center; }
.qo-prod img { width: 120px; height: 120px; object-fit: contain; border-radius: 16px; background: #fff; border: 1px solid #F3E6E2; flex: none; }
.qo-prod-in { min-width: 0; display: grid; gap: 6px; }
.qo-tag { justify-self: start; font: 700 11.5px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #8a6400; background: #FBF2D8; padding: 5px 9px; border-radius: 999px; }
.qo-prod h2 { margin: 0; font-size: 18px !important; line-height: 1.35 !important; }
.qo-price { margin: 0; color: var(--ink2); font-size: 14px; } .qo-price b { color: var(--red); }
.qo-qty { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.qo-qty span { margin-right: 6px; }
.qo-qty button { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid #EFD5CE; background: #fff; font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer; }
.qo-qty input { width: 52px; height: 40px; text-align: center; border: 1.5px solid #EFD5CE; border-radius: 12px; font: 700 16px var(--display); -moz-appearance: textfield; }
.qo-qty input::-webkit-inner-spin-button, .qo-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.qo-gift { background: linear-gradient(135deg, #FFF8EC, #FFFDF7); border-color: #F6E1B4; }
.qo-gift h3 { color: #8a5a00; }
.qo-gift ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.qo-gift li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; }
.qo-gift li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #F3D58A; color: #6b4a00; font-size: 11px; font-weight: 900; display: grid; place-items: center; }

.qo-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.qo-seg label { position: relative; cursor: pointer; }
.qo-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qo-seg span { display: grid; gap: 2px; min-height: 64px; padding: 12px 14px 12px 42px; border: 1.5px solid #EFD5CE; border-radius: 16px; background: #FFFCFB; transition: border-color .2s, background .2s, box-shadow .2s; }
.qo-seg span::before { content: ''; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid #D9B8B0; background: #fff; }
.qo-seg b { font: 700 15px/1.3 var(--display); } .qo-seg small { color: var(--muted); font-size: 12.5px; }
.qo-seg input:checked + span { border-color: var(--red); background: #FFF3F0; box-shadow: 0 0 0 3px rgba(225,27,34,.1); }
.qo-seg input:checked + span::before { border-color: var(--red); background: radial-gradient(circle, var(--red) 0 45%, #fff 50%); }
.qo-seg input:focus-visible + span { outline: 3px solid rgba(225,27,34,.35); outline-offset: 2px; }
.qo-fields, .qo-home { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qo-home { grid-column: 1 / -1; } .qo-home[hidden], .qo-shw[hidden] { display: none; }
.qo-shw { grid-column: 1 / -1; display: grid; }
.qo-fields .bk-wide, .qo-note { grid-column: 1 / -1; }
.qo .bk-f small { font-weight: 500; color: var(--muted); }
.qo textarea { min-height: 84px; }

.qo-side { position: sticky; top: 130px; display: grid; gap: 14px; }
.qo-sum h3 { margin-bottom: 10px; }
.qo-sum dl { margin: 0 0 14px; display: grid; gap: 10px; }
.qo-sum dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.qo-sum dt { color: var(--ink2); min-width: 0; } .qo-sum dd { margin: 0; font-weight: 700; text-align: right; white-space: nowrap; }
.qo-sum dd.free { color: #17803D; }
.qo-total { border-top: 1px dashed #EAD5CF; padding-top: 10px; } .qo-total dt { font-weight: 700; color: var(--ink); } .qo-total dd { font: 800 20px/1 var(--display); color: var(--red); }
.qo-submit { width: 100%; min-height: 54px; }
.qo .form-msg { margin: 10px 0 0; font-size: 14px; } .qo .form-msg:empty { display: none; } .qo .form-msg.err { color: var(--red); }
.qo-safe { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.qo-trust { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 9px; background: var(--red-xl); border-radius: 18px; }
.qo-trust li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--ink2); line-height: 1.45; }
.qo-trust li span { position: absolute; left: 0; top: 0; color: #17803D; font-weight: 900; }
.qo-help { margin: 0; font-size: 14px; color: var(--ink2); text-align: center; } .qo-help a { color: var(--red); }

/* Thành công */
.qo-done { padding-top: 28px; max-width: 760px; }
.qo-ok { text-align: center; }
.qo-ok-ic { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: #17803D; color: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 900; animation: qoPop .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes qoPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .qo-ok-ic { animation: none; } }
.qo-ok h1 { margin: 0 0 8px; }
.qo-code { color: var(--red); letter-spacing: .04em; }
.qo-ok .qo-steps { justify-content: center; margin: 14px 0 18px; }
.qo-dl { text-align: left; margin: 0 0 18px; display: grid; gap: 0; border: 1px solid #F0E1DC; border-radius: 16px; overflow: hidden; }
.qo-dl > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 11px 14px; border-top: 1px solid #F5E9E6; font-size: 14.5px; }
.qo-dl > div:first-child { border-top: 0; }
.qo-dl dt { color: var(--muted); font-weight: 600; } .qo-dl dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.qo-dl a { color: var(--red); font-weight: 700; }
.qo-act { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.qo-act .btn { min-height: 48px; }

@media (max-width: 960px) {
  .qo-grid { grid-template-columns: minmax(0, 1fr); }
  .qo-side { position: static; }
}
@media (max-width: 560px) {
  .qo-prod { align-items: flex-start; }
  .qo-prod img { width: 88px; height: 88px; }
  .qo-prod { gap: 12px; }
  .qo-qty { flex-wrap: wrap; } .qo-qty span { flex-basis: 100%; margin: 0; }
  .qo-seg, .qo-fields, .qo-home { grid-template-columns: minmax(0, 1fr); }
  .qo-steps li { font-size: 12.5px; padding-right: 10px; }
  .qo-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .qo-act .btn { width: 100%; }
}
