/* Vamos legal funnel (go.vamospanish.com/spain/legal/). Tokens copied from the section's legal.css v10 (ink, blue, amber,
   paper); system fonts so the page makes no font request. Logical properties so Arabic (dir="rtl") mirrors by itself.
   Pilot styling: B56 asks for 2 or 3 concepts with screenshots before a design change on the live section.
   S4b (0.3.0 r3): the booking page and the lawyers' own page follow design D of the CTA ladder (vamos-legal-cta cta.css): a white
   card, radius 20, an amber top edge and a deep soft shadow; outlined option cards (radius 16, 1.5px #80858F) with the price in an
   amber-tint pill; amber stays scarce (the top edge, the prices, the picked length). Contrast: ink on paper and white 15 to 17:1,
   ink-soft #565d6b on white 6.4:1 and on paper 5.9:1, blue-dark on blue-soft 8.3:1, white on ink 17:1; focus ring 3px blue. */
:root {
  --ink: #14181F; --ink-soft: #565d6b; --line: rgba(20, 24, 31, .12);
  --blue: #2B61B7; --blue-dark: #1D3FA6; --blue-soft: #EEF4FF;
  --amber: #F5A623; --amber-dark: #B8790A; --amber-tint: #FDECC8;
  --paper: #F7F4EE; --white: #ffffff; --ok: #16A34A; --err: #b42318;
  --radius: 20px; --r-sm: 12px; --pill: 9999px;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  --head: 'Bricolage Grotesque', Georgia, 'Noto Serif', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.vlf { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
.vlf a { color: var(--blue-dark); }
.vlf h1, .vlf h2, .vlf h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
.vlf h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
.vlf h2 { font-size: 1.3rem; }
.vlf h3 { font-size: 1.05rem; }
.vlf-wrap { width: 100%; max-width: 980px; margin: 0 auto; padding-inline: 16px; }
.vlf-preview { background: var(--amber-tint); color: #5a3b00; text-align: center; font-size: .9rem; padding: 6px 16px; border-block-end: 1px solid var(--amber); }
.vlf-top { background: var(--white); border-block-end: 1px solid var(--line); }
.vlf-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.vlf-brand { font-family: var(--head); font-weight: 800; font-size: 1.15rem; color: var(--ink) !important; text-decoration: none; }
.vlf-langs { display: flex; flex-wrap: wrap; gap: 4px; }
.vlf-langs a { text-decoration: none; font-size: .85rem; padding: 4px 8px; border-radius: var(--pill); color: var(--ink-soft); }
.vlf-langs a[aria-current="true"] { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
main.vlf-wrap { padding-block: 28px 40px; }
.vlf-hero { margin-block-end: 20px; }
.vlf-lead { font-size: 1.15rem; color: var(--ink-soft); margin: 0; }
.vlf-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-block-end: 16px; }
.vlf-ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-block: 8px 20px; }
.vlf-ladder .vlf-card { display: flex; flex-direction: column; margin: 0; }
.vlf-ladder .vlf-card .vlf-btn { margin-block-start: auto; align-self: flex-start; }
.vlf-primary { border: 2px solid var(--blue); box-shadow: 0 8px 30px rgba(20, 24, 31, .08); }
.vlf-price { font-size: 1.4rem; font-weight: 800; margin: .25em 0; }
.vlf-prices { padding-inline-start: 1.1em; margin: 0 0 1em; }
.vlf-small { font-size: .88rem; color: var(--ink-soft); }
.vlf-note { margin-block-start: 24px; }
.vlf-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 700 1rem var(--body); padding: .85rem 1.5rem; border-radius: var(--pill);
  background: var(--ink); color: #fff !important; border: 0; cursor: pointer; text-decoration: none; min-height: 48px; }
.vlf-btn:hover { background: var(--blue-dark); }
.vlf-btn:focus-visible, .vlf-time:focus-visible, .vlf-day:focus-visible, .vlf a:focus-visible, .vlf input:focus-visible, .vlf select:focus-visible, .vlf textarea:focus-visible, .vlf button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.vlf-btn[disabled] { opacity: .55; cursor: wait; }
.vlf-btn-ghost { background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); }
.vlf-btn-ghost:hover { background: var(--blue-soft); }
.vlf-outcome { border-radius: var(--radius); padding: 16px 20px; margin-block-end: 16px; border: 1px solid var(--line); background: var(--white); }
.vlf-outcome-meets { border-inline-start: 6px solid var(--ok); }
.vlf-outcome-unclear { border-inline-start: 6px solid var(--amber); }
.vlf-outcome-not { border-inline-start: 6px solid var(--ink-soft); }
.vlf-outcome-main { font-weight: 700; margin: 0 0 4px; }
.vlf-steps { list-style: none; padding: 0; margin: 0; }
.vlf-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-block-end: 16px; }
.vlf-field { display: block; margin-block-end: 14px; font-weight: 600; }
.vlf-field input, .vlf-field select, .vlf-field textarea { display: block; width: 100%; margin-block-start: 6px; font: 400 1rem var(--body); padding: .7rem .8rem;
  border: 1px solid #b9bdc6; border-radius: var(--r-sm); background: #fff; color: var(--ink); min-height: 46px; }
.vlf-field select { max-width: 360px; }
fieldset.vlf-field { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
fieldset.vlf-field legend { float: inline-start; width: 100%; padding: 0; margin-block-end: 10px; }
fieldset.vlf-field legend + * { clear: both; }
.vlf-opt { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.vlf-check { display: flex; gap: 10px; align-items: flex-start; margin-block-end: 12px; font-weight: 400; }
.vlf-check input { margin-block-start: .3em; width: 20px; height: 20px; flex: 0 0 auto; }
.vlf-warn { background: var(--amber-tint); padding: 8px 12px; border-radius: var(--r-sm); color: #5a3b00; }
.vlf-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.vlf-slots { margin-block-start: 8px; }
.vlf-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr)); gap: 8px; }
.vlf-time { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: .35rem .4rem; font: 700 1rem var(--body); border-radius: 12px; border: 1px solid var(--blue); background: var(--blue-soft); color: var(--blue-dark); cursor: pointer; }
.vlf-time-m { font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
.vlf-time:hover { background: var(--blue); color: #fff; }
.vlf-time:hover .vlf-time-m { color: #fff; }
.vlf-time[disabled] { opacity: .5; cursor: wait; }
.vlf-held { font-weight: 700; color: #7a4f00; }
/* placeholder times (no lawyer calendar yet): every time shown is a request the lawyer confirms */
.vlf-provisional { background: var(--amber-tint); color: #5a3b00; border-inline-start: 4px solid var(--amber); padding: 8px 12px; border-radius: var(--r-sm); font-weight: 600; }
.vlf-time-ph { border-style: dashed; }
.vlf-member { font-weight: 600; }
.vlf-pricebox { background: var(--paper); border-radius: var(--r-sm); padding: 14px 16px; margin-block: 8px 14px; }
.vlf-lines { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 0 0 8px; }
.vlf-lines dt { margin: 0; } .vlf-lines dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.vlf-total { display: flex; justify-content: space-between; gap: 12px; font-size: 1.15rem; margin: 6px 0 0; border-block-start: 1px solid var(--line); padding-block-start: 8px; }
.vlf-cur select { max-width: 160px; }
.vlf-msg { margin: 8px 0; font-weight: 600; }
.vlf-msg.vlf-err { color: var(--err); }
.vlf-msg.vlf-ok { color: var(--ok); }
.vlf-missing { color: var(--err); }
.vlf-closed { border-color: var(--amber); }
.vlf-dl { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 6px 16px; margin: 0 0 12px; }
.vlf-dl dt { font-weight: 700; margin: 0; } .vlf-dl dd { margin: 0; }
.vlf-dl dt, .vlf-dl dd { min-width: 0; overflow-wrap: anywhere; }
.vlf-files { padding-inline-start: 1.1em; margin: 0; }
.vlf-empty { list-style: none; color: var(--ink-soft); }
.vlf-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vlf-who { margin-block-start: 8px; }
.vlf-foot { border-block-start: 1px solid var(--line); background: var(--white); padding-block: 18px; font-size: .88rem; color: var(--ink-soft); }
.vlf-foot p { margin: 0 0 6px; }
#vlf-checkout { min-height: 320px; }
[hidden] { display: none !important; }
@media (max-width: 560px) {
  .vlf-card, .vlf-step { padding: 16px; border-radius: 16px; }
  .vlf-row { flex-direction: column-reverse; }
  .vlf-row .vlf-btn { width: 100%; }
  .vlf-dl { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ============================================================================ S4b: the booking page, design D */
.vlf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.vlf-set { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.vlf-sub { margin-block-start: 20px; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.vlf-sub h3 { font-family: var(--head); font-size: 1.1rem; margin: 0 0 .6em; }
/* 1. the lawyer cards: white, radius 20, amber top edge, deep soft shadow; the picked one gets an ink ring and a tick */
.vlf-lcard-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .vlf-lcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vlf-lcard { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; align-items: start; margin: 0; padding: 20px 16px 16px; border-radius: var(--radius); background: var(--white);
  box-shadow: inset 0 4px 0 var(--amber), 0 22px 44px -26px rgba(20, 24, 31, .5); cursor: pointer; transition: box-shadow .15s ease; }
.vlf-lcard:hover { box-shadow: inset 0 4px 0 var(--amber), inset 0 0 0 2px #80858F, 0 22px 44px -26px rgba(20, 24, 31, .5); }
.vlf-lcard.is-on { box-shadow: inset 0 4px 0 var(--amber), inset 0 0 0 3px var(--ink), 0 22px 44px -26px rgba(20, 24, 31, .5); }
@supports selector(:has(*)) { .vlf-lcard:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; } }
@supports not selector(:has(*)) { .vlf-lcard .vlf-sr:focus-visible ~ .vlf-lc-pic { outline: 3px solid var(--blue); outline-offset: 3px; } }
.vlf-lc-pic { position: relative; width: 96px; height: 120px; border-radius: 14px; overflow: hidden; background: var(--blue-soft); color: var(--blue-dark); }
.vlf-lc-mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 1.9rem; letter-spacing: .02em; }
.vlf-lc-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vlf-nopic img { display: none; }
.vlf-lc-body { display: grid; gap: 5px; min-width: 0; align-content: start; }
.vlf-lc-name { font-family: var(--head); font-weight: 700; font-size: 1.15rem; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; padding-inline-end: 28px; }
.vlf-lc-role { justify-self: start; padding: .18rem .6rem; border-radius: var(--pill); background: var(--blue-soft); color: var(--blue-dark); font-size: .78rem; font-weight: 700; line-height: 1.3; }
.vlf-lc-langs { font-size: .86rem; line-height: 1.4; color: var(--ink-soft); }
.vlf-lc-k { font-weight: 700; }
.vlf-lc-prices { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 3px; }
.vlf-pill { display: inline-flex; align-items: baseline; gap: .3rem; padding: .2rem .55rem; border-radius: var(--pill); background: var(--amber-tint); color: var(--ink); font-size: .85rem; white-space: nowrap; }
.vlf-pill b { font-weight: 800; }
.vlf-lc-iva { font-size: .8rem; line-height: 1.35; color: var(--ink-soft); }
.vlf-lc-tick { position: absolute; inset-block-start: 14px; inset-inline-end: 12px; display: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); }
.vlf-lc-tick::after { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.vlf-lcard.is-on .vlf-lc-tick { display: block; }
/* a lawyer who is not in the go calendar yet: the same card, no amber edge, WhatsApp buttons under it */
.vlf-lcard-off { cursor: default; box-shadow: inset 0 4px 0 var(--line), 0 14px 30px -24px rgba(20, 24, 31, .4); }
.vlf-lcard-off:hover { box-shadow: inset 0 4px 0 var(--line), 0 14px 30px -24px rgba(20, 24, 31, .4); }
.vlf-lc-off { grid-column: 1 / -1; margin-block: 12px 8px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.vlf-lc-wa { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vlf a.vlf-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 44px; padding: .65rem .8rem; border-radius: 16px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1.5px #80858F; }
.vlf a.vlf-opt:hover { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.vlf-opt-t { font-weight: 700; }
.vlf-opt-s { font-size: .82rem; font-weight: 700; color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
/* 2. the length: design D's chips (amber-tint, ink ring, a dot; the picked one amber with a filled dot) */
.vlf-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 28rem; }
.vlf-chip { position: relative; display: block; margin: 0; cursor: pointer; }
.vlf-chip.is-off { display: none; }
.vlf-chip-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 4.4rem; padding: .65rem .8rem; border-radius: 14px; background: var(--amber-tint); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; text-align: center; transition: background-color .15s ease; }
.vlf-chip:hover .vlf-chip-in { background: #fbdca0; }
.vlf-chip input:checked + .vlf-chip-in { background: var(--amber); }
.vlf-chip input:focus-visible + .vlf-chip-in { outline: 3px solid var(--blue); outline-offset: 3px; }
.vlf-chip-t::before { content: ""; display: inline-block; width: 1rem; height: 1rem; margin-inline-end: .5rem; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); vertical-align: -.15em; }
.vlf-chip input:checked + .vlf-chip-in .vlf-chip-t::before { background: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px #fff; }
.vlf-chip-in .vlf-pill { background: #fff; }
.vlf-len-iva { margin-block: 8px 0; }
/* 3. the 21 days: seven columns, one outlined button a day; the picked day is ink with white text */
.vlf-cal { margin-block: 6px 12px; }
.vlf-cal-head, .vlf-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.vlf-cal-head span { padding-block: 2px 4px; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-soft); }
.vlf-day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46px; padding: 2px; border: 0; border-radius: 12px; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px #80858F; font: 700 1rem/1.05 var(--body); cursor: pointer; }
.vlf-day-m { font-size: .62rem; font-weight: 600; text-transform: uppercase; color: var(--ink-soft); }
.vlf-day:hover:not(:disabled) { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.vlf-day[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.vlf-day[aria-pressed="true"] .vlf-day-m { color: rgba(255, 255, 255, .85); }
.vlf-day:disabled { background: var(--paper); color: #656c7a; box-shadow: inset 0 0 0 1px var(--line); cursor: default; font-weight: 600; }
.vlf-day:disabled .vlf-day-m { color: #656c7a; }
.vlf-times-h { margin: 14px 0 8px; font-family: var(--body); font-size: .95rem; font-weight: 700; }
/* ============================================================================ S4b: the lawyers' own page */
.vlf-lp h2 { margin-block-end: .4em; }
.vlf-lp-msg { padding: 10px 14px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); }
.vlf-lp-calls { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vlf-lp-call { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: inset 0 4px 0 var(--amber); }
.vlf-lp-call h3 { margin: 0 0 6px; font-family: var(--body); font-size: 1rem; font-weight: 800; }
.vlf-lp-call .vlf-dl { margin: 6px 0 0; }
.vlf-lp-days { display: grid; gap: 10px; margin-block-end: 14px; }
.vlf-lp-day { margin: 0; padding: 10px 12px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; }
.vlf-lp-day legend { padding-inline: 4px; font-weight: 800; }
.vlf-lp-range { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 6px; }
.vlf-lp-range label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; }
.vlf-lp-range input { min-height: 44px; padding: .4rem .6rem; border: 1px solid #80858F; border-radius: 10px; background: #fff; color: var(--ink); font: 400 1rem var(--body); }
.vlf-lp-off { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.vlf-lp-off li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-block: 8px; border-block-end: 1px solid var(--line); }
.vlf-lp-off-d { font-weight: 700; }
.vlf-lp-inline { display: inline; margin: 0; }
.vlf-btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .9rem; }
@media (min-width: 640px) { .vlf-lp-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .vlf-lcard, .vlf-chip-in, .vlf-day, .vlf-time { transition: none; } }

/* ============================================================================ 0.4.0: Ready to start, the client's page, the team dashboard */
.svc-how { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.svc-how li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: inset 0 4px 0 var(--amber); display: grid; gap: 4px; }
.svc-how b { font-family: var(--head); font-size: 1.05rem; }
.svc-how span { font-size: .9rem; color: var(--ink-soft); }
.svc-pick-sel { display: block; width: 100%; max-width: 560px; margin-block: 6px 14px; font: 400 1rem var(--body); padding: .7rem .8rem; border: 1px solid #b9bdc6; border-radius: var(--r-sm); background: #fff; color: var(--ink); min-height: 46px; }
.svc-price { background: var(--paper); border-radius: var(--r-sm); padding: 12px 16px; margin-block: 8px 14px; border-inline-start: 4px solid var(--amber); }
.svc-price p { margin: 0 0 6px; }
.svc-check, .svc-slots, .svc-calls { list-style: none; margin: 0; padding: 0; }
.svc-check li { display: flex; gap: 10px; align-items: baseline; padding-block: 7px; border-block-end: 1px solid var(--line); }
.svc-check li > span:not(.svc-tag) { min-width: 0; overflow-wrap: anywhere; } /* 0.5.2 fix (QA 9): a long German word ("Arbeitgeberbescheinigung") broke the 390 px width by 7 px */
.svc-tag { flex: 0 0 auto; display: inline-block; padding: .1rem .55rem; border-radius: var(--pill); background: var(--blue-soft); color: var(--blue-dark); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.svc-tag-req { background: var(--amber-tint); color: #5a3b00; }
.svc-slot { padding: 12px 0; border-block-end: 1px solid var(--line); }
.svc-slot-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.svc-slot-label { font-weight: 600; flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.svc-slot-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-block-start: 8px; }
.svc-slot-msg { margin: 6px 0 0; }
.svc-chip { display: inline-block; padding: .2rem .7rem; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.svc-chip-accepted { background: #e5f6ec; border-color: #9bd5b1; color: #0d5a2b; }
.svc-chip-rejected { background: #fdecea; border-color: #f0b4ad; color: var(--err); }
.svc-chip-checking, .svc-chip-review, .svc-chip-received { background: var(--amber-tint); border-color: #f1cf8d; color: #5a3b00; }
.svc-pick-btn { cursor: pointer; }
.svc-pick-btn:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.svc-who { margin-block-end: 12px; }
.svc-line { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 0; }
.svc-line li { display: flex; gap: 12px; align-items: flex-start; padding-block: 8px; position: relative; }
.svc-line li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 8px; top: 28px; bottom: -4px; width: 2px; background: var(--line); }
.svc-dot { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #80858F; background: #fff; margin-block-start: 3px; }
.svc-line-done .svc-dot { background: var(--ok); border-color: var(--ok); }
.svc-line-now .svc-dot { background: var(--amber); border-color: var(--ink); box-shadow: 0 0 0 4px var(--amber-tint); }
.svc-line-next { color: var(--ink-soft); }
.svc-outcome { padding: 10px 14px; border-radius: var(--r-sm); background: var(--paper); border-inline-start: 5px solid var(--amber); }
.svc-outcome-approved { border-color: var(--ok); }
.svc-outcome-more_docs { border-color: var(--err); }
.svc-calls li { padding-block: 8px; border-block-end: 1px solid var(--line); }
.svt-wrap { overflow-x: auto; }
.svt { width: 100%; border-collapse: collapse; font-size: .92rem; }
.svt th { text-align: start; padding: 6px 8px; border-block-end: 2px solid var(--ink); white-space: nowrap; }
.svt td { padding: 8px; vertical-align: top; border-block-end: 1px solid var(--line); }
.svt-p1 td:last-child { font-weight: 800; color: var(--err); }
.svt-p2 td:last-child { font-weight: 700; }
.svt-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svt-docs li { padding-block: 8px; border-block-end: 1px solid var(--line); }
.svt-doc-row { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; margin-block-start: 6px; }
.svt-doc-row input { min-height: 40px; padding: .3rem .5rem; border: 1px solid #80858F; border-radius: 10px; font: 400 .9rem var(--body); }
.svt-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 8px; }
@media (max-width: 640px) {
  .svt thead { position: absolute; inset-inline-start: -9999px; }
  .svt, .svt tbody, .svt tr, .svt td { display: block; width: 100%; }
  .svt tr { border: 1px solid var(--line); border-radius: 12px; margin-block-end: 10px; padding: 6px 4px; }
  .svt td { border: 0; padding: 4px 8px; }
  .svt td::before { content: attr(data-l); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); }
}

/* ---- 0.5.0: the staff portal and the client's requests and messages. Same tokens; amber stays scarce (the warning tiles and banners). */
body.vlf-staff .vlf-wrap { max-width: 1180px; }
.sp-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-block-end: 18px; padding: 8px 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); }
.sp-nav a { text-decoration: none; padding: 6px 12px; border-radius: var(--pill); color: var(--ink); font-weight: 600; font-size: .95rem; }
.sp-nav a:hover { background: var(--blue-soft); }
.sp-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.sp-nav-who { margin-inline-start: auto; color: var(--ink-soft); font-size: .9rem; padding-inline: 8px; }
.sp-banner { background: var(--amber-tint); border: 1px solid #f1cf8d; color: #4a3000; border-radius: var(--r-sm); padding: 10px 14px; margin-block: 0 16px; font-size: .95rem; }
.sp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-block-end: 16px; }
.sp-tile { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 84px; padding: 12px 16px; background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.sp-tile b { font: 800 1.9rem/1 var(--head); }
.sp-tile span { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }
.sp-tile:hover, .sp-tile.is-on { border-color: var(--blue); background: var(--blue-soft); }
.sp-tile-warn { border-color: #e0b7b0; }
.sp-tile-warn b { color: var(--err); }
.sp-filters { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; padding: 14px 18px; }
.sp-filters .vlf-field { margin: 0; min-width: 140px; }
.sp-filters .sp-q { flex: 1 1 220px; }
.sp-small-form { margin-block-start: 12px; }
.sp-form { margin: 0 0 6px; }
.sp-test, .svc-chip.sp-test { background: var(--amber-tint); border-color: var(--amber); color: #4a3000; }
.sp-testbox { border: 2px dashed var(--amber); background: #fffaf0; }
.sp-thread { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.sp-msg { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.sp-msg p { margin: 0 0 4px; }
.sp-msg-client { background: var(--blue-soft); }
.sp-msg-request { border-inline-start: 5px solid var(--amber); }
.sp-msg-note { background: #fffaf0; border-style: dashed; }
.sp-ask { border: 2px solid var(--amber); background: #fffaf0; }
.sp-asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sp-ask-q { font-weight: 600; margin: 0 0 4px; }
.sp-reply textarea, .sp-form textarea, .vlf-lp-form textarea { width: 100%; font: 400 1rem var(--body); padding: .6rem .8rem; border: 1.5px solid #80858F; border-radius: 12px; }
.sp-viewer { width: 100%; min-height: 78vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sp-viewer-img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.sp-tasks { margin: 0 0 12px; padding-inline-start: 1.1em; }
.sp-late { color: var(--err); font-weight: 700; }
.sp-check { margin: 4px 0 0; }
.sp-audit { max-height: 320px; overflow: auto; }
.sp-login { max-width: 520px; }
.vlf-card details { margin-block-end: 8px; }
.vlf-card summary { cursor: pointer; font-weight: 700; padding-block: 6px; }
@media (max-width: 640px) { .sp-nav-who { margin-inline-start: 0; width: 100%; } .sp-tile b { font-size: 1.6rem; } }

/* 0.5.3: the time zone line over the times of the booking page, with a switch between the visitor's own time and Madrid time */
#vlf-tz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-weight: 600; color: var(--ink); }
.vlf-tz-switch { font: 700 .88rem var(--body); min-height: 44px; padding: 4px 16px; border: 2px solid var(--ink); border-radius: var(--pill); background: var(--white); color: var(--ink); cursor: pointer; }
.vlf-tz-switch:hover { background: var(--blue-soft); }
.vlf-tz-switch:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* 0.5.6: the client portal views: the status page, the document cards. Phone first. Status is never colour alone: a word and an icon go with every colour. */
.cl-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 4px 0 12px; }
.cl-seg { height: 10px; border-radius: 6px; background: var(--line); }
.cl-seg.is-done { background: var(--ok); }
.cl-seg.is-now { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-tint); }
.cl-step { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.cl-meter { width: 100%; height: 14px; accent-color: var(--blue); margin-block: 4px 10px; }
.cl-sums { display: grid; grid-template-columns: 1fr; gap: 12px; margin-block: 14px; }
.cl-sum { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; min-width: 0; }
.cl-sum:hover { border-color: var(--blue); }
.cl-sum:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cl-sum.is-warn { border-color: #f0b4ad; background: #fffafa; }
.cl-sum .vlf-ico { flex: 0 0 22px; color: var(--blue-dark); margin-block-start: 2px; }
.cl-sum-b { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.cl-sum-1 { font-weight: 600; }
.cl-sum-2 { color: var(--ink-soft); font-size: .9rem; }
.cl-sum-go { margin-inline-start: auto; color: var(--ink-soft); font-size: 1.4rem; line-height: 1; }
[dir="rtl"] .cl-sum-go { transform: scaleX(-1); }
.cl-h { margin: 22px 0 10px; font-size: 1.1rem; }
.cl-n { display: inline-block; min-width: 1.5em; padding: 0 .45em; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); font-size: .8rem; text-align: center; font-weight: 700; }
.cl-none { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.cl-none .cl-ic { color: var(--ok); }
.cl-need, .cl-grid { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.cl-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); min-width: 0; }
.cl-need .cl-card { border-inline-start: 6px solid var(--amber); }
.cl-card.is-rejected { border-inline-start: 6px solid var(--err); }
.cl-card.is-accepted .cl-ic { color: var(--ok); }
.cl-card.is-rejected .cl-ic { color: var(--err); }
.cl-card.is-ask .cl-ic, .cl-card.is-none .cl-ic, .cl-card.is-checking .cl-ic, .cl-card.is-review .cl-ic, .cl-card.is-received .cl-ic { color: var(--amber-dark); }
.cl-ic { flex: 0 0 18px; width: 18px; height: 18px; }
.cl-st { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }
.cl-date { color: var(--ink-soft); font-size: .85rem; }
.cl-card .svc-slot-act { margin-block-start: 10px; }
.cl-up { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block-start: 10px; }
.cl-up input[type="file"] { max-width: 100%; min-width: 0; }
.svc-chip-ask, .svc-chip-none { background: var(--amber-tint); border-color: #f1cf8d; color: #5a3b00; }
@media (min-width: 700px) { .cl-sums, .cl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .cl-grid { grid-template-columns: repeat(3, 1fr); } }
.cl-opt > summary { cursor: pointer; list-style-position: inside; }
.cl-opt[open] > summary { margin-block-end: 10px; }
.cl-fine { margin-block-start: 20px; }
.cl-due { color: var(--err); font-weight: 700; }

/* 0.6.0 (CRM spec, Part 0): the booking page. Language chips and the "speaks" note on a card, the next free time, times grouped by morning, afternoon and evening,
   and the details form in two parts ("Your price", then "For your engagement letter"). Contrast: ink-soft on white 6.4:1, blue-dark on blue-soft 8.3:1. */
.vlf-lchip { display: inline-block; padding: 0 .55rem; margin-inline: 0 4px; border-radius: var(--pill); background: var(--blue-soft); color: var(--blue-dark); font-size: .8rem; font-weight: 700; }
.vlf-lc-speaks { display: block; font-size: .84rem; color: #5a3b00; background: var(--amber-tint); border-radius: 8px; padding: 2px 8px; margin-block-start: 4px; }
.vlf-lc-next { display: block; font-size: .84rem; color: var(--ink-soft); margin-block-start: 4px; }
.vlf-lc-next:empty { display: none; }
.vlf-lcard { padding-block-end: 18px; } /* the Mr. Legal helper at the corner no longer covers the last line at 390 px */
.vlf-tgroup { margin-block-end: 14px; }
.vlf-tgroup-h { margin: 0 0 6px; font-size: .95rem; color: var(--ink-soft); font-family: var(--body); font-weight: 700; }
.vlf-time[hidden] { display: none; }
.vlf-showall { margin-block-start: 8px; min-height: 44px; padding: 6px 16px; border-radius: var(--pill); border: 1.5px solid var(--blue); background: var(--white); color: var(--blue-dark); font: 700 .95rem var(--body); cursor: pointer; }
.vlf-fs { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.vlf-fs[hidden] { display: none; }
.vlf-fs > legend { font: 800 1.1rem var(--head); padding: 0; margin-block-end: 8px; }
.vlf-sum { background: var(--blue-soft); border-radius: var(--r-sm); padding: 8px 12px; overflow-wrap: anywhere; }
#vlf-row-b[hidden], #vlf-next[hidden], #vlf-back[hidden] { display: none; }

/* 0.6.4: Latin letters in the fields the engagement letter prints: the hint under each field and the message at it */
.vlf-latin-hint { display: block; margin-block-start: 4px; font-weight: 400; }
.vlf-latin-err { display: block; margin-block-start: 4px; font-weight: 600; color: var(--err); }
.vlf-latin-err[hidden] { display: none; }
.vlf-latin-line { display: block; }
.vlf-field input.vlf-bad { border-color: var(--err); }
