
.v3cf { --v3cf-line: #c9ccd4; container-type: inline-size; scroll-margin-top: 76px; background: #fff; border: 1px solid var(--line, #e3e5ea); border-radius: var(--r, 20px); overflow: hidden; color: var(--text, #3a3d45); font-family: var(--sans); text-align: left; }
.v3cf-art { position: relative; height: 112px; background: #f4f1ea url('/images/v3/art/consult.webp') 30% 58% / cover no-repeat; display: flex; align-items: flex-end; padding: 12px 16px; }
.v3cf-pill { background: rgba(18, 20, 26, .66); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; padding: 6px 12px; border-radius: 999px; }
.v3cf-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.v3cf-close:hover { background: #fff; }
.v3cf-progress { height: 3px; background: var(--line, #e3e5ea); }
.v3cf-progress span { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.v3cf-body { padding: 18px 24px 22px; margin: 0; }
.v3cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; }
.v3cf-kicker { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted, #6b7080); margin: 0 0 6px; }
.v3cf-title { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.v3cf-sub { color: var(--muted, #6b7080); font-size: 14px; line-height: 1.45; margin: 6px 0 14px; }
.v3cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.v3cf-wide { grid-column: 1 / -1; }
.v3cf-f { position: relative; margin: 0; min-width: 0; border: 0; padding: 0; }
/* the dropdown chevron is its own element: page CSS that resets select backgrounds cannot take it away (Vlad 18.10) */
.v3cf-f:has(> select)::after { content: ''; position: absolute; right: 17px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
fieldset.v3cf-f { margin-top: 12px; }
.v3cf-f > label, .v3cf-f > legend { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 5px; padding: 0; }
.v3cf-f > .v3cf-legend-sm { font-weight: 500; color: var(--muted, #6b7080); }
.v3cf-req { color: #c4473a; }
.v3cf :is(input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea) { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--v3cf-line); border-radius: 10px; background: #fff; font: 15px/1.4 var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.v3cf select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: none; cursor: pointer; }
.v3cf textarea { resize: vertical; min-height: 64px; }
.v3cf :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.v3cf .is-invalid { border-color: #c4473a !important; }
.v3cf-count { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted, #6b7080); margin-top: 3px; text-align: right; }
.v3cf-count:not(:has(.v3cf-fhint)) { justify-content: flex-end; }
.v3cf-count.is-over { color: #c4473a; }
.v3cf-count.is-ok { color: #2e7d32; }
.v3cf-fhint { text-align: left; }
.v3cf-err { color: #c4473a; font-size: 13px; margin: 4px 0 0; }
.v3cf .lc { margin: 12px 0 0; gap: 8px; }
.v3cf .lc-item { font-size: 13px; }
.v3cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.v3cf-btn { border: 0; cursor: pointer; font-family: var(--sans); font-size: 16px; padding: 14px 26px; }
.v3cf-btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.v3cf-hint { color: var(--muted, #6b7080); font-size: 13px; }
.v3cf-back { border: 0; background: none; padding: 6px 2px; font: 600 14px var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.v3cf-back:hover { color: var(--accent); }
.v3cf-details { margin: 0 0 10px; font-size: 13px; color: var(--muted, #6b7080); }
.v3cf-details summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.v3cf-details > div { background: var(--paper, #f4f1ea); border-radius: 12px; padding: 12px 14px; margin-top: 8px; line-height: 1.5; }
.v3cf-details p, .v3cf-details ul { margin: 6px 0; }
.v3cf-details ul { padding-left: 18px; }
.v3cf-note { font-style: italic; }
.v3cf-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v3cf-tile, .v3cf-tag { position: relative; cursor: pointer; }
.v3cf-tile input, .v3cf-tag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v3cf-tile span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 8px; border: 1px solid var(--v3cf-line); border-radius: 10px; font-size: 14px; color: var(--ink); transition: border-color .15s, background .15s; }
.v3cf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.v3cf-tag span { display: inline-block; padding: 7px 13px; border: 1px solid var(--v3cf-line); border-radius: 999px; font-size: 13px; color: var(--ink); transition: border-color .15s, background .15s; }
.v3cf-tile input:checked + span, .v3cf-tag input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.v3cf-tile input:focus-visible + span, .v3cf-tag input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }
.v3cf-budget.is-invalid .v3cf-tile span { border-color: #c4473a; }
.v3cf-alert { background: #fdecea; color: #8a1c12; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 12px 0 0; }
.v3cf-fine { color: var(--muted, #6b7080); font-size: 12px; margin: 10px 0 0; }
.v3cf-done p { margin: 10px 0 0; }
.v3cf-done:focus { outline: none; }
.v3cf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v3cf-dialog { border: 0; padding: 0; background: transparent; width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: visible; }
.v3cf-dialog::backdrop { background: rgba(18, 20, 26, .5); }
.v3cf-dialog .v3cf { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); box-shadow: 0 30px 70px -30px rgba(18, 20, 26, .45); }
.v3cf-dialog .v3cf-body { overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 600px) {
  .v3cf-art { height: 84px; padding: 10px 12px; background-position: 30% 63%; }
  .v3cf-pill { font-size: 12px; padding: 5px 10px; }
  .v3cf-body { padding: 14px 16px 18px; }
  .v3cf-title { font-size: 21px; }
  .v3cf-sub { margin-bottom: 12px; }
  .v3cf-grid { grid-template-columns: 1fr; gap: 8px; }
  .v3cf-tiles { grid-template-columns: 1fr 1fr; }
  .v3cf-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
  .v3cf-dialog .v3cf { height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
}
/* a narrow card (the form column of /advisers/consult-request): one field per row, the placeholders fit */
@container (max-width: 540px) { .v3cf-grid { grid-template-columns: 1fr; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .v3cf-progress span { transition: none; } }
