/* Plugin-only box-sizing to prevent inputs overflowing the container */
.epr-form,
.epr-form * {
  box-sizing: border-box;
}

/* Container: glassy background, responsive width, black default text */
.epr-form {
  max-width: 400px;
  width: 100%;
  margin: 30px auto;
  padding: 25px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #000; /* default text color -> black */
}

/* Ensure fields align inside the container and do not overflow */
.epr-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

/* Labels: black text and occupy full width */
.epr-field label {
  display: block;
  color: #000;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  width: 100%;
}

/* Inputs: full width, use border-box, black text, readable background */
.epr-field input {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.95); /* light input surface for contrast */
  color: #000; /* input text -> black */
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* Placeholder color (subtle, also black-ish) */
.epr-field input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

/* Focus state: visible but tidy */
.epr-field input:focus {
  outline: none;
  border-color: rgba(0, 123, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.06);
  background: rgba(255, 255, 255, 1);
}

/* Button: keep the stylish gradient; ensure it fits inside the form */
.epr-form button {
  width: 100%;
  max-width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0073e6, #00aaff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

/* Hover/focus for button */
.epr-form button:hover,
.epr-form button:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 115, 230, 0.18);
  outline: none;
}

/* Status messages: keep distinct color for clarity but not overflowing */
.epr-error,
.epr-success {
  margin-top: 12px;
  font-weight: 600;
  display: block;
  word-wrap: break-word;
  width: 100%;
  max-width: 100%;
}

/* Error and success colors retained for clarity */
.epr-error { color: #ff6b6b; }
.epr-success { color: #4cd964; }

/* Small-screen tweaks to ensure nothing extends past the form */
@media (max-width: 420px) {
  .epr-form { padding: 18px; margin: 18px; }
  .epr-field input { padding: 10px 12px; font-size: 14px; }
  .epr-form button { padding: 12px; font-size: 15px; }
}
