/* Modal background */
#fwq-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Inner modal */
#fwq-modal-inner {
  background: #ffffff;
  width: 95%;
  max-width: 680px;
  max-height: 90vh;
  padding: 22px;
  border-radius: 10px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Close button */
.fwq-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f2f2f2;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 28px;
  cursor: pointer;
}

/* Header */
#fwq-header h2 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #0b4da2;
}

/* Message */
#fwq-message { margin-bottom: 10px; }

/* Rows */
.fwq-row { margin-bottom: 12px; }
.fwq-row label { font-weight: 600; display:block; margin-bottom:6px; color:#333; font-size:13px; }
.fwq-row input[type="text"],
.fwq-row input[type="email"],
.fwq-row input[type="file"],
.fwq-row textarea,
.fwq-row input[readonly] {
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  box-sizing: border-box;
  font-size: 14px;
  color: #222;
}

/* Buttons row */
.fwq-buttons {
  margin-top: 14px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

/* Success / error */
.fwq-success { color:#155724; background:#d4edda; padding:10px 12px; border-radius:6px; }
.fwq-error { color:#721c24; background:#f8d7da; padding:10px 12px; border-radius:6px; }

/* Prevent body scrolling when modal open */
body.fwq-modal-open { overflow: hidden; }

/* Button style tweaks (uses WP admin button classes if available) */
.fwq-submit-btn { background:#0b63b8; color:#fff; border:none; padding:8px 14px; border-radius:6px; cursor:pointer; }
.fwq-clear-btn { background:#f2f2f2; color:#333; border:none; padding:8px 14px; border-radius:6px; cursor:pointer; }
