/* One-question-at-a-time enquiry form (vf-stepper.js). Inherits the text colour of where it sits,
   so it works on light and dark sections; the accent comes from the site's config. */
.vfs {
  --vfs-accent: #15304a;
  --vfs-accent-ink: #fff;
  --vfs-line: color-mix(in srgb, currentColor 22%, transparent);
  --vfs-soft: color-mix(in srgb, currentColor 7%, transparent);
  width: 100%;
  max-width: 680px;
  font-family: var(--vfs-font, "Barlow", system-ui, sans-serif);
  font-size: 17px;
  line-height: 1.45;
  color: inherit;
  text-align: left;
  color-scheme: light;
  scroll-margin-top: 110px; /* clear of sticky headers when a step scrolls into view */
}
/* the form has its own WhatsApp link; the floating button steps aside while it's on screen */
html.vfs-in-view .vf-wa { visibility: hidden; pointer-events: none; }
.vfs-dark { color-scheme: dark; }
.vfs *, .vfs *::before, .vfs *::after { box-sizing: border-box; }
.vfs-in .vfs-step { animation: vfs-rise 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes vfs-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.vfs-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.vfs-count { flex: none; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.vfs-bar { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--vfs-line); overflow: hidden; }
.vfs-bar > span { position: absolute; inset: 0 auto 0 0; background: var(--vfs-accent); border-radius: inherit; transition: width 0.35s ease; }
.vfs-dark .vfs-bar > span { background: color-mix(in srgb, var(--vfs-accent) 55%, #fff); }

.vfs-step { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.vfs-q { display: block; margin: 0; font-family: var(--vfs-font-q, "Lora", Georgia, serif); font-weight: 600; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.18; letter-spacing: -0.01em; color: inherit; outline: none; }
.vfs-hint { margin: -4px 0 0; opacity: 0.78; }
.vfs-small { margin: 0; font-size: 14px; opacity: 0.78; }
.vfs-small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.vfs-muted { opacity: 0.6; }

.vfs-input {
  width: 100%;
  min-height: 56px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 2px solid var(--vfs-line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: 500 22px/1.3 var(--vfs-font, "Barlow", system-ui, sans-serif);
  outline: none;
  transition: border-color 0.2s ease;
}
.vfs-input::placeholder { color: inherit; opacity: 0.45; }
.vfs-input:focus { border-bottom-color: var(--vfs-accent); }
.vfs-dark .vfs-input:focus { border-bottom-color: color-mix(in srgb, var(--vfs-accent) 55%, #fff); }
.vfs-area { min-height: 96px; resize: vertical; font-size: 19px; }
.vfs-input[aria-invalid="true"] { border-bottom-color: #c0392b; }
.vfs-other[hidden] { display: none; }

.vfs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vfs-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--vfs-line);
  border-radius: 999px;
  background: var(--vfs-soft);
  color: inherit;
  font: 500 16px/1.2 var(--vfs-font, "Barlow", system-ui, sans-serif);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.vfs-chip:hover { border-color: currentColor; }
.vfs-chip:active { transform: scale(0.97); }
.vfs-chip[aria-pressed="true"] { background: var(--vfs-accent); border-color: var(--vfs-accent); color: var(--vfs-accent-ink); }

.vfs-error { margin: 0; color: #c0392b; font-weight: 600; }
.vfs-dark .vfs-error { color: #ff9b8f; }
.vfs-error[hidden] { display: none; }

.vfs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
.vfs-next, .vfs-back, .vfs-skip, .vfs-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 10px;
  font: 600 16px/1 var(--vfs-font, "Barlow", system-ui, sans-serif);
  cursor: pointer;
  text-decoration: none;
}
.vfs-next { padding: 0 22px; border: 0; background: var(--vfs-accent); color: var(--vfs-accent-ink); }
.vfs-next:hover { filter: brightness(1.08); }
.vfs-next[disabled] { opacity: 0.7; cursor: progress; }
.vfs-back, .vfs-skip { padding: 0 14px; border: 1px solid var(--vfs-line); background: transparent; color: inherit; }
.vfs-skip { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.vfs-back:hover { border-color: currentColor; }
.vfs-icon { flex: none; }

.vfs-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  min-height: 44px;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
.vfs-wa .vfs-icon { color: #1fa855; }
.vfs-dark .vfs-wa .vfs-icon { color: #25d366; }
.vfs-wa:hover { text-decoration-color: currentColor; }
.vfs-wa-big { align-self: flex-start; background: #25d366; color: #fff; }

.vfs-review { margin: 0; border-top: 1px solid var(--vfs-line); }
.vfs-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 4px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--vfs-line); }
.vfs-row dt { font-size: 14px; opacity: 0.75; }
.vfs-row dd { margin: 0; overflow-wrap: anywhere; }
.vfs-edit { width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; opacity: 0.7; }
.vfs-edit:hover { opacity: 1; }
@media (max-width: 480px) {
  .vfs-row { grid-template-columns: 1fr auto; }
  .vfs-row dt { grid-column: 1 / -1; }
  .vfs-input { font-size: 20px; }
}

.vfs-badge { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: var(--vfs-accent); color: var(--vfs-accent-ink); }
.vfs-badge .vfs-icon { width: 24px; height: 24px; }

.vfs :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.vfs-input:focus-visible { outline: none; }
.vfs-sr, .vfs-trap { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .vfs-in .vfs-step { animation: none; }
  .vfs-bar > span, .vfs-chip, .vfs-input { transition: none; }
}
