/* AMCPR form runtime styles: success overlay + error message.
   Brand red #d9230f matches the site accent. */
.amcpr-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 20px;
}
.amcpr-success-overlay.is-visible { opacity: 1; }
.amcpr-success-card {
  background: #ffffff;
  border-top: 6px solid #d9230f;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  max-width: 420px;
  width: 100%;
  padding: 36px 32px 28px;
  text-align: center;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: inherit;
}
.amcpr-success-overlay.is-visible .amcpr-success-card {
  transform: translateY(0) scale(1);
}
.amcpr-success-card h3 {
  margin: 18px 0 10px;
  font-size: 24px;
  line-height: 1.25;
  color: #222222;
}
.amcpr-success-card p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
  color: #555555;
}
.amcpr-success-redirect {
  font-size: 13px !important;
  color: #999999 !important;
  margin-top: 14px !important;
}
.amcpr-check {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto;
}
.amcpr-check-circle {
  stroke: #d9230f;
  stroke-width: 2.5;
  stroke-dasharray: 155;
  stroke-dashoffset: 155;
  animation: amcpr-draw 0.7s ease forwards 0.15s;
}
.amcpr-check-mark {
  stroke: #d9230f;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: amcpr-draw 0.45s ease forwards 0.75s;
}
@keyframes amcpr-draw {
  to { stroke-dashoffset: 0; }
}
.amcpr-form-error {
  background: #fdecea;
  border: 1px solid #d9230f;
  border-radius: 4px;
  color: #b71c1c;
  padding: 12px 16px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================================
   Embedded forms (.amcpr-embed-form) — replaces the dead
   [si-contact-form] shortcodes with the real working forms.
   Self-contained styling so they look right on any page.
   ============================================================ */
.amcpr-embed-form {
  max-width: 680px;
  margin: 10px auto 26px;
  background: #fff;
  border: 1px solid #ece6e4;
  border-top: 4px solid #d9230f;
  border-radius: 12px;
  padding: 24px 22px 26px;
  box-shadow: 0 2px 12px rgba(33, 29, 28, 0.07);
  text-align: left;
}
.amcpr-embed-form .nf-form-fields-required {
  font-size: 12.5px;
  color: #8a807d;
  margin-bottom: 14px;
}
.amcpr-embed-form .nf-field-label label,
.amcpr-embed-form .nf-label-span {
  font-size: 14px;
  font-weight: 700;
  color: #211d1c;
  display: block;
  margin: 0 0 7px;
}
.amcpr-embed-form input[type="text"],
.amcpr-embed-form input[type="email"],
.amcpr-embed-form input[type="tel"],
.amcpr-embed-form select,
.amcpr-embed-form textarea {
  width: 100%;
  min-height: 46px;
  background: #faf8f7;
  border: 1.5px solid #e5ddda;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15.5px;
  color: #211d1c;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.amcpr-embed-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23887f7c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.amcpr-embed-form input:focus,
.amcpr-embed-form select:focus,
.amcpr-embed-form textarea:focus {
  outline: none;
  border-color: #d9230f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(217, 35, 15, 0.08);
}
.amcpr-embed-form textarea { min-height: 130px; resize: vertical; }
.amcpr-embed-form .nf-field-container { margin-bottom: 20px; }
/* the theme half-widths .listselect-container; keep every field full width
   within its column */
.amcpr-embed-form .nf-field-container,
.amcpr-embed-form .field-wrap,
.amcpr-embed-form .nf-field-element { width: 100% !important; }
/* two-column rows on wide screens (NF one-half classes) */
@media (min-width: 640px) {
  .amcpr-embed-form .nf-form-content { display: flex; flex-wrap: wrap; gap: 0 22px; }
  .amcpr-embed-form nf-fields-wrap { display: contents; }
  .amcpr-embed-form nf-field { display: block; flex: 1 1 100%; }
  .amcpr-embed-form nf-field:has(.one-half) { flex: 1 1 calc(50% - 11px); }
}
.amcpr-embed-form .listradio-wrap ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; gap: 18px; }
.amcpr-embed-form .listradio-wrap input[type="radio"] { width: auto; margin-right: 6px; }
.amcpr-embed-form .listradio-wrap label { display: inline; font-weight: 500; }
.amcpr-embed-form input[type="submit"] {
  width: 100%;
  background: #d9230f;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 20px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.amcpr-embed-form input[type="submit"]:hover { background: #b71d0c; }
.amcpr-embed-form input[type="submit"]:active { transform: scale(0.98); }
.amcpr-embed-form .nf-form-hp,
.amcpr-embed-form .nf-error-wrap:empty,
.amcpr-embed-form .nf-input-limit { display: none; }
.amcpr-embed-form .nf-form-title:empty { display: none; }

.amcpr-form-cta { text-align: center; margin: 14px 0 22px; }
.amcpr-form-cta .amcpr-btn { display: inline-flex; }
