/* ── 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 — centered title only. `.ce-hero` is still the sticky-CTA
   observer target in B2BRequestWizard. ── */
.ce-hero {
  position: relative;
  margin-top: 68px;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 6vw, 5rem);
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.ce-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 24ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* ── 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;
}
@media (min-width: 768px) {
  .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)); }
}

.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, var(--sand), #fdfaf5);
  color: rgba(18,54,66,0.22);
}
.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 {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sun);
}
.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;
}
@media (max-width: 767px) {
  /* More vertical room on a single mobile column — 3 lines instead of 2. */
  .ce-case-desc { -webkit-line-clamp: 3; }
}
.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-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)); }
@media (max-width: 560px) {
  .ce-field-grid, .ce-field-grid-agenda { grid-template-columns: 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: 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 (max-width: 720px) {
  .ce-case-card { flex-basis: clamp(200px, 64vw, 260px); }
  /* Labels crowd at narrow widths — markers alone carry the progress */
  .ce-progress { gap: 0.5rem; }
  .ce-progress-step:not(.is-active) .ce-progress-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ce-panel.is-active { animation: none; }
  .ce-case-img img { transition: 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; }

@media (max-width: 600px) {
  .ce-sticky-cta {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    transform: translateY(130%);
    width: auto;
    justify-content: space-between;
  }
  .ce-sticky-cta.is-visible { transform: translateY(0); }
  .ce-sticky-cta-text { display: none; }
}
