/* 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í */
.bb-dl-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.bb-dl-item { border: 1px solid var(--border, #e2e2e2); background: #fff; margin-bottom: 10px; }
.bb-dl-item a { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 14px 18px; color: inherit; text-decoration: none; }
.bb-dl-item a:hover { border-color: var(--primary, #0a8fb8); background: #f7fbfd; }
.bb-dl-ext { font-family: var(--font-heading, inherit); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--primary, #0a8fb8); border: 1px solid currentColor; padding: 6px 0; text-align: center; }
.bb-dl-name { font-weight: 500; }
.bb-dl-size { font-size: 0.8rem; opacity: 0.6; }
@media (max-width: 640px) { .bb-dl-item a { grid-template-columns: 52px 1fr; } .bb-dl-size { grid-column: 2; } }

/* 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; } }
