/* ── 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 — dark, trust-building; pairs with the site's dark footer ──
   Team-building banner sits behind an ink scrim: solid on the left where
   the headline lives, opening up toward the top-right so the colorful
   collage reads through, and darkening again at the bottom for the
   proof row. */
.ce-hero {
  position: relative;
  overflow: hidden;
  margin-top: 68px;
  padding: clamp(4rem, 8vw, 6.5rem) clamp(2rem, 8vw, 7rem) clamp(2.5rem, 5vw, 3.75rem);
  background:
    linear-gradient(0deg, rgba(18,54,66,0.78) 0%, rgba(18,54,66,0.25) 45%, rgba(18,54,66,0.05) 100%),
    linear-gradient(95deg, rgba(18,54,66,0.85) 0%, rgba(18,54,66,0.78) 30%, rgba(18,54,66,0.4) 58%, rgba(18,54,66,0.08) 100%),
    url('/photo/teambuilding001122.jpg') center 30% / cover no-repeat,
    var(--ink);
  color: var(--cream);
}
/* Lat/long grid — the manifesto's navigational texture, inverted for dark */
.ce-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.07;
  background-image:
    repeating-linear-gradient(0deg, rgba(244,250,253,0.7) 0px, transparent 1px, transparent 46px),
    repeating-linear-gradient(90deg, rgba(244,250,253,0.7) 0px, transparent 1px, transparent 68px);
  background-size: 68px 46px;
}
.ce-hero > * { position: relative; }
.ce-hero-eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--sun); margin-bottom: 1.25rem;
  padding-left: 3.2rem;
}
/* Ruler tick — echoes the manifesto label's device */
.ce-hero-eyebrow::before {
  content: ''; position: absolute; left: 0; top: 0.5em;
  width: 2.4rem; height: 1px; background: var(--sun);
}
.ce-hero h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400;
  letter-spacing: -0.02em; margin-bottom: 1rem;
}
.ce-hero p { color: rgba(244,250,253,0.88); line-height: 1.7; max-width: 52ch; }

.ce-proof {
  display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(244,250,253,0.14);
}
.ce-proof-value {
  font-family: var(--font-info); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600;
  color: var(--cream); letter-spacing: -0.01em; line-height: 1;
}
.ce-proof-label {
  margin-top: 0.5rem; font-size: 0.76rem; color: rgba(244,250,253,0.78);
  letter-spacing: 0.01em; max-width: 18ch; line-height: 1.4;
}

/* ── 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 — two-column grid, same card language as the landing
   page's travel-news section: photo card, tag eyebrow, title, blurb. ── */
.ce-cases { min-width: 0; }
.ce-case-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.5rem);
}
.ce-case-card {
  display: flex; flex-direction: column;
}
.ce-case-img {
  width: 100%; aspect-ratio: 4 / 3;
  border-radius: 10px; overflow: hidden;
  background: var(--sand);
  margin-bottom: 1rem;
}
.ce-case-img img {
  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-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sun); margin-bottom: 0.5rem;
}
.ce-case-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; margin-bottom: 0.55rem; }
.ce-case-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ── Quote form — a fixed wizard: progress header (1→2→3) on top, one
   panel visible at a time; completing a part switches the panel instead
   of stacking steps down the page, so the section keeps one footprint.
   Sticky in the right column so it stays in view while browsing cases. ── */
.ce-form-section {
  position: sticky;
  top: 84px;
}

@media (max-width: 1024px) {
  .ce-main { grid-template-columns: 1fr; }
  .ce-form-section { position: static; max-width: 680px; }
}
@media (max-width: 600px) {
  .ce-case-track { grid-template-columns: 1fr; }
}

.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-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; }
}
