.fv-error {
  display: block;
  margin-block-start: 0.35rem;
  color: #b42318;
  font-size: 0.875rem;
  line-height: 1.35;
}

.fv-invalid {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 0.2rem rgb(180 35 24 / 15%);
}

.fv-valid {
  border-color: #157347 !important;
}

.fv-summary {
  margin-block-end: 1rem;
  padding: 1rem;
  border: 1px solid #b42318;
  border-inline-start-width: 0.35rem;
  border-radius: 0.25rem;
  background: #fff5f4;
  color: #6b160f;
}

.fv-summary[hidden] {
  display: none;
}

.fv-summary:focus {
  outline: 3px solid rgb(13 110 253 / 35%);
  outline-offset: 2px;
}

.fv-summary__title {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.fv-summary__list {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.fv-summary__link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  text-decoration: underline;
  cursor: pointer;
}

.fv-loading-host {
  position: relative !important;
}

.fv-loading {
  position: absolute;
  z-index: 10000;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgb(255 255 255 / 92%);
  color: #172b4d;
  text-align: center;
}

body.fv-loading-host > .fv-loading {
  position: fixed;
}

.fv-loading__spinner {
  width: 2.75rem;
  height: 2.75rem;
  border: 0.3rem solid #d9e2ec;
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: fv-spin 0.8s linear infinite;
}

.fv-loading__text {
  font-weight: 600;
}

@keyframes fv-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .fv-loading__spinner {
    animation: none;
  }
}
