/* Mansard - formularze z własnym wyglądem, wysyłane do JotForm (mansard-form.js) */
.mf { display:flex;flex-direction:column;gap:16px; }
.mf-row { display:grid;grid-template-columns:1fr 1fr;gap:16px; }
@media (max-width:560px) { .mf-row { grid-template-columns:1fr; } }
.mf-field { display:flex;flex-direction:column;gap:6px;border:0;padding:0;margin:0;min-width:0; }
.mf-label { font-size:13px;font-weight:600;color:#111827; }
.mf-label .opt { font-weight:500;color:#9ca3af; }
.mf-input { width:100%;border:1.5px solid #e5e7eb;border-radius:10px;padding:12px 14px;font-size:15px;color:#111827;background:#fff;font-family:inherit;
  transition:border-color .2s ease,box-shadow .2s ease; }
.mf-input::placeholder { color:#9ca3af; }
.mf-input:hover { border-color:#d1d5db; }
.mf-input:focus { outline:none;border-color:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.12); }
.mf-input[aria-invalid="true"] { border-color:#dc2626; }
textarea.mf-input { resize:vertical;min-height:104px;line-height:1.6; }
.mf-drop { position:relative;display:flex;align-items:center;gap:12px;border:1.5px dashed #d1d5db;border-radius:12px;padding:14px 16px;background:#fafafa;cursor:pointer;
  transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease; }
.mf-drop:hover,.mf-drop.is-over { border-color:#dc2626;background:rgb(254,242,242); }
.mf-drop:focus-within { border-color:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.12); }
.mf-drop[aria-invalid="true"] { border-color:#dc2626; }
.mf-drop input { position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer; }
.mf-drop b { font-size:14px;color:#111827; }
.mf-drop small { display:block;font-size:12px;color:#9ca3af;margin-top:2px; }
.mf-files { display:flex;flex-direction:column;gap:6px; }
.mf-files:not(:empty) { margin-top:8px; }
.mf-file { display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f3f4f6;border-radius:8px;padding:6px 6px 6px 12px;font-size:13px;color:#374151; }
.mf-file span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.mf-file button { flex-shrink:0;width:28px;height:28px;border-radius:6px;color:#6b7280;font-size:18px;line-height:1;background:none;border:0;cursor:pointer;transition:color .15s ease,background-color .15s ease; }
.mf-file button:hover { color:#dc2626;background:#fff; }
.mf-file button:focus-visible { outline:2px solid #dc2626;outline-offset:1px; }
.mf-chips { display:flex;flex-wrap:wrap;gap:8px; }
.mf-choices { display:grid;grid-template-columns:repeat(2,1fr);gap:8px; }
@media (max-width:420px) { .mf-choices { grid-template-columns:1fr; } }
.mf-choice { position:relative; }
.mf-choice input { position:absolute;opacity:0;pointer-events:none; }
.mf-choice span { display:flex;flex-direction:column;gap:2px;height:100%;padding:11px 14px;border:1.5px solid #e5e7eb;border-radius:10px;cursor:pointer;user-select:none;
  transition:border-color .2s ease,background-color .2s ease; }
.mf-choice span b { font-size:14px;color:#111827; }
.mf-choice span small { font-size:12px;color:#6b7280; }
.mf-choice span:hover { border-color:#c4c8cf; }
.mf-choice input:checked + span { border-color:#dc2626;background:rgb(254,242,242); }
.mf-choice input:checked + span b { color:#b91c1c; }
.mf-choice input:focus-visible + span { outline:2px solid #dc2626;outline-offset:2px; }
.mf-choices[aria-invalid="true"] .mf-choice span { border-color:#fca5a5; }
.mf-consent { display:flex;gap:12px;align-items:flex-start;font-size:12px;color:#6b7280;line-height:1.6;cursor:pointer; }
.mf-consent input { margin-top:2px;flex-shrink:0;width:16px;height:16px;accent-color:#dc2626; }
.mf-consent a { text-decoration:underline; }
.mf-consent a:hover { color:#111827; }
.mf-err { font-size:12.5px;color:#dc2626; }
.mf-err:empty { display:none; }
.mf-submit { width:100%;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:1rem;padding:15px 32px; }
.mf-submit:disabled { opacity:.75;cursor:wait; }
.mf-ok { text-align:center;padding:40px 12px; }
.mf-ok-icon { margin:0 auto 16px;width:56px;height:56px;border-radius:50%;background:rgb(254,242,242);display:flex;align-items:center;justify-content:center; }
.mf-ok b { display:block;font-size:1.25rem;color:#111827;margin-bottom:6px; }
.mf-ok p { font-size:14px;color:#6b7280;line-height:1.6;margin:0; }
