/* =============================================================================
   Shared FORM patterns — 12 · Register a Vacancy · 14 · Contact Us · 19 · Request a Callback
   Read from Figma 386:3536 / 387:4115 · 389:4116 / 391:4646 · 396:5365 / 398:5823.
   Prefix fm-. Line-heights are the whole-pixel text boxes Figma lays out with
   (14.4 → 14, 14.52 → 15, 18.15 → 18, 16.94 → 17, 19.36 → 19, 20.57 → 21).
   Mobile first · desktop ≥ 1024px.
   ============================================================================= */

/* Section + two-column row (main + side) */
.fm-section { padding-block: 28px 56px; }
.fm-stack { display: flex; flex-direction: column; gap: 16px; }
.fm-main, .fm-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1024px) {
  .fm-section { padding-block: 64px 110px; }
  .fm-stack--row { flex-direction: row; align-items: flex-start; gap: 48px; }
  .fm-main { flex: 1 1 0; gap: 24px; }
  .fm-side { flex: none; gap: 20px; }
}

/* Form card — white, r28, inside stroke */
.fm-card {
  display: flex; flex-direction: column; gap: 20px; min-width: 0;
  padding: var(--fm-card-pad-y, 26px) 20px;
  border: 0; margin: 0;
  border-radius: var(--vt-radius-28);
  background: var(--vt-base-white);
  box-shadow: inset 0 0 0 1.5px var(--vt-neutral-100);
}
.fm-card__title {
  font-family: var(--vt-font-display); font-weight: 700;
  font-size: 26px; line-height: 31px; letter-spacing: -0.39px;
  color: var(--vt-semantic-ink);
}
.fm-card__group { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (min-width: 1024px) {
  .fm-card { padding: var(--fm-card-pad-y-d, 32px) 36px; }
  .fm-card__title { font-size: 30px; line-height: 36px; letter-spacing: -0.45px; }
}

/* Field rows — stacked on Mobile (gap 14), side by side on Desktop (gap 20) */
.fm-row { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 1024px) {
  .fm-row { flex-direction: row; align-items: flex-start; gap: 20px; }
  .fm-row > * { flex: 1 1 0; }
}

/* Field = label + control (gap 8) */
.fm-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.fm-label {
  display: block; padding: 0;
  font-size: 12px; line-height: 15px; 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);
}
.fm-label--fld { line-height: 14px; }            /* «fld» frames: VT/Label 12 / 14.4 */
.fm-field:focus-within > .fm-label { color: var(--cliente-p1-rol-primary); }

/* Select — pill, chevron on the right (frames «select») */
.fm-select { position: relative; display: block; }
.fm-select select {
  display: block; width: 100%; height: 56px;
  padding: 0 52px 0 24px;
  border: 0; border-radius: var(--vt-radius-pill);
  background: var(--vt-base-white);
  box-shadow: inset 0 0 0 1.5px var(--vt-neutral-200);
  font-size: 15px; line-height: 18px; font-weight: 400;
  color: var(--vt-neutral-500);                   /* "Please select…" */
  appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: box-shadow var(--vt-dur-1) var(--vt-ease-soft), outline-color var(--vt-dur-1) var(--vt-ease-soft);
}
.fm-select select:hover { box-shadow: inset 0 0 0 1.5px var(--vt-raw-state-focus); }
.fm-select select:focus-visible { outline: 3px solid var(--vt-raw-state-focus); outline-offset: 0; }
.fm-select .vt-icon {
  position: absolute; right: 20px; top: 20px; pointer-events: none;
  color: var(--vt-semantic-ink);
  transition: transform var(--vt-dur-2) var(--vt-ease-out);
}
.fm-select:focus-within .vt-icon { transform: translate3d(0, 2px, 0); }

/* Textarea — r24 (frames «textarea») */
.fm-textarea {
  display: block; width: 100%; height: 132px;
  padding: 16px 24px;
  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: 18px; font-weight: 400;
  color: var(--vt-semantic-ink);
  resize: none; appearance: none;
  transition: box-shadow var(--vt-dur-1) var(--vt-ease-soft), outline-color var(--vt-dur-1) var(--vt-ease-soft);
}
.fm-textarea--140 { height: 140px; }
.fm-textarea::placeholder { color: var(--vt-neutral-500); opacity: 1; }
.fm-textarea:hover { box-shadow: inset 0 0 0 1.5px var(--vt-raw-state-focus); }
.fm-textarea:focus-visible { outline: 3px solid var(--vt-raw-state-focus); outline-offset: 0; }

/* Option chips (radio group drawn with Chip 195:22) */
.fm-options { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-option { position: relative; display: inline-flex; max-width: 100%; cursor: pointer; }
.fm-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fm-option .vt-chip { pointer-events: none; }
.fm-option input:checked + .vt-chip {
  background: var(--vt-raw-chip-cyan-bg);
  box-shadow: inset 0 0 0 1px var(--vt-raw-chip-cyan-line);
  color: var(--cliente-p1-rol-primary);
}
.fm-option input:focus-visible + .vt-chip { outline: 3px solid var(--vt-raw-state-focus); outline-offset: 0; }
@media (hover: hover) and (pointer: fine) {
  .fm-option:hover input:not(:checked) + .vt-chip { background: var(--vt-neutral-100); transform: translate3d(0, -1px, 0); }
}

/* Consent row */
.fm-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 18px; color: var(--vt-semantic-ink); cursor: pointer; }
.fm-consent--center { align-items: center; padding-top: 4px; width: fit-content; }
.fm-consent span { padding-top: 0; min-width: 0; }
.fm-consent:not(.fm-consent--center) span { margin-top: 1px; margin-bottom: 1px; }   /* 18px text in a 20px row */
.fm-consent a { color: inherit; }

/* Submit row */
.fm-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.fm-submit .vt-btn--primary { height: 56px; align-self: flex-start; }

/* Callout — surface panel inside a card */
.fm-callout {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 20px 22px; border-radius: 20px;
  background: var(--cliente-p1-rol-surface);
}
.fm-callout--fields { gap: 16px; }
.fm-callout__title { font-size: 17px; line-height: 21px; font-weight: 600; color: var(--vt-semantic-ink); }
.fm-callout__body { font-size: 15px; line-height: 18px; color: var(--vt-semantic-body); }
.fm-callout__body--link { color: var(--cliente-p1-rol-primary); }

/* Side cards */
.fm-sidecard {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 26px 22px; border-radius: var(--vt-radius-28);
}
.fm-sidecard--white   { background: var(--vt-base-white); box-shadow: inset 0 0 0 1.5px var(--vt-neutral-100); }
.fm-sidecard--surface { background: var(--cliente-p1-rol-surface); }
.fm-sidecard--slab    { background: var(--vt-semantic-slab); }
.fm-sidecard__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);
}
.fm-sidecard__title--24 { font-size: 24px; line-height: 29px; letter-spacing: -0.36px; }
.fm-sidecard--slab .fm-sidecard__title { color: var(--vt-base-white); }
.fm-sidecard__link { width: fit-content; font-size: 15px; line-height: 18px; font-weight: 600; color: var(--cliente-p1-rol-primary); }
.fm-sidecard .vt-btn { width: 100%; }
@media (min-width: 1024px) { .fm-sidecard { padding-inline: 28px; } }

/* "[… — client to supply]" placeholders Figma draws */
.fm-pending { color: var(--vt-neutral-500); }

/* Conditional blocks (js/ui.js §5) — client review 14, 2026-10-15. [hidden] must win over the flex display above. */
[data-when][hidden] { display: none !important; }
