.ferasurvey-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--ferasurvey-min-height, 480px);
  overflow: hidden;
  color: #17243b;
  background: #fff;
  border: 1px solid #d9e4ef;
  border-radius: 12px;
}

.ferasurvey-embed__frame {
  display: block;
  width: 100%;
  max-width: 100%;
  height: var(--ferasurvey-height, 720px);
  min-height: var(--ferasurvey-min-height, 480px);
  border: 0;
}

.ferasurvey-embed__loading,
.ferasurvey-embed__fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  min-height: var(--ferasurvey-min-height, 480px);
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: #f7faff;
}

.ferasurvey-embed__loading[hidden],
.ferasurvey-embed__fallback[hidden] {
  display: none;
}

.ferasurvey-embed__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #d7e8f8;
  border-top-color: #087ff5;
  border-radius: 999px;
  animation: ferasurvey-spin 800ms linear infinite;
}

.ferasurvey-embed__fallback p {
  margin: 0;
}

.ferasurvey-embed__fallback p + p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ferasurvey-embed__fallback button,
.ferasurvey-embed__fallback a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 14px;
  color: #075fb8;
  background: #fff;
  border: 1px solid #8bbff0;
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.ferasurvey-embed--fallback {
  min-height: 0;
  padding: 20px;
  background: #f7faff;
}

.ferasurvey-embed--fallback p {
  margin: 0;
}

.ferasurvey-embed--fallback p + p {
  margin-top: 8px;
}

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

@media (prefers-reduced-motion: reduce) {
  .ferasurvey-embed__spinner {
    animation-duration: 1600ms;
  }
}
