/**
 * Inline signup form [rankone_discount_form].
 *
 * Intentionally minimal. The footer widget already styles .discount-signup
 * inputs/buttons, and this form is designed to sit INSIDE that wrapper and
 * inherit it. Only rules that are structural (honeypot, status message) or
 * that the old Campaign Monitor markup relied on are defined here.
 */

.rop-inline-form { margin: 0; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.rop-inline-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Accessible label hiding — matches WP core's utility class. */
.rop-inline .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rop-inline-msg {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.rop-inline-msg[hidden] { display: none; }
.rop-inline-msg.is-error {
  background: rgba(254, 89, 94, .18);
  color: #ffdcdd;
}
.rop-inline-msg.is-success {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.rop-inline-form button[disabled] { opacity: .65; cursor: default; }
.rop-inline input.rop-invalid { border-color: rgba(254, 89, 94, .9) !important; }

/* When the shortcode is used OUTSIDE the dark footer widget, fall back to
   readable colours instead of white-on-white. */
.rop-inline:not(.discount-signup) .rop-inline-msg { background: #eef4f5; color: #14484f; }
.rop-inline:not(.discount-signup) .rop-inline-msg.is-error { background: #fdecec; color: #8a1f22; }
