/* -------------------------------------------------------------
   Jnini Sample Request Popup Styles
   ------------------------------------------------------------- */

/* ===== General Popup Container ===== */
#jnini-sample-popup {
  display: none;
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  max-width: 480px;
  width: 90%;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 110001 !important;
}

form#jnini-sample-request-form {
    padding-top: 40px;
}

/* ===== Form Fields ===== */
#jnini-sample-popup .field {
  margin-bottom: 12px;
}

#jnini-sample-popup label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #222;
}

#jnini-sample-popup input,
#jnini-sample-popup select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  outline: none;
}

#jnini-sample-popup input:focus,
#jnini-sample-popup select:focus {
  border-color: #007bdb;
}

/* ===== Submit Button ===== */
#jnini-sample-popup .actions {
  text-align: center;
  margin-top: 16px;
}

#jnini-sample-popup .action.primary {
  background-color: #007bdb;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 22px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.25s;
}

#jnini-sample-popup .action.primary:hover {
  background-color: #005fa3;
}

/* ===== Message Area ===== */
#sr_message {
  margin-top: 10px;
  font-size: 14px;
}

/* ===== Overlay (fixed + dark background) ===== */
.jnini-sample-overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 110000 !important;
  display: none;
  pointer-events: auto;
}

/* ===== Close Button ===== */
#jnini-sample-popup .jnini-close-btn {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
  z-index: 110002 !important;
  padding-right: 10px;
}

#jnini-sample-popup .jnini-close-btn:hover {
  color: #000;
}

/* ===== Prevent background scroll when popup open ===== */
.jnini-sample-open {
  overflow: hidden !important;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 600px) {
  #jnini-sample-popup {
    width: 92%;
    padding: 14px;
  }

  #jnini-sample-popup .action.primary {
    width: 100%;
  }
}
