/* ── Belion Mailer – styly (jaknabrand.cz) ── */

/* Validační chyby */
.form-group input.bm-field-error,
.form-group textarea.bm-field-error {
  border-bottom-color: var(--red);
}
.bm-error {
  display: block;
  font-family: var(--body);
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 4px;
}

/* Loading spinner na tlačítku */
.bm-spinner {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bm-spin 0.65s linear infinite;
  vertical-align: middle;
}
@keyframes bm-spin { to { transform: rotate(360deg); } }

[type="submit"]:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* ── Modal overlay ── */
.bm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
  animation: bm-fade-in 0.2s var(--ease, ease) both;
}

.bm-modal-overlay.bm-modal--out {
  animation: bm-fade-out 0.18s ease both;
}

@keyframes bm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bm-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ── Modal box ── */
.bm-modal-box {
  background: var(--white, #fff);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 48px);
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: bm-slide-up 0.25s var(--ease, ease) both;
}

.bm-modal-overlay.bm-modal--out .bm-modal-box {
  animation: bm-slide-down 0.18s ease both;
}

@keyframes bm-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bm-slide-down {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(12px); }
}

/* ── Ikonka ── */
.bm-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Success – zelený kruh s fajfkou */
.bm-modal-icon--success {
  background: #e8f5e9;
}
.bm-modal-icon--success::after {
  content: '';
  display: block;
  width: 22px;
  height: 12px;
  border-left: 2.5px solid #2e7d32;
  border-bottom: 2.5px solid #2e7d32;
  transform: rotate(-45deg) translateY(-3px);
}

/* Error – červený kruh s X */
.bm-modal-icon--error {
  background: #ffebee;
}
.bm-modal-icon--error::before,
.bm-modal-icon--error::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2.5px;
  background: var(--red, #D60004);
  border-radius: 2px;
}
.bm-modal-icon--error::before { transform: rotate(45deg); }
.bm-modal-icon--error::after  { transform: rotate(-45deg); }

/* ── Text ── */
.bm-modal-msg {
  font-family: var(--body, 'DM Sans', sans-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black, #000);
  margin: 0 0 28px;
}

/* ── Zavřít tlačítko (sdílí .btn-cta styly ze styles.css) ── */
.bm-modal-close {
  border: none;
  cursor: pointer;
}
