/* Icon paths: the --vt-icon url() is resolved where base.css uses var(--vt-icon), so "../../" only worked at a
   site root (404 under WordPress). The mask-image longhands next to it resolve against this file. */
/* =============================================================================
   Viva Talent — CV FLOW module (shared by 05 Apply · 05b CV picker · 08 Submit CV,
   and linked by 10 Candidate Dashboard for its "My CV → check your details" panel)
   Figma ND8Vh51S7xfOXKOvIZ7Dn2 · values read from 377:2372 / 379:2789 / 380:3049 /
   385:3292 / 509:6281 (pulled 2026-09-30).

   RESPONSIVE MODEL — the cards switch on their CONTAINER, not the viewport:
     .cv-col            wrap any column that holds cv-* cards (container-type: inline-size)
     narrow  (< 600px)  = Figma Mobile 375 drawing   ·   wide (≥ 600px) = Figma Desktop 1440
   This is what lets 05b draw the Mobile states next to the Desktop states at 1440.

   STABLE CLASS NAMES (public API of this file)
     .cv-col                         container-query root (put it on the column)
     .cv-stepper / __step / __bar / __text / __label / __title  · .is-done · .is-current
     .cv-layout / __main             2-column form layout (main + 340px side) ≥ 1024px
     .cv-card  (--tight · --loose)   white step card · .cv-card__head · __title · __link
     .cv-sub                         one-line helper under a card title
     .cv-note                        surface-tinted info note
     .cv-options / .cv-option        CV picker radio rows · .cv-radio · .cv-option__info ·
                                     __name · __file · __meta · __icon · __remove · .cv-badge
     .cv-keep                        "keep this CV?" follow-up block (__title · __choices · __caption)
     .cv-dropzone (--compact)        upload zone · __disc · __title · __format
     .cv-sections / .cv-section      "We read it and you check" — extracted-data blocks
       .cv-section__head · __title · .cv-reviewed        head row with the Reviewed checkbox
       .cv-row (--1)                 field row: 2 columns wide, stacked narrow
       .cv-field · .cv-label · .cv-textarea (--s · --l)  textarea field
       .cv-add                       "+ Add another …" link
     .cv-chips                       wrapping chip list (skills, answer options)
     .cv-question / __text           employer question + options
     .cv-actions                     button row under a hairline · .cv-btn-56 (56px primary)
     .cv-consent                     consent row (checkbox + text)
     .cv-summary                     side card "You are applying for" (uses .vt-kv rows)
     .cv-aside (--white)             side note card · __title · __desc · __link
   ============================================================================= */

.cv-col { container-type: inline-size; min-width: 0; }

/* -----------------------------------------------------------------------------
   STEPPER — Desktop 377:2427 (4 columns) · Mobile 379:2824 (compact: bars + current step)
   ----------------------------------------------------------------------------- */
.cv-stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 6px; row-gap: 10px; }
.cv-stepper__step { display: contents; }
.cv-stepper__bar { grid-row: 1; height: 5px; border-radius: var(--vt-radius-pill); background: var(--vt-neutral-200); }
.cv-stepper__text { display: none; grid-column: 1 / -1; flex-direction: column; gap: 10px; align-items: flex-start; }
.cv-stepper__step.is-current .cv-stepper__text { display: flex; }
.cv-stepper__label {
  font-size: 12px; line-height: 15px; font-weight: 700;           /* Figma 14.52 → box 15 */
  letter-spacing: 1.44px; text-transform: uppercase; color: var(--vt-semantic-meta);
}
.cv-stepper__title { font-size: 16px; line-height: 19px; font-weight: 600; color: var(--vt-semantic-meta); } /* 19.36 → 19 */
.cv-stepper__desc { font-size: 14px; line-height: 20px; color: var(--vt-semantic-meta); }
.cv-stepper__bar { position: relative; overflow: hidden; }
.cv-stepper__step:is(.is-done, .is-current) .cv-stepper__bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%; }
.cv-stepper__step.is-done .cv-stepper__bar::after { background: var(--cliente-p1-rol-secondary); }
.cv-stepper__step.is-current .cv-stepper__bar::after { background: var(--vt-raw-lime); }
.cv-stepper__step:is(.is-done, .is-current) .cv-stepper__label { color: var(--cliente-p1-rol-secondary); }
.cv-stepper__step:is(.is-done, .is-current) .cv-stepper__title { color: var(--vt-semantic-ink); }
@media (min-width: 1024px) {
  .cv-stepper { column-gap: 16px; row-gap: 0; }
  .cv-stepper__step { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .cv-stepper__text, .cv-stepper__step.is-current .cv-stepper__text { display: flex; }
}

/* -----------------------------------------------------------------------------
   LAYOUT — main column + 340px side (377:2449 / 380:3105). Narrow: one column, gap 16.
   DOM order is the Mobile order; ≥1024 the non-main children stack in column 2.
   ----------------------------------------------------------------------------- */
.cv-layout { display: flex; flex-direction: column; gap: 16px; }
.cv-layout__main { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) {
  .cv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto auto 1fr; column-gap: 48px; row-gap: 20px; align-items: start; }
  .cv-layout > * { grid-column: 2; }
  .cv-layout__main { grid-column: 1; grid-row: 1 / span 3; gap: 24px; }
}

/* -----------------------------------------------------------------------------
   STEP CARD — 377:2468 (pad 32/36, gap 20) · --tight 377:2451 (28/32, gap 18) ·
   --loose 377:2506 (gap 26). Narrow: pad 24/20.
   ----------------------------------------------------------------------------- */
.cv-card {
  display: flex; flex-direction: column; gap: 20px;
  padding: 24px 20px;
  border-radius: var(--vt-radius-28);
  background: var(--vt-base-white);
  box-shadow: inset 0 0 0 1.5px var(--vt-neutral-100);
}
.cv-card--tight { gap: 18px; }
.cv-card--loose { gap: 26px; }
.cv-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cv-card__title {
  font-family: var(--vt-font-display); font-weight: 700;
  font-size: 24px; line-height: 29px; letter-spacing: -0.36px;       /* 28.8 → box 29 */
  color: var(--vt-semantic-ink); white-space: pre-wrap;              /* keeps the double space after "1." */
}
.cv-card__link, .cv-add, .cv-option__remove, .cv-aside__link {
  font-size: 15px; line-height: 18px; font-weight: 600; color: var(--cliente-p1-rol-primary);   /* 18.15 → 18 */
}
.cv-card__link { flex: none; }
.cv-sub { font-size: 15px; line-height: 18px; color: var(--vt-semantic-body); }
.cv-card .vt-t-label { line-height: 14px; }                          /* 14.4 → box 14 (fld = 14 + 8 + 56 = 78) */
@container (min-width: 600px) {
  .cv-card { padding: 32px 36px; }
  .cv-card--tight { padding: 28px 32px; }
  .cv-card__title { font-size: 28px; line-height: 34px; letter-spacing: -0.42px; }   /* 33.6 → 34 */
}

/* Info note — 377:2470 */
.cv-note {
  padding: 16px 20px; border-radius: 20px;
  background: var(--cliente-p1-rol-surface);
  font-size: 15px; line-height: 18px; color: var(--vt-semantic-ink);
}

/* -----------------------------------------------------------------------------
   CV PICKER — options 508:6288 (Desktop) / 508:6348 (Mobile); states board 509:6281
   ----------------------------------------------------------------------------- */
.cv-options { display: flex; flex-direction: column; gap: 12px; }
.cv-option {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 72px; padding: 14px 16px;
  border-radius: 20px; background: var(--vt-neutral-50);
  cursor: pointer;
  transition: background-color var(--vt-dur-1) var(--vt-ease-soft);
}
.cv-option::after {                                   /* selected stroke (INSIDE 1.5) — fades, no layout */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px var(--cliente-p1-rol-secondary);
  opacity: 0; transition: opacity var(--vt-dur-2) var(--vt-ease-out);
}
.cv-option:has(input:checked)::after { opacity: 1; }
.cv-option input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.cv-radio {
  position: relative; flex: none; width: 22px; height: 22px; border-radius: var(--vt-radius-pill);
  background: var(--vt-base-white); box-shadow: inset 0 0 0 1.5px var(--vt-semantic-meta);
  transition: box-shadow var(--vt-dur-1) var(--vt-ease-soft);
}
.cv-radio::after {
  content: ""; position: absolute; inset: 6px; border-radius: inherit;
  background: var(--cliente-p1-rol-secondary);
  transform: scale(0); transition: transform var(--vt-dur-2) var(--vt-ease-out);
}
.cv-option input:checked + .cv-radio { box-shadow: inset 0 0 0 2px var(--cliente-p1-rol-secondary); }
.cv-option input:checked + .cv-radio::after { transform: scale(1); }
.cv-option input:focus-visible + .cv-radio { outline: 3px solid var(--vt-raw-state-focus); outline-offset: 0; }
.cv-option__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.cv-option__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cv-option__file { font-size: 15px; line-height: 18px; font-weight: 600; color: var(--vt-semantic-ink); }
.cv-option__meta { font-size: 13px; line-height: 16px; color: var(--vt-semantic-meta); }            /* 15.73 → 16 */
.cv-badge {
  display: inline-flex; align-items: center; flex: none; height: 21px; padding: 0 10px;
  border-radius: var(--vt-radius-pill); background: var(--cliente-p1-rol-surface);
  text-transform: uppercase;
  font-size: 11px; line-height: 13px; font-weight: 600; letter-spacing: 1.2px; color: var(--vt-semantic-ink);
}
.cv-option__icon {
  flex: none; color: var(--cliente-p1-rol-primary);
  --vt-icon: url("../../assets/icons/icon-24-upload-cv.svg"); -webkit-mask-image: url("../../assets/icons/icon-24-upload-cv.svg"); mask-image: url("../../assets/icons/icon-24-upload-cv.svg");
  transition: transform var(--vt-dur-2) var(--vt-ease-out);
}
.cv-option__remove { position: relative; z-index: 1; flex: none; }
.cv-option__remove--wide { display: none; }
@container (min-width: 600px) {
  .cv-option { gap: 14px; padding: 14px 20px 14px 16px; }
  .cv-option__name { flex-wrap: nowrap; }
  .cv-option__remove--narrow { display: none; }
  .cv-option__remove--wide { display: inline; }
}
@media (hover: hover) and (pointer: fine) {
  .cv-option:hover { background: var(--vt-neutral-100); }
  .cv-option:hover .cv-option__icon { transform: translate3d(0, -2px, 0); }
}

/* "Do you want to keep this CV?" — 510:6319 / 511:6341 */
.cv-keep { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: 20px; background: var(--cliente-p1-rol-surface); }
.cv-keep__title { font-size: 15px; line-height: 18px; font-weight: 600; color: var(--vt-semantic-ink); }
.cv-keep__choices { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cv-keep__caption { font-size: 13px; line-height: 16px; color: var(--vt-semantic-ink); }
@container (min-width: 600px) { .cv-keep__choices { flex-direction: row; } }

/* -----------------------------------------------------------------------------
   DROPZONE — 380:3109 / 385:3331 · --compact 509:6292 / 511:6295
   ----------------------------------------------------------------------------- */
.cv-dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 32px 16px; border-radius: var(--vt-radius-24);
  /* Dashed stroke 1.5 INSIDE, dashes 8/6 (380:3109 strokeDashes). Drawn as an SVG rect with a 3px
     stroke whose outer half is clipped by the box — CSS `dashed` cannot set the dash length. */
  background: var(--vt-neutral-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='24' fill='none' stroke='%238FC6F2' stroke-width='3' stroke-dasharray='8 6'/%3E%3C/svg%3E");
  overflow: hidden;
  text-align: center;
  transition: background-color var(--vt-dur-1) var(--vt-ease-soft);
}
.cv-dropzone__disc {
  display: grid; place-items: center; flex: none; width: 64px; height: 64px;
  border-radius: var(--vt-radius-pill); background: var(--cliente-p1-rol-surface);
  color: var(--cliente-p1-rol-primary);
  transition: transform var(--vt-dur-3) var(--vt-ease-out);
}
.cv-dropzone__disc .vt-icon { width: 32px; height: 32px; --vt-icon: url("../../assets/icons/icon-24-upload-cv.svg"); -webkit-mask-image: url("../../assets/icons/icon-24-upload-cv.svg"); mask-image: url("../../assets/icons/icon-24-upload-cv.svg"); }
.cv-dropzone__title {
  font-family: var(--vt-font-display); font-weight: 700;
  font-size: 19px; line-height: 23px; letter-spacing: -0.19px; color: var(--vt-semantic-ink);        /* 22.8 → 23 */
}
.cv-dropzone__format { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--vt-semantic-meta); }
/* compact: stroke counts in layout in Figma (509:6292 strokesIncludedInLayout) → pad + 1.5; dashes 7/7 */
.cv-dropzone--compact { gap: 12px; padding: 29.5px 21.5px; border-radius: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='20' fill='none' stroke='%23D5D6DB' stroke-width='3' stroke-dasharray='7 7'/%3E%3C/svg%3E"); }
.cv-dropzone--compact .cv-dropzone__disc { width: 48px; height: 48px; }
.cv-dropzone--compact .cv-dropzone__disc .vt-icon { width: 24px; height: 24px; }
.cv-dropzone--compact .cv-dropzone__title { font-family: var(--vt-font-text); font-weight: 600; font-size: 15px; line-height: 18px; letter-spacing: 0; }
.cv-dropzone--compact .cv-dropzone__format { font-weight: 400; }
@container (min-width: 600px) {
  .cv-dropzone { padding: 44px 0; }
  .cv-dropzone__title { font-size: 22px; line-height: 26px; letter-spacing: -0.22px; }               /* 26.4 → 26 */
  .cv-dropzone--compact { padding: 33.5px 29.5px; }
  .cv-dropzone--compact .cv-dropzone__title { font-size: 15px; line-height: 18px; letter-spacing: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .cv-dropzone:hover { background-color: var(--vt-raw-chip-cyan-bg); }
  .cv-dropzone:hover .cv-dropzone__disc { transform: translate3d(0, -4px, 0); }
}

/* -----------------------------------------------------------------------------
   "WE READ IT AND YOU CHECK" — extracted CV data, one block per section
   448:6119 (Apply D) · 448:9563 (Apply M) · 448:9702 (Submit D) · 448:9821 (Submit M)
   ----------------------------------------------------------------------------- */
.cv-sections { display: flex; flex-direction: column; gap: 16px; }
.cv-section { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 20px; background: var(--vt-neutral-50); }
/* DEVIATION: Figma paints the head row WHITE on the tinted block (448:6121 fill #FFFFFF) — a leftover
   (dp-uiux 2026-09-30). The build drops it; set --cv-head-bg: #FFFFFF to get the Figma frame back. */
.cv-section__head {
  display: flex; align-items: center; justify-content: space-between; gap: 0;   /* Mobile: title 139 + reviewed 116 = 255, no gap */
  background: var(--cv-head-bg, transparent);
}
.cv-section__title { flex: 1 1 auto; min-width: 0; font-size: 17px; line-height: 21px; font-weight: 600; color: var(--vt-semantic-ink); } /* 20.57 → 21 */
.cv-reviewed { display: inline-flex; align-items: center; gap: 8px; flex: none; width: 116px; cursor: pointer; }
.cv-reviewed span {
  font-size: 12px; line-height: 20px; font-weight: 600; letter-spacing: 1.44px; text-transform: uppercase;
  color: var(--vt-semantic-meta); transition: color var(--vt-dur-1) var(--vt-ease-soft);
}
.cv-reviewed input:checked + span { color: var(--cliente-p1-rol-secondary); }
.cv-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@container (min-width: 600px) {
  .cv-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .cv-row--1 { grid-template-columns: minmax(0, 1fr); }
}
.cv-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cv-label {
  font-size: 12px; line-height: 15px; font-weight: 600;             /* 14.52 → box 15 */
  letter-spacing: 1.44px; text-transform: uppercase; color: var(--vt-semantic-meta);
}
.cv-textarea {
  display: block; width: 100%; height: 96px; padding: 16px 24px; resize: none;
  border: 0; border-radius: var(--vt-radius-24);
  background: var(--vt-base-white); box-shadow: inset 0 0 0 1.5px var(--vt-neutral-200);
  font-size: 15px; line-height: 23.25px; color: var(--vt-semantic-ink);
  transition: box-shadow var(--vt-dur-1) var(--vt-ease-soft);
}
.cv-textarea--s { height: 64px; }
.cv-textarea--l { height: 150px; }
.cv-textarea::placeholder { color: var(--vt-neutral-500); opacity: 1; }
.cv-textarea:hover { box-shadow: inset 0 0 0 1.5px var(--vt-raw-state-focus); }
.cv-textarea:focus-visible { outline: 3px solid var(--vt-raw-state-focus); outline-offset: 0; }
.cv-add { align-self: flex-start; }

/* Chips list (skills · answer options). A chip never overflows its card: a long label wraps onto a second line
   inside the chip (gate note 2026-10-15 — answer options were cut with "…" at 375, so they could not be read in full).
   One-line chips keep the 32px height: 8 + 16 + 8. */
.cv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-chips .vt-chip { flex: 0 1 auto; max-width: 100%; min-width: 0; height: auto; min-height: 32px; padding-block: 8px; white-space: normal; text-align: left; cursor: default; }
.cv-chips button.vt-chip { cursor: pointer; }

/* Employer question — 377:2508 */
.cv-question { display: flex; flex-direction: column; gap: 12px; }
.cv-question__text { font-size: 15px; line-height: 18px; font-weight: 600; color: var(--vt-semantic-ink); }

/* Actions row under a hairline — 377:2499 / 379:2891 */
.cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.cv-btn-56 { height: 56px; }                                         /* Button/Primary is 56 fixed in these flows */

/* Consent row — 380:3179 */
/* 08 privacy notice above the consent (content matrix row 105, lot 2) */
.cv-privacy { display: grid; gap: 6px; }
.cv-privacy .cv-note { margin: 0; line-height: 1.45; } /* long legal text (dp-uiux L4) */
.cv-consent { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 20px; background: var(--vt-neutral-50); cursor: pointer; }
.cv-consent span { font-size: 15px; line-height: 1.45; color: var(--vt-semantic-ink); } /* long legal consent (dp-qa PR #20) */

/* -----------------------------------------------------------------------------
   SIDE CARDS — summary 377:2635 · note cards 377:2653 / 380:3193 / 380:3197
   ----------------------------------------------------------------------------- */
.cv-summary {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 22px;
  border-radius: var(--vt-radius-28); background: var(--vt-base-white);
  box-shadow: inset 0 0 0 1.5px var(--vt-neutral-100), var(--vt-shadow-card);
}
.cv-summary__eyebrow, .cv-summary__employer { font-size: 14px; line-height: 17px; color: var(--vt-semantic-meta); }   /* 16.94 → 17 */
.cv-summary__title {
  font-family: var(--vt-font-display); font-weight: 700;
  font-size: 24px; line-height: 29px; letter-spacing: -0.36px; color: var(--vt-semantic-ink);        /* 28.8 → 29 */
}
.cv-summary .vt-kv { padding: 14px 0 0; }
.cv-summary .vt-kv__row { height: 42px; }
.cv-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 28px; border-radius: var(--vt-radius-28); background: var(--cliente-p1-rol-surface); }
.cv-aside--white { gap: 12px; padding: 26px 22px; background: var(--vt-base-white); box-shadow: inset 0 0 0 1.5px var(--vt-neutral-100); }
.cv-aside__title {
  font-family: var(--vt-font-display); font-weight: 700;
  font-size: 22px; line-height: 26px; letter-spacing: -0.22px; color: var(--vt-semantic-ink);        /* 26.4 → 26 */
}
.cv-aside__desc { font-size: 15px; line-height: 23px; color: var(--vt-semantic-body); }             /* 23.25 → 69 for 3 lines */
@media (min-width: 1024px) {
  .cv-summary, .cv-aside--white { padding: 26px 30px; }
}
