/* =========================================================
   Tours Booking â€” Premium Checkout UI (App-like)
   ========================================================= */

:root{
  --tb-ink:#0b1220;
  --tb-muted:rgba(11,18,32,.62);
  --tb-line:rgba(15,23,42,.12);
  --tb-card:#ffffff;
  --tb-radius:18px;
  --tb-shadow:0 22px 70px rgba(2,6,23,.10);
  --tb-accent:#0ea5e9;
  --tb-accent2:#22c55e;
  --tb-bg1:rgba(14,165,233,.08);
  --tb-bg2:rgba(99,102,241,.06);
}

.tbWrap{
  max-width:980px;
  margin:18px auto;
  padding:0 12px;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

.tbCard{
  border:1px solid var(--tb-line);
  border-radius:var(--tb-radius);
  box-shadow:var(--tb-shadow);
  background:linear-gradient(180deg,var(--tb-bg1),transparent 40%), var(--tb-card);
  overflow:hidden;
}

.tbHead{
  display:flex;
  gap:16px;
  justify-content:space-between;
  align-items:flex-start;
  padding:18px 18px 12px;
  background:radial-gradient(1200px 380px at 10% 0%, rgba(14,165,233,.14), transparent 55%),
             radial-gradient(900px 340px at 90% 0%, rgba(99,102,241,.10), transparent 55%);
  border-bottom:1px solid rgba(15,23,42,.08);
}

.tbKicker{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--tb-muted);
  margin-bottom:6px
}

.tbTitle{
  margin:0;
  font-size:20px;
  line-height:1.2;
  color:var(--tb-ink)
}

.tbMeta{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:8px;
  font-size:13px;
  color:rgba(11,18,32,.72)
}

.tbPriceTag{
  min-width:190px;
  text-align:right;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(15,23,42,.10);
  backdrop-filter:saturate(140%) blur(10px);
}

.tbPriceLabel{font-size:12px;color:var(--tb-muted)}
.tbPriceVal{font-size:24px;font-weight:900;color:var(--tb-ink);margin-top:2px}
.tbPriceSub{margin-top:6px;font-size:12px;color:rgba(11,18,32,.70)}

.tbForm{padding:14px 18px 18px}

.tbStatusGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  font-size:14px;
  color:rgba(11,18,32,.78)
}
.tbStatusGrid span{color:var(--tb-muted)}

.tbGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}

.tbRow{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:12px
}

.tbRow label{font-size:13px;font-weight:800;color:rgba(11,18,32,.86)}
.tbRow input,.tbRow select,.tbRow textarea{
  border:1px solid rgba(15,23,42,.16);
  border-radius:14px;
  padding:12px 12px;
  font-size:14px;
  outline:none;
  background:#fff;
  transition:box-shadow .15s ease,border-color .15s ease,transform .15s ease
}
.tbRow input:focus,.tbRow select:focus,.tbRow textarea:focus{
  border-color:rgba(14,165,233,.55);
  box-shadow:0 0 0 5px rgba(14,165,233,.14);
}

.tbSection{
  margin-top:16px;
  padding:14px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  background:rgba(255,255,255,.85);
}

.tbSectionTitle{
  font-size:13px;
  font-weight:900;
  color:rgba(11,18,32,.88);
  margin-bottom:10px;
  letter-spacing:.02em;
}

.tbTiny{margin-top:10px;font-size:12px;color:rgba(11,18,32,.62)}

.tbGateway{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
}

.tbGwBtn{
  appearance:none;
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  border-radius:16px;
  padding:12px 12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  box-shadow:0 10px 24px rgba(2,6,23,.06);
  transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease;
}
.tbGwBtn:hover{transform:translateY(-1px)}
.tbGwBtn.isActive{
  border-color:rgba(14,165,233,.55);
  box-shadow:0 0 0 4px rgba(14,165,233,.12), 0 18px 40px rgba(2,6,23,.10);
}
.tbGwName{font-size:14px;font-weight:900;color:rgba(11,18,32,.88)}
.tbGwPill{
  font-size:11px;
  font-weight:800;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.22);
  color:rgba(20,83,45,1);
}

.tbCouponRow{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
}
.tbCouponRow input{
  border:1px dashed rgba(15,23,42,.22);
  border-radius:14px;
  padding:12px 12px;
  font-size:14px;
  outline:none;
}
.tbCouponInfo{
  margin-top:10px;
  font-size:12px;
  color:rgba(11,18,32,.70);
}
.tbCouponInfo.isOk{color:rgba(20,83,45,1)}
.tbCouponInfo.isErr{color:rgba(127,29,29,1)}

.tbActions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:16px
}

.tbBtn{
  appearance:none;
  border:0;
  border-radius:16px;
  padding:13px 18px;
  font-weight:900;
  background:linear-gradient(135deg,#0ea5e9,#0284c7);
  color:#fff;
  cursor:pointer;
  box-shadow:0 18px 46px rgba(14,165,233,.28);
  transition:transform .12s ease,filter .12s ease;
}
.tbBtn:hover{filter:brightness(.98);transform:translateY(-1px)}

.tbBtnAlt{
  appearance:none;
  border:1px solid rgba(15,23,42,.14);
  border-radius:14px;
  padding:11px 14px;
  font-weight:900;
  background:rgba(255,255,255,.9);
  cursor:pointer;
}

.tbHint{font-size:12px;color:rgba(11,18,32,.62)}

.tbMsg{
  margin-top:12px;
  font-size:13px;
  padding:10px 12px;
  border-radius:14px;
  display:none
}
.tbMsg.ok{display:block;background:rgba(34,197,94,.10);color:rgba(20,83,45,1);border:1px solid rgba(34,197,94,.20)}
.tbMsg.err{display:block;background:rgba(239,68,68,.10);color:rgba(127,29,29,1);border:1px solid rgba(239,68,68,.20)}

.tbNotice{
  max-width:980px;
  margin:12px auto;
  padding:12px 14px;
  border:1px dashed rgba(15,23,42,.25);
  border-radius:14px;
  background:#fff;
  color:rgba(11,18,32,.78)
}

.tbStatusWrap{
  max-width:860px;
  margin:20px auto;
  padding:0 12px;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial
}
.tbStatusCard{
  border:1px solid var(--tb-line);
  border-radius:var(--tb-radius);
  box-shadow:var(--tb-shadow);
  background:#fff;
  padding:18px
}
.tbStatusTitle{margin:0 0 10px;font-size:22px;color:var(--tb-ink)}

.tbBadge{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;font-size:13px}
.tbBadge-paid{background:rgba(34,197,94,.12);color:rgba(20,83,45,1);border:1px solid rgba(34,197,94,.22)}
.tbBadge-pending{background:rgba(245,158,11,.12);color:rgba(120,53,15,1);border:1px solid rgba(245,158,11,.22)}
.tbBadge-failed{background:rgba(239,68,68,.12);color:rgba(127,29,29,1);border:1px solid rgba(239,68,68,.22)}

.tbNote{margin-top:12px;font-size:13px;color:rgba(11,18,32,.72)}

/* Mobile â€” app-like */
@media (max-width:720px){
  .tbHead{flex-direction:column;align-items:flex-start}
  .tbPriceTag{text-align:left; width:100%}
  .tbGrid{grid-template-columns:1fr}
  .tbStatusGrid{grid-template-columns:1fr}
  .tbGateway{grid-template-columns:1fr}
  .tbActions{
    position:sticky;
    bottom:0;
    background:rgba(255,255,255,.92);
    border-top:1px solid rgba(15,23,42,.08);
    padding:12px 0;
    margin-top:18px;
    backdrop-filter:saturate(160%) blur(12px);
  }
  .tbBtn{width:100%; justify-content:center}
  .tbHint{width:100%}
}