/* FMATIK – lead forma za PDF konfiguracije. Koristi tokene teme (--fm-*) sa rezervnim vrednostima. */
html.fml-lock { overflow: hidden; }
.fml-overlay { position: fixed; inset: 0; z-index: 2147483000; /* iznad iubenda cookie banera */ display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(11, 31, 58, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); overflow-y: auto; }
.fml-box { position: relative; width: 100%; max-width: 480px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--fm-bg, #fff); color: var(--fm-text, #1a1f24); border-radius: var(--fm-radius, 18px); box-shadow: var(--fm-shadow, 0 20px 50px rgba(15, 23, 42, .25)); padding: 28px 24px 24px; font-family: var(--fm-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif); }
.fml-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: var(--fm-text-secondary, #48525c); cursor: pointer; border-radius: 50%; }
.fml-close:hover, .fml-close:focus-visible { background: var(--fm-bg-elevated, #f3f5f7); }
.fml-title { margin: 0 36px 8px 0; font-size: 22px; line-height: 1.25; color: var(--fm-blue, #0b1f3a); }
.fml-lead { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--fm-text-secondary, #48525c); }
.fml-lead:empty { display: none; }
.fml-field { margin-bottom: 14px; }
.fml-field > label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--fm-text, #1a1f24); }
.fml-field input[type="text"], .fml-field input[type="email"], .fml-field input[type="tel"] { width: 100%; box-sizing: border-box; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--fm-text, #1a1f24); background: #fff; border: 1px solid var(--fm-border-strong, #d9dee3); border-radius: var(--fm-radius-sm, 10px); }
.fml-field input:focus { outline: 2px solid var(--fm-cta-dark, #1fa83e); outline-offset: 1px; border-color: var(--fm-cta-dark, #1fa83e); }
.fml-field input[aria-invalid="true"] { border-color: #c0392b; background: #fff8f8; }
.fml-consent > label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.5; cursor: pointer; }
.fml-consent input[type="checkbox"] { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--fm-blue, #0b1f3a); }
.fml-consent a { color: var(--fm-blue, #0b1f3a); text-decoration: underline; }
.fml-err { margin-top: 5px; font-size: 13px; color: #9e2525; }
.fml-note { margin: 4px 0 14px; font-size: 13px; line-height: 1.45; color: var(--fm-text-tertiary, #667180); }
.fml-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fml-msg { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--fm-radius-sm, 10px); font-size: 14px; line-height: 1.45; border: 1px solid; }
.fml-msg.fml-bad { background: #fff0f0; border-color: #efb5b5; color: #9e2525; }
.fml-msg.fml-ok { background: #eaf8ee; border-color: #bfe8c8; color: var(--fm-success, #16803d); }
.fml-actions { display: flex; justify-content: flex-end; }
.fml-actions .fm-btn { min-height: 48px; width: 100%; justify-content: center; }
.fml-submit.is-loading { opacity: .7; cursor: progress; }
.fml-box [hidden] { display: none !important; }
@media (max-width: 520px) {
  .fml-overlay { align-items: flex-end; padding: 0; }
  .fml-box { max-width: none; border-radius: var(--fm-radius, 18px) var(--fm-radius, 18px) 0 0; max-height: 94dvh; padding: 24px 18px calc(20px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) {
  .fml-box { animation: fml-in .22s var(--fm-ease, ease-out); }
  @keyframes fml-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
}
