/* ==========================================================================
   MEDIBILIS - doplnky pro dynamicky web (formular, vlastni bloky, mobilni kontakty).
   Puvodni vzhled zustava v style.css a components.css, tento soubor ho jen doplnuje.
   ========================================================================== */

/* ---- Logo ---- */
.brand-logo-img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }

/* ---- Jazykove odkazy (drive tlacitka) ---- */
a.nav-link_language { display: inline-block; text-decoration: none; }

/* ---- Hero video ---- */
.hero_bg_media video { width: 100%; height: 100%; object-fit: cover; }

/* ---- Mobilni menu: kontakty ---- */
.mobile-nav-extra { display: flex; flex-direction: column; gap: 1.25rem; align-items: center; }
.mobile-nav-extra .mobile-cta { width: 100%; }
.mobile-contacts { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; width: 100%; padding-top: 1.1rem; border-top: 1px solid var(--border-light); }
.mobile-contacts li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; color: var(--text-secondary); }
.mobile-contacts svg { flex: none; color: var(--text-muted); }
.mobile-contacts a { color: var(--primary); font-weight: 500; }

/* ---- Patička ---- */
button.footer_link { background: none; border: none; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.footer_paragraph { overflow-wrap: anywhere; }

/* ---- Kontaktni karty ---- */
.contact_action_btn.green { background: #166534; border-color: #166534; color: #fff; }
.contact_action_btn.green:hover { background: #fff; color: #166534; }
.contact_detail_val { overflow-wrap: anywhere; text-align: right; }

/* ---- Kontaktni formular ---- */
.contact_form_wrap { margin-top: 3rem; background: var(--white); border: 1px solid var(--border-light); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.contact_form_title { margin-bottom: 0.5rem; }
.contact_form_intro { color: var(--text-muted); margin-bottom: 1.75rem; max-width: 46rem; }
.contact_form .form_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.form_field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form_grid .form_field { margin-bottom: 0; }
.form_field label { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form_field input[type="text"], .form_field input[type="email"], .form_field input[type="tel"], .form_field select, .form_field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--primary); background: var(--off-white);
  border: 1px solid var(--border-light); border-radius: 12px; padding: 0.8rem 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form_field textarea { resize: vertical; min-height: 8rem; }
.form_field input:focus, .form_field select:focus, .form_field textarea:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08); }
.form_field.has-error input, .form_field.has-error select, .form_field.has-error textarea { border-color: #b91c1c; background: #fef2f2; }
.form_field .field_error { color: #b91c1c; font-size: 0.82rem; }
.form_hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha_row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.captcha_question { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; background: var(--light-grey); padding: 0.65rem 1rem; border-radius: 12px; white-space: nowrap; }
.captcha_row input { width: 6rem !important; text-align: center; }
.captcha_refresh { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-light); background: var(--white); display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: background 0.2s ease, transform 0.3s ease; }
.captcha_refresh:hover { background: var(--light-grey); transform: rotate(120deg); }
.form_consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.25rem; cursor: pointer; }
.form_consent input { margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.form_consent.has-error { color: #b91c1c; }
.form_status { margin-bottom: 1rem; padding: 0; font-size: 0.95rem; border-radius: 12px; }
.form_status.ok, .form_status.err { padding: 0.9rem 1.1rem; }
.form_status.ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form_status.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form_submit[disabled] { opacity: 0.6; cursor: progress; }

/* ---- Vlastni bloky z administrace ---- */
.section_custom { padding-top: clamp(4rem, 7vw, 6.5rem); padding-bottom: clamp(4rem, 7vw, 6.5rem); background: var(--white); }
.section_custom.is-grey { background: var(--white-smoke); }
.section_custom.is-dark { background: var(--black); color: var(--white); }
.section_custom.is-dark h2, .section_custom.is-dark .title, .section_custom.is-dark p { color: var(--white); }
.section_custom .paragraph { margin-bottom: 1rem; }
.custom_text_only { max-width: 52rem; }
.custom_btn_row { margin-top: 0.5rem; }
.news_wrapper.is-reversed .news_image_wrapper { order: 2; }
@media screen and (max-width: 991px) { .news_wrapper.is-reversed .news_image_wrapper { order: 0; } }

/* ---- Okna ---- */
.qr-hint { color: var(--text-muted); font-size: 0.9rem; }
.qr-code-wrapper svg, .qr-code-wrapper img { width: 100%; height: 100%; }
.qr-bank-row span:last-child { overflow-wrap: anywhere; text-align: right; padding-left: 1rem; }
.news-article-next { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border-light); }

/* ---- Hlasky (toast) ---- */
.toast.error { background: #991b1b; }
.toast.ok { background: #166534; }

@media screen and (max-width: 640px) {
  .contact_form .form_grid { grid-template-columns: 1fr; }
  .contact_detail_val { text-align: left; }
}
