/* ── Khách Đoàn & Sự Kiện (B2B lead-gen) page ──
   Hallmark · redesign (in-place) · pre-emit critique: P4 H4 E4 S4 R5 V4
   Kept: dark trust-hero + proof row, editorial case rows, 3-step rail form.
   This pass ties the page to the site system — lat/long grid texture and
   ruler-tick eyebrow (manifesto devices), proper display section titles
   (the old .pt-section-title class came from a stylesheet this page never
   loads, so the h2s rendered unstyled), warmer form states. */

/* ── Hero — deep-ocean banner. `.ce-hero` is still the sticky-CTA
   observer target in B2BRequestWizard. ── */
.ce-hero {
  position: relative;
  margin-top: 68px;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
  background: linear-gradient(135deg, #102F50 0%, #1D5D82 62%, #2B7CB8 100%);
  color: #fff;
  overflow: hidden;
}
/* Dashed waypoint rings — the site's route motif, decorative only */
.ce-hero::before, .ce-hero::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,0.22);
  pointer-events: none;
}
.ce-hero::before { width: 460px; height: 460px; right: -120px; top: -200px; }
.ce-hero::after { width: 280px; height: 280px; right: 22%; bottom: -170px; }
.ce-hero-copy, .ce-stats { position: relative; z-index: 1; }
.ce-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #9CD8FF; margin-bottom: 1rem;
}
.ce-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 14ch;
  margin: 0;
  text-wrap: balance;
}
.ce-hero-sub {
  margin-top: 1.1rem; max-width: 46ch;
  font-size: 1.02rem; line-height: 1.7; color: rgba(255,255,255,0.82);
}
.ce-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.ce-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.7rem 1.5rem; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ce-btn:hover { transform: translateY(-2px); }
.ce-btn:focus-visible { outline: 2px solid #9CD8FF; outline-offset: 3px; }
.ce-btn--primary { background: var(--sun); color: #fff; box-shadow: 0 10px 22px -10px rgba(239,123,69,0.7); }
.ce-btn--primary:hover { background: #E06A33; }
.ce-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.ce-btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.ce-btn--ghost-dark { color: var(--ink); border-color: var(--border); background: #fff; }
.ce-btn--ghost-dark:hover { border-color: var(--ochre); color: var(--ochre); }

.ce-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  margin: 0; background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 14px; overflow: hidden;
  backdrop-filter: blur(6px);
}
.ce-stat { display: flex; flex-direction: column-reverse; gap: 0.35rem; padding: 1.4rem 1rem; background: rgba(16,47,80,0.55); text-align: center; }
.ce-stat dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.ce-stat dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: #fff; line-height: 1; }

/* ── Section titles — the display voice the landing sections use.
   (Previously .pt-section-title, defined only in package-tours.css, which
   this page doesn't load — the headings rendered as bare browser h2s.) */
.ce-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* ── Main band — case-study grid on the left, quote form pinned on the
   right so the proof (past events) and the ask (quote) read together. ── */
.ce-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 32vw, 420px);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 8vw, 7rem) clamp(4rem, 6vw, 5.5rem);
}

/* ── Case studies — responsive card grid: 1 col mobile (<768), 2 tablet
   (768–1023), 3 laptop (1024–1279), 4 desktop (≥1280). Each card is a
   bordered surface (not just bare photo+text) so a row of cards reads as
   a grid even when descriptions/titles run different lengths — CSS grid
   row-stretch plus a flexed card body keeps every card in a row the same
   height without JS. ── */
.ce-cases { min-width: 0; }
.ce-case-empty { color: var(--muted); font-size: 0.95rem; }
.ce-case-track {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

  .ce-case-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }


@media (min-width: 1024px){
  .ce-case-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px){
  .ce-case-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Type filter chips ── */
.ce-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.ce-filter {
  min-height: 40px; padding: 0.5rem 1.15rem; border-radius: 999px;
  border: 1.5px solid var(--border); background: #fff; color: var(--muted);
  font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ce-filter:hover { border-color: var(--ochre); color: var(--ochre); }
.ce-filter:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.ce-filter.is-active { background: var(--ochre); border-color: var(--ochre); color: #fff; }
.ce-case-card[hidden] { display: none; }

.ce-case-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.ce-case-card:hover {
  box-shadow: 0 4px 10px rgba(18,54,66,0.06), 0 18px 32px rgba(18,54,66,0.1);
  transform: translateY(-3px);
}
.ce-case-img {
  position: relative;
  width: 100%; aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}
/* Always rendered behind the <img> — shows through when the event has no
   imageUrl, and also when the img fails to load and the shared
   [data-hide-on-error] handler (Nav.tsx) hides it. */
.ce-case-img-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1D5D82, #2B7CB8);
  color: rgba(255,255,255,0.55);
}
.ce-case-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(16,47,80,0.35));
}
.ce-case-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.ce-case-card:hover .ce-case-img img { transform: scale(1.04); }

.ce-case-body {
  padding: 1.1rem 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  flex: 1;
}
.ce-case-tag {
  align-self: flex-start; padding: 0.2rem 0.65rem; border-radius: 999px;
  background: rgba(239,123,69,0.12);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #B8501F;
}
.ce-case-title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ce-case-desc {
  color: var(--muted); font-size: 0.9rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ce-case-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: auto; padding-top: 0.4rem;
  font-size: 0.82rem; font-weight: 600; color: var(--ochre);
}
.ce-case-cta svg { transition: transform 0.2s ease; }
.ce-case-card:hover .ce-case-cta svg { transform: translateX(3px); }
.ce-case-card:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

/* First event is featured — spans two columns, image fills the card height */
@media (min-width: 768px){
  .ce-case-card--feature { grid-column: span 2; }
  .ce-case-card--feature .ce-case-img { flex: 1; aspect-ratio: auto; min-height: 240px; }
  .ce-case-card--feature .ce-case-title { font-size: 1.4rem; }
  .ce-case-card--feature .ce-case-desc { -webkit-line-clamp: 3; }
}

/* ── CTA band under the case grid ── */
.ce-cta-band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1.25rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border); border-left: 4px solid var(--ochre); border-radius: 14px;
  background: linear-gradient(135deg, rgba(43,124,184,0.08), #fff 70%);
}
.ce-cta-title { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.ce-cta-sub { margin-top: 0.35rem; color: var(--muted); font-size: 0.92rem; }
.ce-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.ce-main { grid-template-columns: 1fr; }

/* ── B2B request wizard — 5 steps, step nav left / content right on
   desktop, compact sticky header on mobile. A full-width section of its
   own (not the old case-track sidebar) since the field count is now large. ── */
.ce-wizard-section {
  padding: 0 clamp(2rem, 8vw, 7rem) clamp(4rem, 6vw, 5.5rem);
}
.ce-wizard-mobile-header {
  display: none;
}
.ce-wizard-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.ce-step-nav {
  position: sticky;
  top: 84px;
  border-right: 1px solid var(--border);
  padding-right: 1.5rem;
}
.ce-step-nav-progress {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem;
}
.ce-step-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.ce-step-nav-item {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--muted);
}
.ce-step-nav-num {
  font-family: var(--font-info); font-size: 0.78rem; font-weight: 700;
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.ce-step-nav-label { font-size: 0.86rem; font-weight: 600; transition: color 0.25s; }
.ce-step-nav-item.is-active .ce-step-nav-num { border-color: var(--ochre); color: var(--ochre); }
.ce-step-nav-item.is-active .ce-step-nav-label { color: var(--ink); }
.ce-step-nav-item.is-done .ce-step-nav-num { background: var(--ochre); border-color: var(--ochre); color: #fff; }
.ce-step-nav-item.is-done .ce-step-nav-label { color: var(--ink); }

.ce-wizard-content { min-width: 0; }

.ce-panel-title {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  color: var(--ink); margin: 1.75rem 0 0.85rem;
}
.ce-panel-title:first-child { margin-top: 0; }
.ce-panel-subtitle { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin: 1.25rem 0 0.5rem; }

.ce-field-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem;
}
.ce-field-grid-agenda { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ce-radio-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.35rem; }
.ce-radio, .ce-checkbox {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 500; color: var(--ink); cursor: pointer;
}
.ce-checkbox { margin-top: 0.5rem; }

.ce-chip-group { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.5rem 0 1rem; }
.ce-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 999px; border: 1.5px solid var(--border);
  font-size: 0.82rem; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ce-chip input { accent-color: var(--ochre); }
.ce-chip:has(input:checked) {
  border-color: var(--ochre); color: var(--ink); background: rgba(217,119,6,0.08);
}

.ce-agenda-item, .ce-reference-item {
  border: 1px solid var(--border); border-radius: 10px; padding: 1rem; margin-bottom: 0.85rem;
  background: rgba(18,54,66,0.02);
}
.ce-add-btn, .ce-remove-btn {
  border: 1.5px dashed var(--border); background: transparent; color: var(--ink);
  border-radius: 8px; padding: 0.5rem 1rem; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.ce-add-btn { margin-bottom: 1rem; }
.ce-remove-btn { border-style: solid; border-color: var(--border); color: var(--muted); margin-top: 0.5rem; }
.ce-remove-btn:hover { border-color: #c62828; color: #c62828; }

.ce-hint { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.75rem; }
.ce-attachment-uploader { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1rem; }
.ce-attachment-uploader select, .ce-attachment-uploader input[type="file"] {
  padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; font: inherit;
}
.ce-attachment-uploader button {
  padding: 0.55rem 1.1rem; border: none; border-radius: 999px; background: var(--ochre);
  color: #fff; font-weight: 600; font-size: 0.82rem; cursor: pointer; font-family: inherit;
}
.ce-attachment-uploader button:disabled { opacity: 0.5; cursor: default; }
.ce-attachment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ce-attachment-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.6rem 0.85rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem;
}

.ce-budget-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; }
.ce-budget-label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.ce-budget-row .ce-budget-alloc { width: 90px; padding: 0.45rem 0.6rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; text-align: right; }
.ce-budget-total { font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-top: 0.5rem; }
.ce-budget-total.is-over { color: #c62828; }

.ce-success-screen { text-align: center; padding: 3rem 1rem; }
.ce-success-screen h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.75rem; color: var(--ink); }
.ce-success-cta {
  display: inline-block; margin-top: 1.25rem; padding: 0.7rem 1.75rem; border-radius: 999px;
  background: var(--ochre); color: #fff; font-weight: 600; text-decoration: none;
}

@media (max-width: 900px){
  .ce-hero { grid-template-columns: 1fr; }
}
@media (max-width: 1024px){
  .ce-wizard-layout { grid-template-columns: 1fr; }
  .ce-step-nav { display: none; }
  .ce-wizard-mobile-header {
    display: flex; align-items: center; gap: 0.75rem;
    position: sticky; top: 60px; z-index: 20;
    background: var(--cream); padding: 0.75rem 1rem; margin-bottom: 1rem;
    border-radius: 10px; border: 1px solid var(--border);
  }
  .ce-wizard-mobile-step {
    font-family: var(--font-info); font-weight: 700; font-size: 0.85rem;
    color: #fff; background: var(--ochre); border-radius: 999px; padding: 0.2rem 0.65rem;
  }
  .ce-wizard-mobile-label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
  .ce-panel-actions {
    position: sticky; bottom: 0; background: var(--cream);
    padding: 0.85rem 0; margin-top: 1.25rem; border-top: 1px solid var(--border);
  }
}

.ce-progress {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
.ce-progress-step {
  display: flex; align-items: center; gap: 0.5rem;
  min-width: 0;
}
/* Dashed connector between steps — the site's route language */
.ce-progress-step:not(:first-child)::before {
  content: ''; flex: 0 0 clamp(16px, 4vw, 40px); height: 0;
  border-top: 1.5px dashed var(--border);
  margin-right: 0.75rem;
}
.ce-progress-marker {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-info); font-size: 0.85rem; font-weight: 600;
  background: transparent; color: var(--muted); border: 1.5px solid var(--border);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.ce-progress-label {
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.3s;
}
.ce-progress-step.is-active .ce-progress-marker { border-color: var(--ochre); color: var(--ochre); }
.ce-progress-step.is-active .ce-progress-label { color: var(--ink); }
.ce-progress-step.is-done .ce-progress-marker { background: var(--ochre); border-color: var(--ochre); color: #fff; }

.ce-panel { display: none; }
.ce-panel.is-active { display: block; animation: ce-rise 0.35s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes ce-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ce-panel .field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.ce-panel label { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.ce-panel .optional { font-weight: 400; text-transform: none; letter-spacing: 0; }
.ce-panel input, .ce-panel select, .ce-panel textarea {
  padding: 0.65rem 0.85rem; border: 1px solid rgba(18,54,66,0.18); border-radius: 8px;
  font: inherit; resize: vertical;
  background: #FDFEFF; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ce-panel input:focus, .ce-panel select:focus, .ce-panel textarea:focus {
  outline: none;
  border-color: var(--ochre);
  box-shadow: 0 0 0 3px rgba(43,124,184,0.14);
}
.ce-panel input.is-invalid, .ce-panel select.is-invalid, .ce-panel textarea.is-invalid {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198,40,40,0.12);
}
.ce-panel-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem;
  margin-top: 1.25rem;
}
.ce-panel-actions button {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1.5rem; border: none; border-radius: 999px; cursor: pointer;
  background: var(--ochre); color: #fff; font-weight: 600; font-size: 0.88rem;
  font-family: inherit;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s, color 0.25s;
}
.ce-panel-actions button:hover {
  background: var(--rust);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(29,93,130,0.5);
}
.ce-panel-actions button:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.ce-panel-actions .ce-back {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
.ce-panel-actions .ce-back:hover {
  background: transparent; color: var(--ink); border-color: var(--ink);
  box-shadow: none;
}
.ce-form-status { margin-top: 1.25rem; font-size: 0.85rem; }
.ce-form-status.is-success { color: #2e7d32; }
.ce-form-status.is-error { color: #c62828; }

@media (prefers-reduced-motion: reduce){
  .ce-panel.is-active { animation: none; }
  .ce-case-img img, .ce-case-card, .ce-btn { transition: none; }
  .ce-case-card:hover, .ce-btn:hover { transform: none; }
}

/* ── Sticky booking CTA — appears once the hero scrolls out of view,
   hides again once the real form scrolls into view. z-index 450 sits
   under the fixed .nav (z-index 500). ── */
.ce-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 130%);
  z-index: 450;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem 0.85rem 1.4rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(18,54,66,0.28);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.ce-sticky-cta.is-visible { transform: translate(-50%, 0); }
.ce-sticky-cta-text {
  font-family: var(--font-info);
  font-size: 0.85rem;
  white-space: nowrap;
}
.ce-sticky-cta-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.ce-sticky-cta-btn:hover { background: #fff; transform: translateY(-1px); }
.ce-sticky-cta-btn:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
