/*
 * Messages of the website forms (Komunikace → Formuláře) on this site.
 * The forms keep the site's own markup: <form data-wms-form="id"> without the .wms-form class,
 * so wms-formulare.css does not restyle the fields. Only the parts the form script adds are styled here:
 * the error text under a field, the invalid state and the result box.
 * Loaded from wms/customization/frontend/hlavicka.php.
 */
form[data-wms-form] .wms-chyba { color: #d93025; font-size: 13px; font-weight: 400; line-height: 1.4; }
form[data-wms-form] .wms-chyba:empty { display: none; }
/* Field rows are grids with a 15px gap: keep the message close to its field */
form[data-wms-form] .polozka > .wms-chyba { margin-top: -9px; }
/* Fields side by side: with a message under some of them, line the fields up at the top */
form[data-wms-form]:has(.wms-neplatne) .polozka { align-self: start; }
form[data-wms-form] .wms-neplatne :is(input, select, textarea):not([type=checkbox]) { box-shadow: 0 0 0 1px #d93025; }
form[data-wms-form] .wms-neplatne input[type=checkbox] ~ label { color: #d93025; }

form[data-wms-form] .wms-vysledek { grid-column: 1 / -1; padding: 12px 16px; border-radius: 8px; font-size: 15px; line-height: 1.5; outline: none; }
form[data-wms-form] .wms-vysledek[hidden] { display: none; }
form[data-wms-form] .wms-vysledek.wms-uspech { background: #e7f1ea; color: #137333; }
form[data-wms-form] .wms-vysledek.wms-chyba { background: #fbeceb; color: #d93025; }

/* The submit buttons used to be <div>s; as real buttons they keep the same look */
/* The quick contact panel gets taller with the messages: keep it inside the window */
.floatingform { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; }

form[data-wms-form] button.modrybutton,
form[data-wms-form] button.whitebtn { font-family: inherit; font-size: inherit; line-height: inherit; }
form[data-wms-form] button[type=submit]:disabled { opacity: .7; cursor: progress; }
