/* Donation Country Validation Styles */
.donation-validation-error {
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 12px 15px;
  background-color: #fdf2f2;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #d63384;
  font-size: 14px;
  line-height: 1.5;
}

.donation-validation-error a {
  color: #a02c2c;
  text-decoration: underline;
}

.donation-validation-error a:hover {
  color: #721c24;
  text-decoration: none;
}

select.error {
  border-color: #d63384 !important;
  box-shadow: 0 0 5px rgba(214, 51, 132, 0.1) !important;
}

select.error:focus {
  outline: 2px solid #d63384 !important;
  outline-offset: 2px !important;
}

/* Next/Submit button disabled state */
.webform-button--next.is-disabled,
.webform-button--next.disabled,
.webform-button--submit.is-disabled,
.webform-button--submit.disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

/* Disable the Donate button until reCAPTCHA is completed.
   The form renders with .recaptcha-not-verified from the server;
   donationRecaptchaCallback() removes it, donationRecaptchaExpired() adds it back. */
.recaptcha-not-verified .webform-button--submit {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .donation-validation-error {
    font-size: 13px;
    padding: 10px 12px;
  }
}