/* -------------------- Popup Trigger Button -------------------- */
#popup-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px; /* left:20px for left corner */
  background: #0073e6;
  color: #fff;
  padding: 8px 12px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 13px;
  z-index: 999999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

/* -------------------- Popup Container -------------------- */
#popup-form {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 20px; /* left:20px for left corner */
  width: 280px; /* small width */
  max-width: 90%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  z-index: 1000000;
  font-family: Arial, sans-serif;
  padding: 8px 10px;
}

/* Header */
#popup-header {
  background: #0073e6;
  color: #fff;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  border-radius: 10px 10px 0 0;
}

#popup-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

/* Content */
#popup-content {
  padding: 6px 0;
}

/* Adjust spacing for WPForms fields (small but usable) */
#popup-content .wpforms-field {
  margin-bottom: 6px;
}

#popup-content .wpforms-field input,
#popup-content .wpforms-field textarea,
#popup-content .wpforms-field select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
  box-sizing: border-box;
}

/* Submit button */
#popup-content .wpforms-submit {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  background: #0073e6;
  color: #fff;
  border: none;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#popup-content .wpforms-submit:hover {
  background: #005bb5;
}

/* -------------------- Mobile Adjustments -------------------- */
@media (max-width: 600px) {
  #popup-form {
    width: 90%;
    right: 5%;
    bottom: 80px;
  }

  #popup-header {
    font-size: 13px;
    padding: 5px 8px;
  }

  #popup-content .wpforms-field input,
  #popup-content .wpforms-field textarea,
  #popup-content .wpforms-field select,
  #popup-content .wpforms-submit {
    font-size: 12px;
    padding: 5px 6px;
  }
}