:root{
  --c:#111;
  --muted:#6b7280;
  --blue:#2f6fa5;
  --card:#f3f0df;
  --shadow:0 10px 30px rgba(0,0,0,.12);
}

*{box-sizing:border-box}
a{text-decoration:none}

.taxi-topbar{
  background:#fff;
  border-bottom:1px solid #eee;
  position:sticky;
  top:0;
  z-index:60;
}
.taxi-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:64px;
}
.taxi-brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--c);
}
.taxi-logo{width:38px;height:38px;object-fit:contain}
.taxi-brand-text{letter-spacing:.4px}

.taxi-nav{
  display:flex;
  gap:18px;
  font-size:12.5px;
  font-weight:800;
  color:#1f2937;
}
.taxi-nav a{
  color:#1f2937;
  padding:8px 0;
  border-bottom:2px solid transparent;
}
.taxi-nav a.active,.taxi-nav a:hover{border-bottom-color:#111827}

.taxi-hero{position:relative;min-height:420px}
.taxi-hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}
.taxi-hero-inner{
  position:relative;
  display:flex;
  align-items:center;
  min-height:420px;
}
.taxi-hero-spacer{flex:1}

.taxi-card{
  width:360px;
  background:var(--card);
  border:1px solid rgba(0,0,0,.06);
  box-shadow:var(--shadow);
  border-radius:4px;
}
.taxi-card-body{padding:14px}

.taxi-field{margin-bottom:12px}
.taxi-field label{
  display:block;
  font-size:12px;
  font-weight:900;
  margin-bottom:6px;
}

.taxi-field input{
  width:100%;
  height:40px;
  padding:0 12px;
  border:1px solid #d1d5db;
  background:#fff;
  border-radius:4px;
  outline:none;
}
.taxi-field input:focus{
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,111,165,.18);
}

.taxi-input-wrap{position:relative}
.taxi-icon-btn{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  height:28px;
  width:34px;
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:4px;
  cursor:pointer;
}
.taxi-btn{
  width:100%;
  height:44px;
  border:none;
  background:var(--blue);
  color:#fff;
  font-weight:900;
  border-radius:4px;
  cursor:pointer;
}
.taxi-btn:hover{filter:brightness(.95)}

.taxi-promo{
  margin-top:12px;
  background:#fff6d6;
  border:1px dashed #d97706;
  color:#c2410c;
  padding:10px 10px;
  font-size:14px;
  text-align:center;
  font-weight:900;
  text-decoration: underline;
}

.taxi-result{
  display:none;
  margin-top:10px;
  padding:10px;
  background:#fff;
  border:1px solid #e5e7eb;
  font-size:13px;
}

/* ✅ Dropdown gợi ý */
.taxi-suggest{position:relative}
.taxi-suggest .box{
  position:absolute;
  left:0; right:0;
  top:6px;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
  max-height:240px;
  overflow:auto;
  z-index:9999;
  border-radius:6px;
}
.taxi-suggest .item{
  padding:10px 12px;
  cursor:pointer;
  font-size:15px;
  border-bottom:1px solid #f3f4f6;
  display:flex;
  gap:8px;
  align-items:center;
}
.taxi-suggest .item:hover{background:#f9fafb}
.taxi-suggest .item.current{
  font-weight:900;
}

.taxi-about{background:#f6f6f6;padding:30px 0}
.taxi-about h2{margin:0 0 10px;font-size:30px;font-weight:900}
.taxi-about p{margin:0;color:var(--muted);line-height:1.7;font-size:18px}
.taxi-call{
  display:inline-block;
  margin-top:12px;
  background:#f6b21a;
  color:#111;
  padding:12px 16px;
  font-weight:900;
  border-radius:999px;
}

.taxi-title{text-align:center;margin:34px 0 10px;font-size:28px;font-weight:900}
.taxi-sub{text-align:center;margin:0 0 22px;color:var(--muted)}

.taxi-grid2{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.taxi-box{text-align:center;padding:10px 12px}
.taxi-ico{
  width:64px;height:64px;
  border:1px solid #e5e7eb;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 10px;
}
.taxi-box h3{margin:10px 0 8px;font-size:18px}
.taxi-box p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}

.taxi-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:18px}
.taxi-post{border:1px solid #eee;background:#fff}
.taxi-post img{width:100%;height:180px;object-fit:cover;display:block}
.taxi-post h4{margin:12px 12px 6px;font-size:14px}
.taxi-post p{margin:0 12px 14px;font-size:12.5px;color:var(--muted)}

.taxi-footer{background:#0b0f14;color:#e5e7eb;padding:22px 0;margin-top:10px}
.taxi-footer-inner{display:flex;justify-content:space-between}

.taxi-float-call,.taxi-float-zalo{
  position:fixed;
  bottom:16px;
  z-index:100;
  box-shadow:var(--shadow);
  border-radius:999px;
  padding:10px 12px;
  font-weight:900;
}
.taxi-float-call{
  left:16px;
  background:#fff;
  border:1px solid #e5e7eb;
  color:#111;
}
.taxi-float-zalo{
  right:16px;
  background:#0ea5e9;
  color:#fff;
}

@media (max-width: 980px){
  .taxi-nav{display:none}
  .taxi-hero-inner{justify-content:center}
  .taxi-hero-spacer{display:none}
  .taxi-card{width:min(520px, 100%)}
  .taxi-grid2{grid-template-columns:1fr}
  .taxi-grid3{grid-template-columns:1fr}
}

/* ===== FIX iOS Safari zoom & vỡ layout khi focus input ===== */
html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.taxi-card, .taxi-card *{
  -webkit-text-size-adjust: 100%;
}

/* iOS sẽ auto-zoom nếu font input < 16px */
.taxi-field input,
.taxi-field select,
.taxi-field textarea{
  font-size: 16px !important;
  line-height: 1.2;
}

/* Tránh input bị nở ngang + vỡ khung */
.taxi-card{
  max-width: 100%;
}
.taxi-card-body{
  max-width: 100%;
}
.taxi-input-wrap{
  max-width: 100%;
}
.taxi-field input{
  width: 100%;
  max-width: 100%;
}

/* Dropdown gợi ý không làm bung layout */
.taxi-suggest .box{
  max-width: 100%;
}

/* Mobile: card sát lề đẹp hơn, không tràn */
@media (max-width: 980px){
  .taxi-hero-inner{
    padding-left: 12px;
    padding-right: 12px;
  }
  .taxi-card{
    width: 100%;
  }
}

.taxi-field select{
  width:100%;
  height:40px;
  padding:0 12px;
  border:1px solid #d1d5db;
  background:#fff;
  border-radius:4px;
  outline:none;
  font-size:16px; /* tránh iOS zoom */
}
