[data-formaas-selligent-form] [data-formaas-panel] {
  min-height: 640px;
}

[data-formaas-selligent-form][data-formaas-open-mode='on-demand'] [data-formaas-panel] {
  margin-top: 24px;
}

[data-formaas-selligent-form] [data-formaas-panel][hidden],
[data-formaas-selligent-form] [data-formaas-cta][hidden] {
  display: none;
}

[data-formaas-selligent-form] .formaas-renderer {
  box-sizing: border-box;
  width: min(100%, 860px);
  max-width: 100%;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--formaas-surface-raised, transparent);
  text-align: left;
}

[data-formaas-visual-style='transparent-on-dark-background'],
[data-formaas-visual-style='transparent-on-brand-gradient-background'],
[data-formaas-visual-style='transparent-on-navy-gradient-background'] {
  --formaas-border-muted: color-mix(in srgb, rgb(190 220 255 / 0.52) 72%, transparent);
  --formaas-border-subtle: color-mix(in srgb, rgb(190 220 255 / 0.52) 48%, transparent);
  --formaas-surface-control: rgb(255 255 255 / 0.08);
  --formaas-surface-raised: transparent;
  --formaas-text: #ffffff;
}

[data-formaas-visual-style='white-panel-on-light-blue-background'] {
  --formaas-border-muted: color-mix(in srgb, #829da5 72%, transparent);
  --formaas-border-subtle: color-mix(in srgb, #829da5 48%, transparent);
  --formaas-surface-control: #f8fbfc;
  --formaas-surface-raised: #fbfdfe;
  --formaas-text: #00185e;
}

[data-formaas-mount] {
  position: relative;
  z-index: 1;
  container-type: inline-size;
}

.formaas-form-loading-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

[data-formaas-load-failed] .formaas-form-loading-status {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  color: var(--formaas-text, #1f2937);
  font: 400 16px/1.5 'Source Sans Pro', Arial, sans-serif;
  white-space: normal;
}

[data-formaas-load-failed] .formaas-form-loading-skeleton {
  display: none;
}

.formaas-form-loading-skeleton {
  --formaas-skeleton-fill: var(--formaas-border-subtle, #e5eaf1);
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.formaas-form-loading-block {
  display: block;
  border-radius: 4px;
  background: var(--formaas-skeleton-fill);
  animation: formaas-form-loading-breathe 1.8s ease-in-out infinite;
}

.formaas-form-loading-title {
  width: min(320px, 52%);
  height: 36px;
}

.formaas-form-loading-description {
  width: min(480px, 74%);
  height: 14px;
  margin-top: 12px;
}

.formaas-form-loading-stepper {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}

.formaas-form-loading-step {
  position: relative;
  min-width: 0;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.formaas-form-loading-step:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 18px;
  left: calc(50% + 18px);
  width: calc(100% - 20px);
  height: 1px;
  background: var(--formaas-skeleton-fill);
  content: '';
}

.formaas-form-loading-step-dot {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.formaas-form-loading-step-label {
  width: min(92px, 72%);
  height: 12px;
}

.formaas-form-loading-heading {
  width: min(220px, 42%);
  height: 18px;
  margin-bottom: 16px;
}

.formaas-form-loading-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.formaas-form-loading-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.formaas-form-loading-field-wide {
  grid-column: 1 / -1;
}

.formaas-form-loading-label {
  width: 38%;
  min-width: 72px;
  height: 12px;
}

.formaas-form-loading-control {
  width: 100%;
  height: var(--formaas-control-height, 40px);
  border: 1px solid var(--formaas-border-muted, #d1d9e4);
  border-radius: 6px;
  background: var(--formaas-surface-control, #ffffff);
}

.formaas-form-loading-control-tall {
  height: 112px;
}

.formaas-form-loading-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--formaas-vertical-gap, var(--formaas-actions-gap, 28px));
}

.formaas-form-loading-action {
  width: 112px;
  height: var(--formaas-action-height, 38px);
  border-radius: var(--formaas-action-border-radius, 4px);
}

@keyframes formaas-form-loading-breathe {
  0%,
  100% {
    opacity: 0.64;
  }

  50% {
    opacity: 1;
  }
}

[data-formaas-selligent-form] .formaas-submission-success {
  gap: 24px;
}

[data-formaas-selligent-form] .formaas-renderer [data-formaas-success-asset-link] {
  box-sizing: border-box;
  min-height: var(--formaas-action-height, 38px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--formaas-action-primary-button-border, #0050d7);
  border-radius: var(--formaas-action-border-radius, 4px);
  padding: 0 16px;
  color: var(--formaas-action-primary-button-foreground, #ffffff) !important;
  background: var(--formaas-action-primary-button-active, #0050d7);
  font: 700 var(--formaas-action-font, 13px) / var(--formaas-action-line-height, 1) "Source Sans Pro", sans-serif;
  text-decoration: none !important;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

[data-formaas-selligent-form] .formaas-renderer [data-formaas-success-asset-link]:hover {
  border-color: var(--formaas-action-primary-button-hover-border, #002dbe);
  color: var(--formaas-action-primary-button-hover-foreground, #ffffff) !important;
  background: var(--formaas-action-primary-button-hover, #002dbe);
  text-decoration: none !important;
}

[data-formaas-selligent-form] .formaas-renderer [data-formaas-success-asset-link]:focus-visible {
  border-color: var(--formaas-action-primary-button-focus-border, #002dbe);
  color: var(--formaas-action-primary-button-focus-foreground, #ffffff) !important;
  background: var(--formaas-action-primary-button-focus, #002dbe);
  box-shadow: 0 0 0 3px var(--formaas-focus-ring-soft, rgb(0 80 215 / 0.28));
  outline: none;
}

[data-formaas-selligent-form] .formaas-renderer [data-formaas-success-asset-link]:active {
  border-color: var(--formaas-action-primary-button-pressed-border, #000e9c);
  color: var(--formaas-action-primary-button-pressed-foreground, #ffffff) !important;
  background: var(--formaas-action-primary-button-pressed, #000e9c);
}

@media (prefers-reduced-motion: reduce) {
  .formaas-form-loading-block {
    animation: none;
    opacity: 0.82;
  }

  [data-formaas-selligent-form] .formaas-renderer [data-formaas-success-asset-link] {
    transition: none;
  }
}

[data-formaas-visual-style='white-panel-on-light-blue-background'] [data-formaas-panel] {
  box-sizing: border-box;
  position: relative;
  left: 50%;
  width: min(400px, calc(100vw - 32px));
  transform: translateX(-50%);
  background: transparent;
  border-radius: 12px;
}

@media (max-width: 767px) {
  [data-formaas-selligent-form] .formaas-renderer {
    --formaas-control-height: 46px;
    --formaas-action-height: 44px;
    --formaas-actions-gap: 16px;
    padding: 16px;
  }

  html[data-formaas-form-open] .federation-tools-buttons,
  html[data-formaas-form-open] .oui-back-to-top,
  html[data-formaas-form-open] .triggerPopup {
    display: none !important;
  }
}

@container (max-width: 700px) {
  [data-formaas-selligent-form] .formaas-renderer {
    --formaas-control-height: 46px;
    --formaas-action-height: 44px;
    --formaas-actions-gap: 16px;
    padding: 16px;
  }

  .formaas-form-loading-title {
    width: 64%;
    height: 31px;
  }

  .formaas-form-loading-description {
    width: 88%;
  }

  .formaas-form-loading-stepper {
    min-height: 64px;
    display: block;
    margin: 20px 0;
    padding: 12px;
  }

  .formaas-form-loading-step {
    display: none;
  }

  .formaas-form-loading-step:first-child {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .formaas-form-loading-step:first-child::after {
    display: none;
  }

  .formaas-form-loading-step-dot {
    width: 32px;
    height: 32px;
  }

  .formaas-form-loading-step-label {
    width: min(180px, 68%);
    height: 16px;
  }

  .formaas-form-loading-heading {
    width: 58%;
  }

  .formaas-form-loading-fields {
    grid-template-columns: 1fr;
  }

  .formaas-form-loading-field-wide {
    grid-column: auto;
  }

  .formaas-form-loading-action {
    width: 100%;
    height: var(--formaas-action-height, 44px);
  }
}
