/* ==========================================================================
   Trang Anh AI — Design System & Stylesheet (Optimized for Core Web Vitals)
   ========================================================================== */

:root {
  --primary: #0866FF;
  --primary-hover: #0552CC;
  --primary-active: #033E9E;
  --primary-light: #F0F6FF;
  --primary-border: #CBD5E1;
  --accent-gold: #FFD54A;
  --accent-amber: #F59E0B;
  --accent-green: #22C55E;
  --accent-teal: #0D9488;
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --text-light: #D5DEEE;
  --bg-body: #FFFFFF;
  --bg-slate: #F8FAFC;
  --bg-blue-tint: #F0F6FF;
  --bg-dark: #0F1B33;
  --border-light: #EEF0F5;
  --border-dark: #24406F;
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-primary: 0 18px 40px rgba(8, 102, 255, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

svg {
  flex-shrink: 0;
}

a {
  color: var(--primary-hover);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--primary-active);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
header.site-header {
  border-bottom: 1px solid var(--border-light);
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease;
}

header.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}

.nav-desktop a {
  color: var(--text-body);
  position: relative;
  padding: 4px 0;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.cta-desktop {
  background: var(--primary);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 6px 16px rgba(8, 102, 255, 0.2);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-desktop:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 102, 255, 0.3);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary-hover);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: #E1EDFF;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 24px;
  gap: 6px;
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
}

.nav-mobile.open {
  display: flex;
  animation: mobileMenuSlide 0.25s ease-out;
}

.nav-mobile a {
  color: var(--text-main);
  font-size: 17px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
}

.nav-mobile a.cta-mobile {
  margin-top: 10px;
  background: var(--primary);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  text-align: center;
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Hero Section Custom Tuning & Proportions
   -------------------------------------------------------------------------- */
#top h1 {
  font-size: clamp(34px, 5.2vw, 62px) !important;
  line-height: 1.08 !important;
}

.hero-visual {
  position: relative;
  padding: 32px 0 32px 32px;
}

.hero-visual img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 5 / 4 !important;
  object-fit: cover !important;
  object-position: 68% center !important;
  border-radius: 28px !important;
  border: 4px solid #FFFFFF !important;
  box-sizing: border-box !important;
  box-shadow: 0 30px 60px rgba(2, 32, 92, 0.3) !important;
}

.hero-float {
  max-width: 90%;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes mobileMenuSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  100% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes marqueeRev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes dash {
  to { background-position: 40px 0; }
}

@keyframes fill {
  0% { width: 0; }
  85%, 100% { width: 100%; }
}

@keyframes stepOn {
  0%, 100% { border-color: #E2E8F0; background: #FFFFFF; }
  6%, 22% { border-color: #0866FF; background: #F0F6FF; }
}

@keyframes m1 {
  0%, 4% { opacity: 0; transform: translateY(10px); }
  9%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

@keyframes m2 {
  0%, 24% { opacity: 0; transform: translateY(10px); }
  29%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

@keyframes m3 {
  0%, 42% { opacity: 0; transform: translateY(10px); }
  47%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

@keyframes m4 {
  0%, 62% { opacity: 0; transform: translateY(10px); }
  67%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

@keyframes typingDots {
  0%, 11% { opacity: 0; }
  13%, 23% { opacity: 1; }
  24%, 49% { opacity: 0; }
  51%, 61% { opacity: 1; }
  62%, 100% { opacity: 0; }
}

@keyframes blink {
  50% { opacity: 0.25; }
}

@keyframes type {
  0%, 5% { width: 0; }
  45%, 95% { width: 100%; }
  100% { width: 100%; }
}

@keyframes caret {
  50% { border-color: transparent; }
}

@keyframes res {
  0%, 48% { opacity: 0; transform: translateY(8px); }
  55%, 95% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

@keyframes fab {
  0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(0, 104, 255, 0); }
}

@keyframes wave {
  0%, 100% { transform: rotate(-28deg); }
  50% { transform: rotate(8deg); }
}

@keyframes eyeBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.1); }
}

@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); }
}

/* --------------------------------------------------------------------------
   Interactive & Animation Utility Classes
   -------------------------------------------------------------------------- */
.reveal {
  animation: rise 0.8s ease both;
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

.float {
  animation: float 5s ease-in-out infinite;
}

.live {
  animation: pulse 1.6s ease-out infinite;
}

.lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.lift:hover, button.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(8, 102, 255, 0.16);
}

.zalo-fab {
  animation: fab 1.8s ease-out infinite;
  transition: transform 0.2s ease;
}

.zalo-fab:hover {
  transform: translateY(-3px) scale(1.03);
}

.m-wave {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: wave 2.2s ease-in-out infinite;
}

.m-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: eyeBlink 4s infinite;
}

.m-glow {
  animation: blink 1.4s ease-in-out infinite;
}

.play {
  animation: playPulse 1.8s ease-out infinite;
}

.marquee {
  animation: marquee 38s linear infinite;
  will-change: transform;
}

.marquee-rev {
  animation: marqueeRev 38s linear infinite;
  will-change: transform;
}

.track:hover .marquee,
.track:hover .marquee-rev {
  animation-play-state: paused;
}

.flow {
  background-image: linear-gradient(90deg, #0866FF 50%, transparent 50%);
  background-size: 20px 3px;
  background-repeat: repeat-x;
  animation: dash 1s linear infinite;
}

.bar {
  animation: fill 6s ease-in-out infinite;
}

.step {
  animation: stepOn 6s ease-in-out infinite;
}

.m1 { animation: m1 12s ease infinite; }
.m2 { animation: m2 12s ease infinite; }
.m3 { animation: m3 12s ease infinite; }
.m4 { animation: m4 12s ease infinite; }

.typing {
  animation: typingDots 12s linear infinite;
}

.typing span {
  animation: blink 1s ease-in-out infinite;
}

.typed {
  animation: type 7s steps(42) infinite, caret 0.8s step-end infinite;
}

.res {
  animation: res 7s ease infinite;
}

/* --------------------------------------------------------------------------
   FAQ Details & Accordion Enhancements
   -------------------------------------------------------------------------- */
details {
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px 22px;
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

details[open] {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(8, 102, 255, 0.08);
}

details summary {
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

details p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Form UI Styling & Feedback
   -------------------------------------------------------------------------- */
.form-input, .form-select {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  color: #0F172A;
  font-family: inherit;
  min-height: 48px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 102, 255, 0.15);
  background: #FFFFFF;
}

.form-submit-btn {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  min-height: 50px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.form-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.form-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-success-alert {
  display: none;
  padding: 16px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 12px;
  color: #065F46;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 12px;
}

.form-success-alert.show {
  display: block;
  animation: rise 0.4s ease;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-desktop,
  .cta-desktop {
    display: none !important;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-visual {
    padding: 24px 0 24px 16px !important;
  }
}

@media (max-width: 640px) {
  #top > div {
    padding: 48px 16px 36px !important;
    gap: 36px !important;
  }
  .hero-visual {
    padding: 0 !important;
  }
  .hero-float {
    position: static !important;
    margin-top: 12px !important;
    animation: none !important;
    width: 100% !important;
  }
  .header-container {
    padding: 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Marketing Office Interactive Section (#marketing)
   -------------------------------------------------------------------------- */
#marketing {
  --mkt-card: #FFFFFF;
  --mkt-ink: #0F1B33;
  --mkt-mut: #5B6B85;
  --mkt-line: #D6E2F2;
  --mkt-blue: #1769E0;
  --mkt-tint: #EAF2FE;
  --mkt-ok: #0F7A55;
  color: var(--mkt-ink);
}

#marketing * {
  min-width: 0;
}

.mkt-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px;
}

.mkt-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 72ch;
  margin-bottom: 24px;
}

.mkt-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0F766E;
}

.mkt-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.mkt-lede {
  color: var(--mkt-mut);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.mkt-steps {
  background: var(--mkt-card);
  border-radius: 18px;
  padding: 18px 18px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.mkt-steps h3 {
  font-size: 17px;
  margin: 0 0 12px;
  font-weight: 700;
}

.mkt-track {
  height: 6px;
  border-radius: 6px;
  background: var(--mkt-line);
  margin-bottom: 12px;
  overflow: hidden;
}

.mkt-track i {
  display: block;
  height: 100%;
  background: var(--mkt-blue);
  width: 0;
  transition: width 0.6s;
}

.mkt-sl {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mkt-sl button {
  width: 100%;
  height: 100%;
  min-height: 72px;
  text-align: left;
  font: inherit;
  color: var(--mkt-ink);
  background: var(--mkt-tint);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.mkt-sl button:hover {
  border-color: var(--mkt-line);
}

.mkt-sl button.on {
  border-color: var(--mkt-blue);
  background: var(--mkt-card);
  box-shadow: 0 4px 14px rgba(23, 105, 224, 0.15);
}

.mkt-sl button.done {
  opacity: 0.75;
}

.mkt-sl b {
  display: block;
  color: var(--mkt-blue);
  font-size: 13px;
}

.mkt-sl span {
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.mkt-sl em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--mkt-ok);
  font-weight: 600;
}

#marketing button:focus-visible {
  outline: 3px solid var(--mkt-blue);
  outline-offset: 2px;
}

.mkt-main {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.mkt-scene {
  background: var(--mkt-card);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.mkt-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #DDE7F2;
}

.mkt-stage canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  image-rendering: pixelated;
  cursor: pointer;
}

.mkt-ov {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mkt-bub {
  position: absolute;
  display: none;
  transform: translate(-50%, calc(-100% - 6px));
  background: #FFFFFF;
  color: #0F1B33;
  border: 2px solid var(--c);
  border-radius: 4px;
  box-shadow: 3px 3px 0 rgba(15, 27, 51, 0.25);
  font-size: 13px;
  line-height: 1.35;
  padding: 5px 8px;
  width: max-content;
  max-width: min(230px, 46%);
}

.mkt-bub b {
  display: block;
  color: var(--c);
  font-size: 13px;
}

.mkt-bub.on {
  display: block;
}

.mkt-bub.l {
  transform: translate(-14px, calc(-100% - 6px));
}

.mkt-bub.r {
  transform: translate(calc(-100% + 14px), calc(-100% - 6px));
}

.mkt-tag {
  position: absolute;
  display: none;
  transform: translate(-50%, -100%);
  background: #0F1B33;
  color: #FFFFFF;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.mkt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 12px 6px 4px;
}

.mkt-btn {
  font: 600 15px/1 var(--font-sans);
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 2px solid var(--mkt-blue);
  background: var(--mkt-blue);
  color: #FFFFFF;
  cursor: pointer;
}

.mkt-btn.g {
  background: transparent;
  color: var(--mkt-blue);
}

.mkt-clock {
  font-weight: 800;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mkt-stats {
  color: var(--mkt-mut);
  font-size: 14px;
  margin-left: auto;
}

.mkt-chat {
  background: var(--mkt-card);
  border-radius: 18px;
  position: relative;
  min-height: 420px;
  box-shadow: var(--shadow-sm);
}

.mkt-ch {
  padding: 14px 16px;
  border-bottom: 1px solid var(--mkt-line);
}

.mkt-ch b {
  display: block;
}

.mkt-ch small {
  color: var(--mkt-mut);
  font-size: 13px;
}

.mkt-log {
  position: absolute;
  inset: 66px 0 0;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mkt-msg {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.mkt-av {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--c);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13px;
  font-style: normal;
  display: grid;
  place-items: center;
}

.mkt-mb {
  background: var(--mkt-tint);
  border-radius: 4px 12px 12px 12px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.45;
}

.mkt-mb p {
  margin: 0;
}

.mkt-meta {
  font-size: 13px;
  color: var(--mkt-mut);
}

.mkt-meta b {
  color: var(--c);
}

.mkt-msg.me {
  flex-direction: row-reverse;
}

.mkt-msg.me .mb-fix,
.mkt-msg.me .mkt-mb {
  background: var(--mkt-blue);
  color: #FFFFFF;
  border-radius: 12px 4px 12px 12px;
}

.mkt-msg.me .mkt-meta,
.mkt-msg.me .mkt-meta b {
  color: #DBEAFE;
}

.mkt-msg.cu .mkt-mb {
  background: #FFF7E6;
  border: 1px dashed #F0B44C;
}

.mkt-sys {
  text-align: center;
  font-size: 13px;
  color: var(--mkt-mut);
  font-weight: 600;
}

.mkt-ap {
  border: 2px solid var(--mkt-blue);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--mkt-card);
}

.mkt-ap p {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 15px;
}

.mkt-ap ul {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 14px;
}

.mkt-ap .mkt-bs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mkt-ap .mkt-btn {
  min-height: 40px;
  font-size: 14px;
}

.mkt-ap .mkt-pg {
  height: 4px;
  background: var(--mkt-line);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.mkt-ap .mkt-pg i {
  display: block;
  height: 100%;
  background: var(--mkt-blue);
  width: 0;
}

.mkt-ap small {
  display: block;
  color: var(--mkt-mut);
  font-size: 13px;
  margin-top: 4px;
}

.mkt-ap.ok {
  border-color: var(--mkt-ok);
}

.mkt-ap .mkt-res {
  font-weight: 600;
  color: var(--mkt-ok);
  font-size: 14px;
}

.mkt-team {
  margin-top: 22px;
}

.mkt-team h3 {
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 800;
}

.mkt-team > p {
  color: var(--mkt-mut);
  margin: 0 0 14px;
}

.mkt-tg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.mkt-tc {
  display: flex;
  gap: 10px;
  text-align: left;
  font: inherit;
  color: var(--mkt-ink);
  background: var(--mkt-card);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.mkt-tc.sel {
  border-color: var(--c);
}

.mkt-tc b {
  display: block;
  font-size: 15px;
}

.mkt-tc span {
  display: block;
  font-size: 13px;
  color: var(--mkt-mut);
}

.mkt-st {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c);
}

.mkt-st.w::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c);
  margin-right: 6px;
  animation: mkt-bl 1s steps(2) infinite;
}

@keyframes mkt-bl {
  50% { opacity: 0.2; }
}

.mkt-note {
  color: var(--mkt-mut);
  font-size: 13px;
  margin: 18px 0 0;
}

@media (max-width: 900px) {
  .mkt-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .mkt-chat {
    height: 400px;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .mkt-wrap {
    padding: 64px 16px;
  }
  .mkt-sl {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .mkt-sl li {
    flex: none;
    width: 132px;
    scroll-snap-align: start;
  }
  .mkt-stats {
    margin-left: 0;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Legal Office Dark Theme Overrides (#phap-ly)
   -------------------------------------------------------------------------- */
#phap-ly {
  --mkt-card: #17284A;
  --mkt-ink: #F8FAFC;
  --mkt-mut: #9FB0C9;
  --mkt-line: #24406F;
  --mkt-blue: #3B82F6;
  --mkt-tint: #1E335C;
  --mkt-ok: #4ADE80;
}

#phap-ly * {
  min-width: 0;
}

#phap-ly .mkt-steps,
#phap-ly .mkt-scene,
#phap-ly .mkt-chat,
#phap-ly .mkt-tc {
  border: 1px solid #24406F;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

#phap-ly .mkt-stage {
  background: #172645;
}

#phap-ly .mkt-sl button.on {
  background: #0F1B33;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

#phap-ly .mkt-msg.cu .mkt-mb {
  background: #33270F;
  border-color: #A77A2A;
  color: #FEF3C7;
}

#phap-ly .mkt-btn.g {
  color: #93C5FD;
}

#phap-ly button:focus-visible {
  outline: 3px solid #60A5FA;
  outline-offset: 2px;
}

.law-office-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.law-office-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 72ch;
}

.law-office-head h3 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
}

.law-office-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #D5DEEE;
}

/* --------------------------------------------------------------------------
   Multi-Department Office Switcher Tabs (#marketing)
   -------------------------------------------------------------------------- */
.office-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.office-tab {
  font: 700 14px/1.2 var(--font-sans, 'Be Vietnam Pro', system-ui, sans-serif);
  color: #1E3A8A;
  background: #FFFFFF;
  border: 1px solid #C7DAFF;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.office-tab:hover {
  border-color: var(--primary, #0866FF);
  color: var(--primary, #0866FF);
}

.office-tab.is-active {
  background: var(--primary, #0866FF);
  border-color: var(--primary, #0866FF);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(8, 102, 255, 0.22);
}

@media (max-width: 760px) {
  .office-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .office-tab {
    flex: 0 0 auto;
  }
}

/* --------------------------------------------------------------------------
   Agent Directory by Department (#danh-sach-agent)
   -------------------------------------------------------------------------- */
.agent-dir-sec {
  background: #FFFFFF;
  border-bottom: 1px solid #EEF0F5;
}

.agent-dir-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 76px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.agent-dir-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 72ch;
}

.agent-dir-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0552CC;
}

.agent-dir-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0F172A;
}

.agent-dir-head p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #475569;
}

.agent-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.agent-dir-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-dir-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent-dir-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
}

.agent-dir-top a {
  font-size: 14px;
  font-weight: 700;
  color: #0552CC;
  text-decoration: none;
}

.agent-dir-top a:hover {
  text-decoration: underline;
}

.agent-dir-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
}

.agent-dir-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
}

.agent-dir-list li strong {
  color: #0F172A;
}

.agent-dir-owner {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid #E2E8F0;
  font-size: 13px;
  color: #0F766E;
}
