/* BORABELA CRM — formuláře. Základ (pole, tlačítka) dodává theme; tady jen stavy a blok. */
.bb-hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bb-form-heading { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 8px; }
.bb-form-intro { font-size: 0.88rem; margin-bottom: 28px; opacity: 0.8; }
.bb-form .form-field { position: relative; }
.bb-field-error { display: block; font-size: 0.75rem; color: #b3261e; margin-top: 5px; min-height: 0; }
.bb-form .has-error input,
.bb-form .has-error textarea,
.bb-form .has-error select { border-color: #b3261e !important; }
.bb-form .form-consent.has-error label { color: #b3261e; }
.bb-form .form-error-msg { margin-bottom: 16px; }
.bb-form .bb-form-submit[disabled] { opacity: 0.6; cursor: wait; }
.bb-turnstile { margin: 0 0 20px; }
[hidden] { display: none !important; }

/* Blok „Formulář" ve stavebnici stránky */
.bb-form-section { padding: var(--section-pad, 96px) 0; background: var(--bg-light, #f5f5f5); }
.bb-form-section.is-dark { background: var(--black, #1c1c1c); }
.bb-form-section .contact-form-wrap { max-width: 760px; margin: 0 auto; }
.bb-form-section .bb-form-section-intro { max-width: 760px; margin: 0 auto 32px; }
.bb-form-section .bb-form-section-intro h2 { margin-bottom: 12px; }
.bb-form-section.is-dark .bb-form-section-intro h2 { color: #fff; }
.bb-form-section.is-dark .bb-form-section-intro p { color: rgba(255,255,255,0.7); }

/* Stránka Soubory ke stažení — oddíly */
.bb-dl { max-width: 900px; }
.bb-dl-section { text-align: center; margin: 40px 0 20px; font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.bb-dl-section:first-child { margin-top: 0; }
.bb-dl-box { background: #e8f5f9; border: 1px solid #d3ebf2; padding: 22px 26px; margin-bottom: 20px; }
.bb-dl-box h3 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 500; }
.bb-dl-list { list-style: none; margin: 0; padding: 0; }
.bb-dl-item a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 7px 0; color: inherit; text-decoration: none; }
.bb-dl-item a:hover .bb-dl-name { color: var(--primary, #0a8fb8); text-decoration: underline; }
.bb-dl-ext { font-family: var(--font-heading, inherit); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; color: #c0392b; border: 1px solid currentColor; padding: 3px 0; text-align: center; }
.bb-dl-name { font-weight: 500; }
.bb-dl-size { font-size: 0.8rem; opacity: 0.6; white-space: nowrap; }
.bb-dl-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.bb-dl-card { background: #fff; border: 1px solid var(--border, #e2e2e2); padding: 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.bb-dl-card h3 { margin: 0; font-size: 1rem; font-weight: 500; }
.bb-dl-preview { flex: 1; display: flex; align-items: center; justify-content: center; }
.bb-dl-preview img { max-width: 100%; max-height: 260px; width: auto; height: auto; }
.bb-dl-card a.bb-dl-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 26px; border: 2px solid var(--primary, #0a8fb8); background: transparent; color: var(--primary, #0a8fb8); text-decoration: none; transition: background .15s, color .15s; }
.bb-dl-card a.bb-dl-btn:hover, .bb-dl-card a.bb-dl-btn:focus-visible { background: var(--primary, #0a8fb8); color: #fff; }
@media (max-width: 640px) { .bb-dl-cards { grid-template-columns: 1fr; } .bb-dl-item a { grid-template-columns: 40px 1fr; } .bb-dl-size { grid-column: 2; } .bb-dl-box { padding: 18px; } }

/* Přílohy — drop zóna a seznam souborů */
.bb-dropzone { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center; padding: 22px 16px; border: 2px dashed var(--border, #cfd6da); background: var(--white, #fff); cursor: pointer; transition: border-color .15s, background .15s; }
.bb-dropzone:hover, .bb-dropzone:focus-visible, .bb-dropzone.is-over { border-color: var(--primary, #0a8fb8); background: #f4fafc; outline: none; }
.bb-dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bb-dropzone-text { font-size: 0.88rem; color: var(--black, #1c1c1c); text-transform: none; letter-spacing: 0; }
.bb-dropzone-hint { font-size: 0.72rem; color: var(--secondary, #6b7a83); text-transform: none; letter-spacing: 0; }
.bb-filelist { list-style: none; margin: 8px 0 0; padding: 0; }
.bb-filelist:empty { display: none; }
.bb-filelist li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 12px; margin-bottom: 6px; background: var(--white, #fff); border: 1px solid var(--border, #e2e2e2); font-size: 0.85rem; }
.bb-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-file-size { color: var(--secondary, #6b7a83); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.bb-file-remove { border: 0; background: transparent; font-size: 1.2rem; line-height: 1; color: var(--secondary, #6b7a83); cursor: pointer; padding: 0 4px; }
.bb-file-remove:hover { color: #b3261e; }
.bb-form .form-field .bb-dropzone { margin-top: 2px; }

/* Výběr „Typ projektu" — stejný vzhled jako textová pole, vlastní šipka místo nativní */
.bb-form .form-field select {
  width: 100%;
  padding: 12px 44px 12px 16px;
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white-full, #fff);
  font-family: var(--font, inherit);
  font-size: 0.9rem;
  line-height: 1.4;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a8fb8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}
.bb-form .form-field select:focus { border-color: var(--primary, #0a8fb8); }
.bb-form .form-field select option { color: var(--text, #1c1c1c); background: #fff; }
.contact-form-wrap .bb-form .form-field select,
.bb-form-section .bb-form .form-field select {
  background-color: var(--white-full, #fff);
  border-color: var(--border, #e2e2e2);
  color: var(--text, #1c1c1c);
}

/* Doplňující otázky podle typu projektu */
.bb-typ-group { border: 1px solid var(--border, #e2e2e2); border-left: 3px solid var(--primary, #0a8fb8); padding: 16px 18px 6px; margin: 0 0 16px; background: rgba(0,144,185,0.04); }
.bb-typ-group legend { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary, #0a8fb8); padding: 0 6px; }
.bb-typ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.bb-typ-grid .form-field.is-wide { grid-column: 1 / -1; }
.bb-typ-grid .form-field textarea { min-height: 80px; }
@media (max-width: 600px) { .bb-typ-grid { grid-template-columns: 1fr; } }
