/* =========================================================
   Đặt Xe Pro Theme — Main stylesheet
   ========================================================= */

:root {
  --bg: #0b1220;
  --bg-soft: #111a2e;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --accent: #22c55e;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 50px rgba(15, 23, 42, 0.18);
  --font: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  --container: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.link-cta {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}
.link-cta:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.site-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}
.custom-logo-link img { max-height: 48px; width: auto; }

.nav-list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-list a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-list a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hotline-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.hotline-pill.light {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}
.hotline-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.hotline-text { display: flex; flex-direction: column; line-height: 1.15; }
.hotline-text small { font-size: 0.68rem; color: var(--text-muted); }
.hotline-pill.light .hotline-text small { color: rgba(255,255,255,0.65); }
.hotline-text strong { font-size: 0.88rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 2.25rem 0 1.5rem;
  overflow: visible;
  background: var(--bg);
  color: #fff;
}
.hero.hero-form-vertical {
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(14,165,233,0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(99,102,241,0.25), transparent 50%),
    linear-gradient(180deg, #0b1220 0%, #0f1b33 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(34,197,94,0.15);
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(34,197,94,0.25);
}
.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  max-width: 18em;
}
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}
.hero-trust strong {
  color: #fff;
  display: block;
  font-size: 1.1rem;
}

.hero-form-wrap {
  background: #fff;
  color: var(--text);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Booking box */
.dxp-booking-box__head {
  padding: 1.25rem 1.35rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.dxp-booking-box__head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}
.dxp-booking-box__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.dxp-booking-box__body { padding: 1rem 1.15rem 1.25rem; }
.dxp-booking-placeholder {
  padding: 1.5rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface-2); }
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.75rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.1);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.service-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.service-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid var(--border);
}
.feature-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.feature h3 { margin: 0.5rem 0 0.4rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* Price table */
.price-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.price-table th,
.price-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table th {
  background: var(--surface-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: #f8fafc; }
.price-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step {
  text-align: center;
  padding: 1.5rem 1rem;
}
.step-num {
  width: 48px; height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(14,165,233,0.3);
}
.step h3 { margin: 0 0 0.4rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #0b1220, #0f2744);
  color: #fff;
  padding: 3.5rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-copy h2 { margin: 0 0 0.4rem; font-size: 1.65rem; }
.cta-copy p { margin: 0; color: rgba(255,255,255,0.75); }
.cta-copy a { color: #7dd3fc; font-weight: 600; }

/* ---------- Page ---------- */
.page-hero {
  background: var(--bg);
  color: #fff;
  padding: 2.5rem 0;
}
.page-hero h1 { margin: 0; font-size: 1.85rem; }
.page-content { max-width: 760px; }

/* Posts */
.posts-list { display: grid; gap: 1.5rem; }
.post-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.post-body { padding: 1.25rem 1.25rem 1.25rem 0; }
.post-title { margin: 0 0 0.35rem; font-size: 1.2rem; }
.post-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.post-excerpt { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #070d18;
  color: rgba(255,255,255,0.8);
  padding-top: 3.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-desc {
  margin: 1rem 0 1.25rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  max-width: 32ch;
}
.footer-widget-title,
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.footer-links a,
.footer-contact li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 0.45rem;
}
.footer-links a:hover { color: #fff; }
.footer-cta-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin: 0 0 1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.15rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-nav { display: flex; gap: 1.25rem; }
.footer-nav a:hover { color: #fff; }
.site-title.light { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .post-body { padding: 1rem 1.25rem 1.25rem; }
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hotline-pill .hotline-text small { display: none; }
}

@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 3rem; }
  .section { padding: 3.25rem 0; }
}


/* ========== Form layout: Dọc (hero) / Ngang (trong nền xanh) ========== */
.hero.hero-form-horizontal {
  padding: 1.75rem 0 1.25rem;
}
.hero.hero-form-horizontal .hero-inner {
  grid-template-columns: 1fr;
  max-width: min(1200px, 100%);
  margin: 0 auto 1rem;
  text-align: left;
  align-items: center;
}

/* Hàng ngang: badge + chữ | nút + trust */
.hero.hero-form-horizontal .hero-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  width: 100%;
}
.hero.hero-form-horizontal .hero-copy-left {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1.15rem;
  flex: 1 1 320px;
  min-width: 0;
}
.hero.hero-form-horizontal .hero-copy-left .badge {
  margin: 0.35rem 0 0;
  flex: 0 0 auto;
}
.hero.hero-form-horizontal .hero-copy-text {
  flex: 1 1 220px;
  min-width: 0;
}
.hero.hero-form-horizontal h1 {
  max-width: none;
  margin: 0 0 0.35rem;
  white-space: nowrap;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.2;
}
.hero.hero-form-horizontal .hero-lead {
  max-width: 42ch;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.hero.hero-form-horizontal .hero-copy-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  flex: 0 1 auto;
}
.hero.hero-form-horizontal .hero-actions {
  justify-content: flex-end;
  margin: 0;
  gap: 0.5rem;
}
.hero.hero-form-horizontal .hero-actions .btn-lg {
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
}
.hero.hero-form-horizontal .hero-trust {
  justify-content: flex-end;
  margin: 0;
  gap: 1rem;
}
.hero.hero-form-horizontal .hero-trust li {
  text-align: right;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.hero.hero-form-horizontal .hero-trust strong {
  display: inline;
  font-size: 1rem;
}
.hero.hero-form-horizontal .hero-trust span {
  display: inline;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* Form sát lề dưới nền xanh */
.hero-form-horizontal-wrap {
  position: relative;
  z-index: 2;
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 1rem;
}
.hero-form-horizontal-wrap .dxp-booking-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  overflow: hidden;
  margin-bottom: 0;
}
.hero-form-horizontal-wrap .dxp-booking-box__head {
  padding: 0.75rem 1.15rem 0.5rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  text-align: left;
}
.hero-form-horizontal-wrap .dxp-booking-box__head h2 {
  color: var(--text, #0f172a);
  font-size: 1.1rem;
  margin: 0 0 0.15rem;
}
.hero-form-horizontal-wrap .dxp-booking-box__head p {
  font-size: 0.82rem;
}
.hero-form-horizontal-wrap .dxp-booking-box__body {
  padding: 0.25rem 0.5rem 0.55rem;
}
.hero-form-horizontal-wrap .dxpe-embed-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
  padding: 0 !important;
  position: static !important;
}
.hero-form-horizontal-wrap iframe {
  min-height: 480px !important;
  width: 100% !important;
}

@media (max-width: 900px) {
  .hero.hero-form-horizontal h1 {
    white-space: normal;
  }
  .hero.hero-form-horizontal .hero-copy-row {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .hero.hero-form-horizontal .hero-copy-right {
    align-items: flex-start;
  }
  .hero.hero-form-horizontal .hero-actions,
  .hero.hero-form-horizontal .hero-trust {
    justify-content: flex-start;
  }
  .hero.hero-form-horizontal .hero-trust li {
    text-align: left;
  }
  .hero-form-horizontal-wrap iframe {
    min-height: 600px !important;
  }
}

/* Dọc: form trong cột phải */
.hero-form-wrap {
  min-width: 0;
}
.dxp-booking-box.dxp-layout-vertical {
  max-width: 100%;
}
.dxp-booking-box.dxp-layout-vertical .dxp-booking-box__body {
  padding: 0.5rem 0.65rem 0.85rem;
  overflow: hidden;
}
.dxp-booking-box.dxp-layout-vertical .dxpe-embed-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
  padding: 0 !important;
  position: static !important;
}
.dxp-booking-box.dxp-layout-vertical iframe {
  min-height: 820px !important;
  width: 100% !important;
}

@media (max-width: 900px) {
  .hero.hero-form-horizontal h1 {
    white-space: normal;
  }
  .hero-form-horizontal-wrap iframe {
    min-height: 640px !important;
  }
}

@media (max-width: 960px) {
  .hero.hero-form-vertical .hero-inner {
    grid-template-columns: 1fr;
  }
  .dxp-booking-box.dxp-layout-vertical iframe {
    min-height: 780px !important;
  }
}
