:root {
  --brand-orange: #f5a623;
  --brand-orange-dark: #e08e00;
  --brand-green: #219a4c;
  --brand-green-dark: #197a3c;
  --brand-navy: #17335c;
  --brand-dark: #232323;
  --brand-light: #f7f8fa;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 80px;
  font-family: "Segoe UI", "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--brand-dark);
  background: #fff;
}

a {
  text-decoration: none;
}

/* ===== Brand buttons ===== */
.btn-brand-orange {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
  font-weight: 600;
}
.btn-brand-orange:hover {
  background-color: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
  color: #fff;
}

.btn-brand-green {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
  font-weight: 700;
}
.btn-brand-green:hover {
  background-color: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
  color: #fff;
}

.text-brand-orange { color: var(--brand-orange); }
.text-brand-green { color: var(--brand-green); }
.text-brand-navy { color: var(--brand-navy); }

/* ===== Top bar ===== */
.topbar {
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 0;
}
.topbar a { color: #fff; opacity: 0.9; }
.topbar a:hover { opacity: 1; }

/* ===== Navbar ===== */
.site-navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 10px 0;
}
.site-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-navy);
}
.site-navbar .brand-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ===== Brand lockup (biểu tượng vuông bo góc + "Taxi" / "Bắc Ninh" xếp 2 dòng) ===== */
.brand-lockup {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}
.brand-lockup-badge {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #ffd94d, var(--brand-orange, #f5a623));
  box-shadow: 0 2px 6px rgba(245, 166, 35, .35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.brand-lockup-badge .brand-lockup-pin {
  color: var(--brand-navy);
  font-size: .8rem;
  line-height: 1;
  margin-bottom: -1px;
}
.brand-lockup-badge .brand-lockup-car {
  color: var(--brand-navy);
  font-size: 1.3rem;
  line-height: 1;
}
.brand-lockup-text {
  display: flex;
  flex-direction: column;
}
.brand-lockup-main {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .5px;
  color: var(--brand-orange);
  text-transform: uppercase;
}
.brand-lockup-suffix {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--brand-navy);
  text-transform: uppercase;
  margin-top: -3px;
  white-space: nowrap;
}
.brand-lockup--on-dark .brand-lockup-suffix {
  color: #fff;
}
.site-navbar .nav-link {
  font-weight: 600;
  color: var(--brand-dark) !important;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--brand-orange) !important;
}

.site-navbar .navbar-toggler {
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: var(--brand-navy);
  font-size: 1.4rem;
  line-height: 1;
}
.site-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(245, 166, 35, .35);
}
.site-navbar .navbar-collapse {
  background: #fff;
}
@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
  }
  .site-navbar .navbar-nav {
    gap: 4px;
  }
}

/* ===== Hero ===== */
.hero-section {
  background: linear-gradient(135deg, #123064 0%, #1d4d92 45%, #2f6fc4 100%);
  color: #fff;
  padding: 48px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(245,166,35,.25), transparent 55%);
  pointer-events: none;
}
.hero-section .hero-content { position: relative; z-index: 1; }
.hero-section.has-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-section.has-bg-image::after {
  background: linear-gradient(135deg, rgba(10,20,40,.75) 0%, rgba(10,20,40,.55) 45%, rgba(10,20,40,.35) 100%);
}
.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
}
.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffd98a;
}
.hero-feature-list { list-style: none; padding: 0; margin: 18px 0 0; }
.hero-feature-list li {
  padding: 6px 0;
  font-weight: 500;
}
.hero-feature-list li::before {
  content: "\2299";
  margin-right: 8px;
  color: var(--brand-orange);
}

.hero-carousel {
  padding-bottom: 40px;
}
.hero-carousel .carousel-inner {
  min-height: 260px;
}
.hero-carousel .carousel-item {
  transition-duration: .6s;
}
.hero-carousel-indicators {
  position: absolute;
  bottom: 0;
  left: 0;
  justify-content: flex-start;
  margin: 0;
}
.hero-carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,.4);
  border: none;
  margin-right: 8px;
  opacity: 1;
}
.hero-carousel-indicators [data-bs-target].active {
  background-color: var(--brand-orange);
  width: 26px;
  border-radius: 6px;
}
@media (max-width: 767.98px) {
  .hero-carousel .carousel-inner { min-height: 300px; }
}

/* ===== Booking card ===== */
.booking-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0,0,0,.25);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.booking-card-header {
  background: var(--brand-orange);
  color: #fff;
  text-align: center;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 14px;
}
.booking-card-body {
  padding: 22px;
  color: var(--brand-dark);
}
.booking-card label {
  font-weight: 600;
  font-size: 0.9rem;
}
.booking-card .input-group-text {
  background: var(--brand-light);
}

/* ===== Value props ===== */
.value-props { padding: 56px 0; }
.value-props h2 {
  text-align: center;
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 40px;
}
.value-props h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--brand-orange);
}
.value-prop-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2.2rem;
  color: var(--brand-green);
}
.value-prop-item { text-align: center; }
.value-prop-item h5 { font-weight: 800; }

/* ===== Pending rides (driver) ===== */
.pending-rides-section { background: var(--brand-light); padding: 40px 0; position: relative; }
.pending-rides-section.has-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.pending-rides-section.has-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, .6);
}
.pending-rides-section.has-bg-image > .container { position: relative; z-index: 1; }
.pending-rides-section.has-bg-image h2 { color: #fff; }
.ride-card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow .15s;
  color: var(--brand-dark);
}
.ride-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.ride-card .badge-pending { background: var(--brand-orange); }

/* ===== Latest posts ===== */
.post-card { border: none; }
.post-card img { border-radius: 10px 10px 0 0; height: 180px; object-fit: cover; }
.post-card .card-title { font-weight: 700; }

/* ===== Floating contact buttons ===== */
.floating-contacts {
  position: fixed;
  left: 16px;
  bottom: 90px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floating-contacts a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.floating-contacts .zalo-btn { background: #0068ff; }
.floating-contacts .phone-btn { background: #e02020; animation: pulse 1.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224,32,32,.5); }
  70% { box-shadow: 0 0 0 12px rgba(224,32,32,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,32,32,0); }
}

/* ===== Chat widget ===== */
.chat-widget-toggle {
  position: fixed;
  right: 16px;
  bottom: 90px;
  z-index: 1040;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.chat-widget-panel {
  position: fixed;
  right: 16px;
  bottom: 156px;
  z-index: 1050;
  width: 320px;
  max-width: calc(100vw - 32px);
  height: 420px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-widget-panel.open { display: flex; }
.chat-widget-header {
  background: var(--brand-navy);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-widget-tabs { display: flex; border-bottom: 1px solid #eee; flex-shrink: 0; }
.chat-tab-btn {
  flex: 1;
  border: none;
  background: #fff;
  padding: 8px 4px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--brand-dark, #333);
  border-bottom: 2px solid transparent;
}
.chat-tab-btn.active { color: var(--brand-orange); border-bottom-color: var(--brand-orange); }
.chat-widget-body { flex: 1; overflow-y: auto; padding: 10px; background: var(--brand-light); }
.chat-message { max-width: 80%; padding: 8px 12px; border-radius: 12px; margin-bottom: 8px; font-size: .9rem; }
.chat-message.mine { background: var(--brand-orange); color: #fff; margin-left: auto; }
.chat-message.theirs { background: #fff; border: 1px solid #e2e2e2; }
.chat-message .chat-message-sender { display: block; font-size: .72rem; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.chat-widget-footer { padding: 10px; border-top: 1px solid #eee; display: flex; gap: 8px; }

/* ===== Mobile bottom nav ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1030;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
}
.mobile-bottom-nav .row { margin: 0; }
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  color: var(--brand-dark);
  font-size: 0.7rem;
  gap: 2px;
}
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover { color: var(--brand-orange); }
.mobile-bottom-nav i { font-size: 1.2rem; }

@media (max-width: 767.98px) {
  .mobile-bottom-nav { display: block; }
  body { margin-bottom: 70px; }
  .hero-title { font-size: 1.5rem; }
  .hero-section { padding: 28px 0 60px; }
  .floating-contacts { bottom: 80px; left: 10px; }
  .chat-widget-toggle { bottom: 80px; }
  .chat-widget-panel { bottom: 148px; right: 10px; width: calc(100vw - 20px); }
}

footer.site-footer {
  background: var(--brand-navy);
  color: #cfd9ea;
  padding: 30px 0;
  margin-top: 40px;
}
footer.site-footer a { color: #fff; }

.pagination-rounded {
  gap: 8px;
}
.pagination-rounded .page-item {
  margin: 0;
}
.pagination-rounded .page-link {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #e3e5e8;
  color: var(--brand-dark);
  background-color: #fff;
  font-weight: 600;
  padding: 0 10px;
}
.pagination-rounded .page-link:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background-color: #fff;
}
.pagination-rounded .page-item.active .page-link {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}
.pagination-rounded .page-item.disabled .page-link {
  color: #c7cad0;
  border-color: #eceef1;
  background-color: #fff;
}
