/* ---- Form validation / captcha / alert styles ---- */

.field-error {
  border-color: #e03131 !important;
}

.error-msg {
  display: block;
  color: #e03131;
  font-size: 13px;
  margin-top: 4px;
}

.form-alert {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 14px;
}

.alert-success {
  background: #e6f9ee;
  color: #1e7e34;
  border: 1px solid #b6e6c8;
}

.alert-error {
  background: #fdecec;
  color: #b02a2a;
  border: 1px solid #f3b8b8;
}

.captcha-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.captcha-field label {
  white-space: nowrap;
  order: 1;
}

.captcha-field input[name="captcha"] {
  width: 90px;
  order: 2;
}

.refresh-captcha {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  order: 3;
}

/* Always push the captcha's error message onto its own line below
   the label+input+refresh row, instead of squeezing/wrapping inline. */
.captcha-field .error-msg {
  order: 4;
  flex-basis: 100%;
  margin-top: 2px;
}

/* intl-tel-input needs room for the flag/dial-code dropdown */
.iti {
  width: 100%;
}

.custom-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 99999;

    min-width: 280px;
    max-width: 400px;

    padding: 14px 20px;
    border-radius: 6px;

    background: #333;
    color: #fff;

    font-size: 15px;

    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.custom-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.custom-toast.success {
    background: #28a745;
}

.custom-toast.error {
    background: #dc3545;
}