/* ============================================================
   PROG-9963 — Oki-Toki contacts page sections.
   Depends on oki-base.css (tokens, .container, typography, .btn) —
   enqueue this AFTER it. Section styles only; scoped under `.oki-contacts`.
   Breakpoint scale per wp-layout-responsive: 1200 / 992 / 768 / 500.
   English-only comments. BEM. No !important.
   ============================================================ */

/* Drop the theme's global .section{margin-bottom:200px}; our sections space
   themselves with padding-block. Add margin per-section only where needed. */
.oki-contacts .section { margin-bottom: 0; }
/* The hero background must touch the fixed bar: no white margin gap — the
   section itself slides under the bar and pads its content past it (80px
   mobile bar, 86px desktop). Body-class beats the global .main rule. */
.page-template-page-contacts-php .main { margin-top: 0; }
.oki-contacts .hero { padding-top: 80px; }
@media (min-width: 1200px) {
  .oki-contacts .hero { padding-top: 86px; }   /* desktop bar is 86px */
}

/* ============================================================
   CONTACTS PANEL (per-language channels) — also reused in the workzone.
   ============================================================ */
.oki-contacts .contacts-panel { margin-top: 20px; }
.oki-contacts .contacts-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; padding: 16px 0;
}
.oki-contacts .contacts-row + .contacts-row { border-top: 1px solid var(--color-border); }
.oki-contacts .contacts-row__info { min-width: 0; }
.oki-contacts .contacts-row__label { font-size: 15px; font-weight: 700; color: var(--color-ink); }
.oki-contacts .contacts-row__sub { margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: color-mix(in oklab, var(--color-ink) 58%, transparent); }
.oki-contacts .contacts-row__emailwrap { display: inline-flex; align-items: center; gap: 8px; }
.oki-contacts .contacts-row__email { font-size: 15px; font-weight: 700; color: var(--color-brand-dark); }
.oki-contacts .contacts-row__email:hover { text-decoration: underline; }
.oki-contacts .contacts-row__copy {
  display: inline-grid; place-items: center; inline-size: 32px; block-size: 32px;
  border-radius: 8px; border: 1px solid var(--color-border); background: #fff;
  color: color-mix(in oklab, var(--color-ink) 55%, transparent); cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.oki-contacts .contacts-row__copy svg { inline-size: 16px; block-size: 16px; }
.oki-contacts .contacts-row__copy:hover { border-color: var(--color-brand); color: var(--color-brand-dark); }
.oki-contacts .contacts-row__status { margin-top: 6px; font-size: 12px; font-weight: 600; min-height: 1em; }
.oki-contacts .contacts-row__status--ok { color: var(--color-brand-dark); }
.oki-contacts .contacts-row__status--err { color: var(--color-coral); }
.oki-contacts .contacts-row__btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--color-ink) 16%, transparent);
  background: #fff; font-size: 13px; font-weight: 700; color: var(--color-ink);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.oki-contacts .contacts-row__btn svg { inline-size: 16px; block-size: 16px; }
.oki-contacts .contacts-row__btn:hover { border-color: var(--color-ink); background: var(--color-ink); color: #fff; }

.oki-contacts .msg-icons { flex: none; display: flex; gap: 8px; }
.oki-contacts .msg-icon {
  display: inline-grid; place-items: center; inline-size: 40px; block-size: 40px;
  border-radius: 999px; border: 1px solid var(--color-border); background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.oki-contacts .msg-icon svg { inline-size: 20px; block-size: 20px; }
.oki-contacts .msg-icon:hover { transform: translateY(-1px); }
.oki-contacts .msg-icon--tg { color: #229ED9; }
.oki-contacts .msg-icon--tg:hover { border-color: #229ED9; }
.oki-contacts .msg-icon--wa { color: #1FA855; }
.oki-contacts .msg-icon--wa:hover { border-color: #1FA855; }
.oki-contacts .msg-icon--vb { color: #7360F2; }
.oki-contacts .msg-icon--vb:hover { border-color: #7360F2; }

/* ============================================================
   HERO (Block 1)
   ============================================================ */
.oki-contacts .hero { position: relative; overflow: hidden; background: var(--color-cream); }
.oki-contacts .hero__inner {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding-block: clamp(28px, 5vw, 52px) clamp(38px, 6vw, 72px);
}
.oki-contacts .hero__blob { position: absolute; border-radius: 999px; filter: blur(80px); pointer-events: none; z-index: 0; }
.oki-contacts .hero__blob--teal { inset-block-start: -96px; inset-inline-end: -96px; inline-size: 360px; block-size: 360px; background: color-mix(in oklab, var(--color-brand) 15%, transparent); }
.oki-contacts .hero__blob--lilac { inset-block-start: 140px; inset-inline-start: -120px; inline-size: 280px; block-size: 280px; background: color-mix(in oklab, var(--color-lilac) 20%, transparent); }
.oki-contacts .hero__col { position: relative; z-index: 1; }
.oki-contacts .hero__title { max-width: 18ch; font-size: clamp(29px, 6vw, 60px); line-height: 1.02; letter-spacing: -0.04em; }
.oki-contacts .hero__lead { margin-top: 24px; max-width: 58ch; font-size: clamp(15px, 1.8vw, 17px); line-height: 1.65; color: color-mix(in oklab, var(--color-ink) 70%, transparent); }
.oki-contacts .hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Hand-drawn squiggle under an emphasized hero word (authored as
   <span class="hero__word">word</span>; the SVG line is drawn via ::after).
   Distinct from the generic .underline-wavy marker (kept in oki-base). */
.oki-contacts .hero__word { position: relative; display: inline-block; }
.oki-contacts .hero__word::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: -0.18em;
  block-size: 0.32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' fill='none'%3E%3Cpath d='M2 9C 30 2, 60 12, 90 6 S 150 2, 180 8 S 230 4, 238 7' stroke='%2318D0CD' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
}

.oki-contacts .hero__card-wrap { position: relative; max-width: 360px; margin-inline: auto; }
.oki-contacts .manager-card { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent); background: #fff; box-shadow: 0 30px 80px -30px rgba(20, 20, 20, .25); }
.oki-contacts .manager-card__photo { aspect-ratio: 4 / 5; inline-size: 100%; object-fit: cover; object-position: center 18%; }
.oki-contacts .manager-card__caption { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 52px 16px 16px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.58), rgba(0,0,0,.12) 55%, transparent); }
.oki-contacts .manager-card__role { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; opacity: .85; color: #fff; }
.oki-contacts .manager-card__name { margin-top: 4px; max-width: 15ch; font-size: 18px; font-weight: 700; line-height: 1.22; color: #fff; }
.oki-contacts .sticker { position: absolute; z-index: 3; inset-block-start: -14px; inset-inline-start: -20px; rotate: -6deg; padding: 7px 12px; border-radius: var(--radius-md); background: var(--color-lilac); color: var(--color-ink); font-size: 12px; font-weight: 700; box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--color-lilac) 60%, transparent); }
.oki-contacts .signature { position: absolute; z-index: 3; inset-block-end: -34px; inset-inline-end: -10px; max-width: 200px; rotate: 3deg; padding: 14px; border-radius: var(--radius); border: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent); background: #fff; box-shadow: var(--shadow-md); }
.oki-contacts .signature__text { font-size: 12px; line-height: 1.35; color: color-mix(in oklab, var(--color-ink) 70%, transparent); }
.oki-contacts .signature__name { margin-top: 6px; font-family: var(--font-hand); font-size: 22px; line-height: 1; color: var(--color-brand-dark); }

@media (min-width: 992px) {
  .oki-contacts .hero__inner { grid-template-columns: 7fr 5fr; gap: 28px; align-items: start; }
  .oki-contacts .hero__card-wrap { margin-inline: auto 0; }   /* flush right like the design */
}
@media (max-width: 991px) {
  .oki-contacts .hero__col--media { order: -1; }
}
@media (max-width: 600px) {
  .oki-contacts .hero__actions .btn { width: 100%; }
  .oki-contacts .sticker { inset-inline-start: 8px; inset-block-start: 8px; }
  .oki-contacts .signature { position: static; inset: auto; rotate: -2deg; max-width: 240px; margin: 14px 0 0 auto; }
}

/* ============================================================
   CASES (Block 2) — swipe carousel on mobile, 3-up grid on desktop.
   ============================================================ */
.oki-contacts .cases { background: var(--color-bg); }
.oki-contacts .cases__head { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.oki-contacts .cases__intro { max-width: 30rem; font-size: 14px; line-height: 1.6; color: color-mix(in oklab, var(--color-ink) 65%, transparent); }
.oki-contacts .cases__grid { margin-top: 40px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.oki-contacts .cases__grid::-webkit-scrollbar { display: none; }
.oki-contacts .case-card { position: relative; display: flex; flex-direction: column; flex: 0 0 86%; scroll-snap-align: start; border-radius: 24px; border: 1px solid var(--color-border); padding: clamp(22px, 3.4vw, 30px); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.oki-contacts .case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.oki-contacts .case-card--teal { background: linear-gradient(140deg, var(--color-brand-soft), #fff 70%); border-color: color-mix(in oklab, var(--color-brand-dark) 20%, transparent); }
.oki-contacts .case-card--ink { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.oki-contacts .case-card--lilac { background: var(--color-lilac-soft); border-color: color-mix(in oklab, var(--color-lilac) 30%, transparent); }
.oki-contacts .case-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.oki-contacts .case-card__tag { font-size: clamp(46px, 6.7vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: color-mix(in oklab, var(--color-ink) 15%, transparent); }
.oki-contacts .case-card--ink .case-card__tag { color: var(--color-brand); }
.oki-contacts .case-card__arrow { inline-size: 22px; block-size: 22px; color: color-mix(in oklab, var(--color-ink) 40%, transparent); transition: transform .2s ease; }
.oki-contacts .case-card--ink .case-card__arrow { color: color-mix(in oklab, #fff 70%, transparent); }
.oki-contacts .case-card:hover .case-card__arrow { transform: rotate(12deg); }
.oki-contacts .case-card__title { margin-top: 20px; font-size: clamp(19px, 2.6vw, 25px); line-height: 1.2; }
.oki-contacts .case-card--ink .case-card__title { color: #fff; }
.oki-contacts .case-card__text { margin-top: 10px; max-width: 44ch; font-size: 14px; line-height: 1.6; color: color-mix(in oklab, var(--color-ink) 70%, transparent); }
.oki-contacts .case-card--ink .case-card__text { color: color-mix(in oklab, #fff 75%, transparent); }
.oki-contacts .case-card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; -webkit-tap-highlight-color: transparent; }
.oki-contacts .case-card__link:focus-visible { outline: 3px solid var(--color-brand-dark); outline-offset: 3px; }
.oki-contacts .case-card--ink .case-card__link:focus-visible { outline-color: var(--color-brand); }
.oki-contacts .cases__cta { margin-top: clamp(28px, 4vw, 40px); display: flex; justify-content: center; }
@media (min-width: 992px) {
  .oki-contacts .cases__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .oki-contacts .cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; overflow: visible; padding-bottom: 0; }
}

/* ============================================================
   STEPS (Block 3) — vertical on mobile, row on desktop.
   ============================================================ */
.oki-contacts .steps {
  --steps-thread-color: var(--color-lilac);
  --steps-thread-width: 2.5px;
  --steps-thread-dash: 0.1 13;
  --steps-thread-amp: 14;
  --steps-thread-arrow-width: 3px;
}
.oki-contacts .steps__head { max-width: 56ch; margin-bottom: clamp(28px, 4vw, 44px); }
.oki-contacts .steps__intro { margin-top: 12px; font-size: 14px; line-height: 1.6; color: color-mix(in oklab, var(--color-ink) 65%, transparent); }
.oki-contacts .steps__line { position: relative; display: flex; flex-direction: column; gap: 28px; list-style: none; margin: 0; padding-inline-start: 0; }
.oki-contacts .step { position: relative; z-index: 1; }
.oki-contacts .step__marker { display: flex; align-items: center; gap: 14px; }
.oki-contacts .step__num { flex: none; font-size: clamp(44px, 13vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--color-brand-dark); }
.oki-contacts .step__title { margin-top: 10px; font-size: 18px; line-height: 1.25; }
.oki-contacts .step__text { margin-top: 6px; max-width: 46ch; font-size: 14px; line-height: 1.6; color: color-mix(in oklab, var(--color-ink) 70%, transparent); }
/* Steps-thread (drawn by contacts.js; dotted bezier through the numbers) */
.oki-contacts .steps__thread {
  display: none; position: absolute; inset: 0; z-index: 0;
  inline-size: 100%; block-size: 100%; overflow: visible; pointer-events: none;
}
.oki-contacts .steps__thread > path {
  fill: none; stroke: var(--steps-thread-color); stroke-width: var(--steps-thread-width);
  stroke-linecap: round; stroke-dasharray: var(--steps-thread-dash);
}
/* Drawn arrows along each segment (solid, follow the thread curve). */
.oki-contacts .steps__thread-arrow {
  fill: none; stroke: var(--steps-thread-color); stroke-width: var(--steps-thread-arrow-width);
  stroke-linecap: round; stroke-linejoin: round;
}
@media (min-width: 992px) {
  .oki-contacts .steps__line { flex-direction: row; }
  .oki-contacts .step { flex: 1; padding-right: 24px; }
  .oki-contacts .step:last-child { padding-right: 0; }
  .oki-contacts .step__marker { margin-bottom: 18px; }
  .oki-contacts .step__title { margin-top: 0; font-size: 20px; }
  .oki-contacts .steps__thread { display: block; }
}

/* ============================================================
   WORKZONE (Blocks 4+6) — channels + lead form split.
   Mobile: form on top; desktop: channels left, sticky form right.
   ============================================================ */
.oki-contacts .workzone { background: var(--color-bg); border-block: 1px solid color-mix(in oklab, var(--color-ink) 6%, transparent); }
.oki-contacts #form, .oki-contacts #contacts { scroll-margin-top: 88px; }
.oki-contacts .workzone__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.oki-contacts .workzone__form { order: 1; }
.oki-contacts .workzone__channels { order: 2; }
/* min-width:0 so the CF7 form's min-content doesn't distort the 5fr:6fr ratio
   (without it the grid rendered ~386/689 instead of the design 489/586). */
.oki-contacts .workzone__channels, .oki-contacts .workzone__form { min-width: 0; }
.oki-contacts .workzone__sub { margin-top: 12px; max-width: 46ch; font-size: 14px; line-height: 1.55; color: color-mix(in oklab, var(--color-ink) 60%, transparent); }

/* Lead form shell (wraps the per-language CF7 form, restyled below) */
.oki-contacts .lead-form {
  border-radius: 26px;
  border: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent);
  background: linear-gradient(140deg, var(--color-brand-soft), #fff 50%, color-mix(in oklab, var(--color-lilac-soft) 45%, #fff));
  box-shadow: 0 30px 80px -30px rgba(20, 20, 20, .18);
  padding: clamp(18px, 3vw, 26px);
}
.oki-contacts .lead-form__head { display: flex; align-items: flex-start; gap: 16px; }
.oki-contacts .lead-form__title { font-size: clamp(20px, 2.9vw, 25px); line-height: 1.2; letter-spacing: -0.02em; }
.oki-contacts .quick-cases-wrap { margin-top: 18px; }
.oki-contacts .lead-form__fine { margin-top: 14px; text-align: center; font-size: 12px; line-height: 1.5; color: color-mix(in oklab, var(--color-ink) 66%, transparent); }

/* Quick-fill chips */
.oki-contacts .quick-cases__hint { margin-bottom: 8px; font-size: 12px; color: color-mix(in oklab, var(--color-ink) 60%, transparent); }
.oki-contacts .quick-cases { display: flex; gap: 8px; min-width: 0; margin-bottom: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; cursor: grab; }
.oki-contacts .quick-cases::-webkit-scrollbar { display: none; }
/* CF7 autop wraps the chips in a <p>; unwrap it so the buttons are flex items
   again (single nowrap scrollable row, not two stacked rows). */
.oki-contacts .quick-cases > p { display: contents; }
.oki-contacts .quick-cases.is-dragging { cursor: grabbing; user-select: none; }
.oki-contacts .quick-case {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px;
  white-space: nowrap; border-radius: 999px; border: 1px solid var(--color-border);
  background: var(--color-cream); font-size: 12px; font-weight: 600; color: var(--color-text);
  cursor: pointer; user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.oki-contacts .quick-case:hover { border-color: var(--color-brand); }
.oki-contacts .quick-case[aria-pressed="true"] { background: var(--color-brand-soft); border-color: var(--color-brand); color: var(--color-brand-dark); }

/* CF7 output mapped to the design (no per-form markup edits) */
.oki-contacts .lead-form__cf7 .wpcf7-form { margin: 0; }
.oki-contacts .lead-form__cf7 p { margin: 0 0 12px; }
.oki-contacts .lead-form__cf7 label:not(.quick-case) { display: block; font-size: 13px; font-weight: 700; color: var(--color-ink); }
.oki-contacts .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.oki-contacts .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not([type="checkbox"]):not([type="radio"]) {
  inline-size: 100%; padding: 10px 20px; background: #fff;
  border: 1.5px solid var(--color-border); border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--color-ink); outline: none;
  transition: border-color .15s ease, background-color .15s ease;
}
/* style.css .form-box_input adds margin-bottom:30px (×3 fields = extra height) — drop it;
   the field <p> already provides the gap. */
.oki-contacts .lead-form__cf7 .form-box_input { margin-bottom: 0; }
.oki-contacts .wpcf7-form-control:not(.wpcf7-submit):focus { border-color: var(--color-brand); }
/* Force a compact height — CF7 [textarea] without a rows arg defaults to 10 rows. */
.oki-contacts .wpcf7-textarea { resize: vertical; min-height: 64px; height: 64px; }
.oki-contacts .wpcf7-form-control::placeholder { color: color-mix(in oklab, var(--color-ink) 35%, transparent); }
/* Submit = the design .btn--primary .btn--block (44px / 14px), not a one-off. */
.oki-contacts .wpcf7-submit {
  inline-size: 100%; margin-top: 16px; min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--color-brand); color: var(--color-ink);
  font-weight: 700; font-size: 14px; line-height: 1; text-transform: none; /* beat .button uppercase */
  box-shadow: 0 10px 30px -12px rgba(24, 208, 205, .55);
  transition: transform .18s ease, box-shadow .18s ease;
}
.oki-contacts .lead-form__cf7 .field__label { display: block; margin-bottom: 4px; }
.oki-contacts .lead-form__cf7 .field__req { color: var(--color-coral); }
/* CF7 autop adds a <br> after each label; labels/wraps are block, so drop it to
   keep the form compact (closer to the design height). */
.oki-contacts .lead-form__cf7 br { display: none; }
.oki-contacts .wpcf7-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(24, 208, 205, .75); }
.oki-contacts .wpcf7-not-valid-tip { margin-top: 6px; margin-left: 20px; font-size: 12px; font-weight: 600; color: var(--color-coral); }
/* Higher specificity than the base control rule above (beats CF7 default; no !important). */
.oki-contacts .lead-form__cf7 .wpcf7-form.invalid .wpcf7-form-control.wpcf7-not-valid { border-color: var(--color-coral); }
.oki-contacts .wpcf7-response-output { margin: 14px 0 0; border-radius: 10px; font-size: 13px; }
.oki-contacts .wpcf7-spinner { margin: 10px auto 0; display: block; }

@media (min-width: 992px) {
  .oki-contacts .workzone__grid { grid-template-columns: 5fr 6fr; gap: 52px; align-items: start; }
  .oki-contacts .workzone__channels { order: 1; }
  .oki-contacts .workzone__form { order: 2; }
  .oki-contacts .lead-form { position: sticky; top: 88px; }
}

/* ============================================================
   PHASE 2 — reveal, steps-thread draw, sticky CTA, copy toast.
   Scroll-driven motion is progressive: unsupported browsers show the
   static content (no FOUC).
   ============================================================ */
@keyframes oki-steps-thread-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes oki-reveal-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .oki-contacts .steps__thread {
      animation: oki-steps-thread-draw linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 42%;
    }
  }
  @supports (animation-timeline: view()) {
    .oki-contacts .reveal {
      animation: oki-reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
  }
}

/* Sticky mobile CTA */
.oki-contacts .sticky-cta {
  position: fixed; inset-inline: 0; inset-block-end: 12px; z-index: 40;
  display: none; justify-content: center; padding-inline: 16px;
}
.oki-contacts .sticky-cta__btn {
  inline-size: 100%; max-inline-size: 26rem; min-height: 48px;
  box-shadow: var(--shadow-lg); /* colors come from .btn--dark */
}
.oki-contacts .sticky-cta__btn svg { inline-size: 18px; block-size: 18px; color: var(--color-brand); }
@media (max-width: 768px) {
  .oki-contacts .sticky-cta { display: flex; }
  /* The Chaty bubble and the scroll-to-top fab share the bottom strip with the
     fixed CTA bar (48px tall, 12px inset) — lift them just above it.
     !important: Chaty re-declares its position from a later inline <style>. */
  .page-template-page-contacts .scroll-to-top { bottom: 76px; }
  .page-template-page-contacts .chaty-widget { bottom: 76px !important; }
}

/* ============================================================
   PROOF (Block 5) — dark stats band + testimonials carousel.
   ============================================================ */
.oki-contacts .proof__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.oki-contacts .proof__intro { margin-top: 18px; max-width: 28rem; font-size: 14px; line-height: 1.6; color: color-mix(in oklab, #fff 65%, transparent); }
.oki-contacts .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; margin: 0; }
.oki-contacts .stat__num { font-size: clamp(37px, 5.8vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--color-brand); font-variant-numeric: tabular-nums; }
.oki-contacts .stat__label { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: color-mix(in oklab, #fff 70%, transparent); }

.oki-contacts .testimonial {
  display: grid; grid-template-columns: 1fr; gap: 26px;
  border-radius: 24px; border: 1px solid color-mix(in oklab, #fff 10%, transparent);
  background: color-mix(in oklab, #fff 3%, transparent); padding: clamp(22px, 3.4vw, 40px);
}
.oki-contacts .testimonial__media { position: relative; inline-size: fit-content; }
.oki-contacts .testimonial__photo { inline-size: 100%; max-inline-size: 168px; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.oki-contacts .testimonial__badge { position: absolute; inset-block-end: -10px; inset-inline-end: -10px; rotate: -8deg; padding: 5px 11px; border-radius: 10px; background: var(--color-brand); color: var(--color-ink); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.oki-contacts .testimonial__quote-mark { display: block; font-size: 52px; line-height: .5; color: var(--color-lilac); }
.oki-contacts .testimonial__quote { margin-top: 8px; font-size: clamp(17px, 2.6vw, 23px); font-weight: 600; line-height: 1.45; color: #fff; }
.oki-contacts .testimonial__author { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: color-mix(in oklab, #fff 70%, transparent); }
.oki-contacts .testimonial__name { font-weight: 700; color: #fff; }
.oki-contacts .testimonial__role::before { content: "\00b7 "; }

.oki-contacts .reviews { margin-top: 52px; }
.oki-contacts .reviews__viewport { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; cursor: grab; border-radius: 24px; }
.oki-contacts .reviews__viewport::-webkit-scrollbar { display: none; }
.oki-contacts .reviews__viewport.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.oki-contacts .reviews__slide { flex: 0 0 100%; scroll-snap-align: center; }
.oki-contacts .reviews__slide img { -webkit-user-drag: none; user-select: none; }
.oki-contacts .reviews__nav { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.oki-contacts .reviews__arrow { display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 999px; border: 1px solid color-mix(in oklab, #fff 25%, transparent); color: #fff; cursor: pointer; background: transparent; transition: background-color .15s ease, border-color .15s ease; }
.oki-contacts .reviews__arrow svg { inline-size: 20px; block-size: 20px; }
.oki-contacts .reviews__arrow:hover { background: color-mix(in oklab, #fff 12%, transparent); border-color: color-mix(in oklab, #fff 50%, transparent); }
.oki-contacts .reviews__dots { display: flex; align-items: center; gap: 6px; }
.oki-contacts .reviews__dot { display: grid; place-items: center; inline-size: 26px; block-size: 40px; border: 0; background: transparent; cursor: pointer; }
.oki-contacts .reviews__dot::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 999px; background: color-mix(in oklab, #fff 30%, transparent); transition: inline-size .25s ease, background-color .25s ease; }
.oki-contacts .reviews__dot[aria-current="true"]::before { inline-size: 22px; background: var(--color-brand); }

@media (min-width: 992px) {
  .oki-contacts .proof__grid { grid-template-columns: 5fr 7fr; gap: 52px; }
  .oki-contacts .testimonial { grid-template-columns: 184px 1fr; gap: 40px; align-items: center; }
}

/* Copy toast (Popover API + .is-visible fallback) */
.oki-contacts .toast {
  display: none; position: fixed; inset: auto; inset-block-end: 24px; inset-inline-start: 50%;
  margin: 0; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 999px;
  background: var(--color-ink); color: #fff; font-size: 13px; font-weight: 700; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateX(-50%) translateY(8px);
  transition: opacity .2s ease, transform .2s ease, overlay .2s ease allow-discrete, display .2s ease allow-discrete;
}
.oki-contacts .toast svg { inline-size: 18px; block-size: 18px; color: var(--color-brand); }
.oki-contacts .toast:popover-open,
.oki-contacts .toast.is-visible { display: flex; opacity: 1; transform: translateX(-50%) translateY(0); }
@starting-style { .oki-contacts .toast:popover-open { opacity: 0; transform: translateX(-50%) translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .oki-contacts .toast { transition: none; } }

/* ============================================================
   PROG-9963 v6 — contacts page revision additions
   ============================================================ */

/* Manager card: small rotated badge over the photo (replaces caption/signature). */
.oki-contacts .manager-card__badge {
  position: absolute; z-index: 2;
  inset-block-end: 14px; inset-inline-start: 14px;
  rotate: -3deg;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  background: var(--color-lilac); color: var(--color-ink);
  font-size: 12px; font-weight: 700;
  box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--color-lilac) 60%, transparent);
}

/* Quick-cases are now multi-select checkboxes (label wraps a visually-hidden checkbox). */
.oki-contacts .quick-case { position: relative; }   /* contain the absolute checkbox */
.oki-contacts .quick-case:has(.quick-case__input:checked) {
  background: var(--color-brand-soft); border-color: var(--color-brand); color: var(--color-brand-dark);
}
.oki-contacts .quick-case__input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: pointer; }
.oki-contacts .quick-case:has(.quick-case__input:focus-visible) { outline: 2px solid var(--color-brand); outline-offset: 2px; }

/* Turnstile centered via a fixed-width wrapper, NOT by flex-centering the
   300px widget inside a wider box: the widget's internal aria-live overlay
   sizes to its parent, and a wider parent left it covering the checkbox
   (untappable on iPhone 14 Pro Max emulation, PROG-9963 designers' review).
   Wrapper width == widget width keeps the overlay congruent with the iframe. */
.oki-contacts .workzone__form .cf-turnstile { width: 300px; max-width: 100%; margin: 18px auto 0; }
.oki-contacts .workzone__form .wpcf7-submit,
.oki-contacts .workzone__form .button { display: block; inline-size: 100%; }

/* Testimonials: fixed square photo + long-quote clamp with a "read more" toggle. */
.oki-contacts .testimonial__photo { max-inline-size: none; inline-size: clamp(72px, 20vw, 104px); }
.oki-contacts .testimonial__quote { font-size: clamp(15px, 2vw, 17px); line-height: 1.5; }
.oki-contacts .testimonial__quote--clamp {
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
}
.oki-contacts .testimonial.is-expanded .testimonial__quote--clamp {
  display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible;
}
.oki-contacts .testimonial__more {
  margin-top: 10px; padding: 0; border: 0; background: none;
  color: var(--color-brand); font: inherit; font-size: 13px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.oki-contacts .testimonial__more:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .oki-contacts .testimonial__more:hover { color: #fff; } }

/* Scroll-driven reveals (.reveal, steps-thread) use `animation-timeline: view()`, which
   tracks progress against the nearest scroll container. The global `.wrapper` has
   `overflow: hidden` → it becomes a non-scrolling scroll container and freezes those
   timelines, so nothing reveals. On this template relax it to `overflow-x: clip` (still
   blocks horizontal scroll; the hero clips its own decorative blobs) so the document is
   the scroller again and the reveal fade-up works. */
body.page-template-page-contacts .wrapper { overflow-x: clip; overflow-y: visible; }

/* ============================================================
   CONSENT (v6 .consent* port onto the CF7 acceptance markup) */
.oki-contacts .form-consent { margin-top: 14px; }
.oki-contacts .form-consent + .form-consent { margin-top: 10px; }
.oki-contacts .form-consent p { margin: 0; }
.oki-contacts .form-consent .wpcf7-list-item { margin: 0; display: block; }
.oki-contacts .form-consent .wpcf7-list-item > label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer;
  font-weight: 300;   /* checkbox rows stay light; field labels are 700 */
}
.oki-contacts .form-consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  inline-size: 20px; block-size: 20px;
  margin: 1px 0 0;
  display: grid; place-content: center;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.oki-contacts .form-consent input[type="checkbox"]::after {
  content: "";
  inline-size: 5px; block-size: 9px;
  margin-top: -2px;
  border: 2px solid #fff; border-block-start: 0; border-inline-start: 0;
  opacity: 0;
  transform: rotate(45deg) scale(.6);
  transition: opacity .15s ease, transform .15s ease;
}
.oki-contacts .form-consent input[type="checkbox"]:checked { background: var(--color-brand); border-color: var(--color-brand); }
.oki-contacts .form-consent input[type="checkbox"]:checked::after { opacity: 1; transform: rotate(45deg) scale(1); }
.oki-contacts .form-consent input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-brand) 22%, transparent);
}
.oki-contacts .form-consent .wpcf7-list-item-label {
  font-size: 12.5px;
  line-height: 1.5;
  color: color-mix(in oklab, var(--color-ink) 78%, transparent);
}
.oki-contacts .form-consent .wpcf7-list-item-label a {
  color: var(--color-brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.oki-contacts .form-consent .consent__req { color: var(--color-coral); font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .oki-contacts .form-consent .wpcf7-list-item > label:hover input[type="checkbox"] { border-color: var(--color-brand); }
  .oki-contacts .form-consent .wpcf7-list-item-label a:hover { color: var(--color-brand); }
}
@media (prefers-reduced-motion: reduce) {
  .oki-contacts .form-consent input[type="checkbox"],
  .oki-contacts .form-consent input[type="checkbox"]::after { transition: none; }
}
