/* Generated by idoc-regenerate-bitform-css.php on 2026-09-12 (rev 2: centered modal) */

/* ===== Modal: success/error overlay ===== */
.msg-container-3,
.msg-container-4 {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 20px;
  box-sizing: border-box;
}
.msg-container-3.deactive,
.msg-container-4.deactive { display: none; }

/* Backdrop fills the modal container, and is itself a flex container
   so the inner .bf-msg-content is centered (not top-left). */
.msg-background-3,
.msg-background-4 {
  position: static;     /* participate in flex flow */
  inset: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* The actual modal box: white card, centered, fixed max width */
.bf-msg-content {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 8px;
  padding: 32px 24px 24px;
  max-width: 520px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  margin: 0;
}

/* Close X button (top-right of modal box) */
.bf-msg-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}
.bf-msg-close svg { width: 16px; height: 16px; display: block; }
.bf-msg-close:hover { color: #111; }

/* Success message body (text inside modal) */
.msg-content {
  color: var(--idoc-tinta, #131a2b);
  font-family: var(--idoc-texto, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 1rem;
  line-height: 1.6;
}
.msg-content h2,
.msg-content h3,
.msg-content .success-title {
  color: var(--idoc-azul, #1f3a66);
  margin: 0 0 12px;
  font-family: var(--idoc-display, Georgia, serif);
  font-weight: 600;
}

/* Hide the inline duplicate (.msg-content that lives outside the modal).
   When the modal is active, the message is shown inside the modal;
   the inline container is just a placeholder and stays empty. */
.bf-form .msg-container-3 ~ .msg-content,
.bf-form .msg-container-4 ~ .msg-content,
.bit-form .msg-container-3 ~ .msg-content,
.bit-form .msg-container-4 ~ .msg-content { display: none !important; }

/* ===== Base form layout ===== */
._frm-g {
  display: grid;
  display: -ms-grid;
  grid-template-columns: repeat(6, minmax(30px, 1fr));
  gap: 16px;
}

.bf-fld-wrp { width: 100%; box-sizing: border-box; }
.bf-lbl-wrp { display: block; margin-bottom: 6px; font-weight: 500; color: var(--idoc-tinta, #131a2b); }
.bf-inp-wrp { width: 100%; }
.bf-inp-wrp input,
.bf-inp-wrp textarea,
.bf-inp-wrp select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--idoc-linea, #dfe4ec);
  border-radius: 4px;
  font: inherit;
  background: #fff;
}
.bf-inp-wrp input:focus,
.bf-inp-wrp textarea:focus,
.bf-inp-wrp select:focus {
  outline: none;
  border-color: var(--idoc-azul, #1f3a66);
  box-shadow: 0 0 0 3px rgba(31, 58, 102, 0.15);
}

.bf-chk-wrp { display: flex; gap: 8px; align-items: flex-start; }
.bf-chk-wrp input[type=checkbox] { margin-top: 4px; }

.bf-btn-wrp { width: 100%; }
.bf-btn-wrp button[type=submit],
.bf-submit-btn {
  display: inline-block;
  background: var(--idoc-azul, #1f3a66);
  color: #fff;
  border: 0;
  padding: 14px 24px;
  font: inherit;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}
.bf-btn-wrp button[type=submit]:hover,
.bf-submit-btn:hover { background: var(--idoc-azul-osc, #16294a); }
.bf-btn-wrp button[type=submit]:disabled,
.bf-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.bf-err-msg { color: #b00020; font-size: 0.875em; margin-top: 4px; }