.fp-studio {
  --fp-accent: #2563eb;
  --fp-bg: #ffffff;
  --fp-text: #111827;
  --fp-border: #d1d5db;
  --fp-radius: 12px;
  --fp-width: 720px;
  width: min(100%, var(--fp-width));
  margin: 24px auto;
}

.fp-studio:not(.fp-inherit-theme) {
  color: var(--fp-text);
}

.fp-studio.fp-inherit-theme {
  color: inherit;
  font: inherit;
}

.fp-studio * {
  box-sizing: border-box;
}

.fp-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.fp-studio:not(.fp-inherit-theme) .fp-form {
  background: var(--fp-bg);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  padding: 24px;
}

.fp-studio.fp-inherit-theme .fp-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  box-shadow: none;
}

.fp-studio:not(.fp-inherit-theme).fp-theme-card .fp-form {
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}

.fp-studio:not(.fp-inherit-theme).fp-theme-minimal .fp-form,
.fp-studio.fp-theme-minimal:not(.fp-inherit-theme) .fp-form {
  border: 0;
  padding: 0;
  box-shadow: none;
}

.fp-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.fp-width-full { width: 100%; }
.fp-width-half { width: calc(50% - 8px); }
.fp-width-third { width: calc(33.333% - 11px); }

.fp-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.fp-studio:not(.fp-inherit-theme) .fp-label {
  color: var(--fp-text);
  font-weight: 700;
}

.fp-studio.fp-inherit-theme .fp-label {
  color: inherit;
  font: inherit;
}

.fp-required {
  color: #dc2626;
}

.fp-tooltip {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 900;
  cursor: help;
}

.fp-field input[type="text"],
.fp-field input[type="email"],
.fp-field input[type="tel"],
.fp-field input[type="url"],
.fp-field input[type="number"],
.fp-field input[type="date"],
.fp-field input[type="file"],
.fp-field select,
.fp-field textarea {
  width: 100%;
  max-width: 100%;
}

.fp-studio:not(.fp-inherit-theme) .fp-field input[type="text"],
.fp-studio:not(.fp-inherit-theme) .fp-field input[type="email"],
.fp-studio:not(.fp-inherit-theme) .fp-field input[type="tel"],
.fp-studio:not(.fp-inherit-theme) .fp-field input[type="url"],
.fp-studio:not(.fp-inherit-theme) .fp-field input[type="number"],
.fp-studio:not(.fp-inherit-theme) .fp-field input[type="date"],
.fp-studio:not(.fp-inherit-theme) .fp-field input[type="file"],
.fp-studio:not(.fp-inherit-theme) .fp-field select,
.fp-studio:not(.fp-inherit-theme) .fp-field textarea {
  border: 1px solid var(--fp-border);
  border-radius: calc(var(--fp-radius) - 3px);
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  color: var(--fp-text);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.fp-studio.fp-inherit-theme .fp-field input[type="text"],
.fp-studio.fp-inherit-theme .fp-field input[type="email"],
.fp-studio.fp-inherit-theme .fp-field input[type="tel"],
.fp-studio.fp-inherit-theme .fp-field input[type="url"],
.fp-studio.fp-inherit-theme .fp-field input[type="number"],
.fp-studio.fp-inherit-theme .fp-field input[type="date"],
.fp-studio.fp-inherit-theme .fp-field input[type="file"],
.fp-studio.fp-inherit-theme .fp-field select,
.fp-studio.fp-inherit-theme .fp-field textarea {
  font: inherit;
}

.fp-studio:not(.fp-inherit-theme) .fp-field textarea {
  min-height: 128px;
  resize: vertical;
}

.fp-studio:not(.fp-inherit-theme) .fp-field input:focus,
.fp-studio:not(.fp-inherit-theme) .fp-field select:focus,
.fp-studio:not(.fp-inherit-theme) .fp-field textarea:focus {
  outline: none;
  border-color: var(--fp-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fp-accent) 18%, transparent);
}

.fp-help {
  margin: 0;
  font-size: 13px;
}

.fp-studio:not(.fp-inherit-theme) .fp-help,
.fp-studio:not(.fp-inherit-theme) .fp-heading-content {
  color: #64748b;
}

.fp-heading-content {
  margin: 0;
}

.fp-field-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

.fp-html-block :first-child {
  margin-top: 0;
}

.fp-html-block :last-child {
  margin-bottom: 0;
}

.fp-choice-group {
  display: grid;
  gap: 8px;
}

.fp-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.fp-studio:not(.fp-inherit-theme) .fp-choice {
  font-weight: 500;
}

.fp-choice input {
  margin-top: 3px;
}

.fp-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.fp-rating label {
  cursor: pointer;
}

.fp-rating input {
  position: absolute;
  opacity: 0;
}

.fp-rating span {
  font-size: 28px;
  color: #cbd5e1;
  transition: color .16s ease, transform .16s ease;
}

.fp-rating label:hover span,
.fp-rating label:hover ~ label span,
.fp-rating label.is-active span {
  color: #f59e0b;
}

.fp-rating label:hover span {
  transform: translateY(-1px) scale(1.06);
}

.fp-nps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fp-nps label {
  cursor: pointer;
}

.fp-nps input {
  position: absolute;
  opacity: 0;
}

.fp-nps span {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
}

.fp-studio:not(.fp-inherit-theme) .fp-nps span {
  border: 1px solid var(--fp-border);
}

.fp-studio.fp-inherit-theme .fp-nps span {
  border: 1px solid currentColor;
}

.fp-studio:not(.fp-inherit-theme) .fp-nps input:checked + span,
.fp-studio:not(.fp-inherit-theme) .fp-nps span:hover {
  background: var(--fp-accent);
  border-color: var(--fp-accent);
  color: #fff;
}

.fp-studio.fp-inherit-theme .fp-nps input:checked + span,
.fp-studio.fp-inherit-theme .fp-nps span:hover {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.fp-page-break {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.fp-studio:not(.fp-inherit-theme) .fp-page-break {
  color: #64748b;
}

.fp-page-break::before,
.fp-page-break::after {
  content: '';
  height: 1px;
  flex: 1;
}

.fp-studio:not(.fp-inherit-theme) .fp-page-break::before,
.fp-studio:not(.fp-inherit-theme) .fp-page-break::after {
  background: var(--fp-border);
}

.fp-studio.fp-inherit-theme .fp-page-break::before,
.fp-studio.fp-inherit-theme .fp-page-break::after {
  background: currentColor;
  opacity: .35;
}

.fp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}

.fp-studio:not(.fp-inherit-theme) .fp-submit,
.fp-studio:not(.fp-inherit-theme) .fp-next,
.fp-studio:not(.fp-inherit-theme) .fp-prev {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.fp-studio:not(.fp-inherit-theme) .fp-submit,
.fp-studio:not(.fp-inherit-theme) .fp-next {
  background: var(--fp-accent);
  color: #fff;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--fp-accent) 28%, transparent);
}

.fp-studio:not(.fp-inherit-theme) .fp-prev {
  background: #f1f5f9;
  color: #334155;
}

.fp-studio:not(.fp-inherit-theme) .fp-submit:hover,
.fp-studio:not(.fp-inherit-theme) .fp-next:hover,
.fp-studio:not(.fp-inherit-theme) .fp-prev:hover {
  transform: translateY(-1px);
}

.fp-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.fp-response,
.fp-alert {
  width: 100%;
  border-radius: 12px;
  font-weight: 600;
}

.fp-response:not(:empty),
.fp-alert {
  padding: 12px 14px;
}

.fp-response-success,
.fp-alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.fp-response-error,
.fp-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.fp-form-notice {
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  padding: 12px;
  border-radius: 10px;
}

.fp-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.fp-mode-conversational .fp-form {
  min-height: 420px;
  align-items: center;
  align-content: center;
  position: relative;
}

.fp-mode-conversational .fp-field {
  display: none;
  width: 100%;
  animation: fpFadeIn .18s ease;
}

.fp-mode-conversational .fp-field.is-conversation-active {
  display: grid;
}

.fp-mode-conversational .fp-field-heading h3,
.fp-mode-conversational .fp-label {
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  line-height: 1.15;
}

.fp-conversation-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  overflow: hidden;
}

.fp-studio:not(.fp-inherit-theme) .fp-conversation-progress {
  background: #e2e8f0;
  border-radius: var(--fp-radius) var(--fp-radius) 0 0;
}

.fp-studio.fp-inherit-theme .fp-conversation-progress {
  background: currentColor;
  opacity: .25;
}

.fp-conversation-progress span {
  display: block;
  height: 100%;
  width: 0;
  transition: width .2s ease;
}

.fp-studio:not(.fp-inherit-theme) .fp-conversation-progress span {
  background: var(--fp-accent);
}

.fp-studio.fp-inherit-theme .fp-conversation-progress span {
  background: currentColor;
  opacity: 1;
}

@keyframes fpFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .fp-width-half,
  .fp-width-third {
    width: 100%;
  }
  .fp-studio:not(.fp-inherit-theme) .fp-form {
    padding: 18px;
  }
  .fp-studio:not(.fp-inherit-theme) .fp-submit,
  .fp-studio:not(.fp-inherit-theme) .fp-next,
  .fp-studio:not(.fp-inherit-theme) .fp-prev {
    width: 100%;
  }
}

/* v0.1.4: visible field help tooltips */
.fp-tooltip {
  position: relative;
  vertical-align: middle;
  flex: 0 0 auto;
  outline: none;
}

.fp-tooltip::after {
  content: attr(data-fp-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 9999;
  width: max-content;
  max-width: min(280px, 70vw);
  transform: translateX(-50%) translateY(4px);
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  padding: 9px 11px;
  pointer-events: none;
  text-align: left;
  white-space: normal;
  visibility: hidden;
}

.fp-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 9999;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: #0f172a;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.fp-tooltip:hover::after,
.fp-tooltip:focus::after,
.fp-tooltip:focus-visible::after,
.fp-tooltip:hover::before,
.fp-tooltip:focus::before,
.fp-tooltip:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

/* v0.1.5: keep checkbox/radio controls usable even when inheriting aggressive theme input styles */
.fp-studio .fp-choice-group {
  width: 100%;
}

.fp-studio .fp-choice input[type="checkbox"],
.fp-studio .fp-choice input[type="radio"] {
  width: auto !important;
  min-width: 16px !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 3px 0 0 !important;
  border-radius: initial !important;
  background: initial !important;
  box-shadow: none !important;
  appearance: auto !important;
  flex: 0 0 auto !important;
}

.fp-studio.fp-inherit-theme .fp-choice input[type="checkbox"],
.fp-studio.fp-inherit-theme .fp-choice input[type="radio"] {
  border: initial !important;
  font: initial;
}

.fp-studio .fp-choice span {
  min-width: 0;
}

/* v0.1.6: stepped forms, heading/button styling, and field icons */
.fp-studio {
  --fp-header-bg: #f8fafc;
  --fp-header-text: #0f172a;
  --fp-header-align: left;
  --fp-header-padding: 16px;
  --fp-button-bg: var(--fp-accent);
  --fp-button-text: #ffffff;
  --fp-button-radius: 999px;
  --fp-button-align: flex-start;
  --fp-icon-color: #64748b;
  --fp-icon-bg: #f8fafc;
}

.fp-field-heading {
  width: 100%;
}

.fp-studio:not(.fp-inherit-theme) .fp-field-heading {
  background: var(--fp-header-bg);
  color: var(--fp-header-text);
  border: 1px solid color-mix(in srgb, var(--fp-header-text) 10%, var(--fp-border));
  border-radius: var(--fp-radius);
  padding: var(--fp-header-padding);
  text-align: var(--fp-header-align);
}

.fp-studio.fp-inherit-theme .fp-field-heading {
  text-align: var(--fp-header-align);
}

.fp-field-heading h3,
.fp-studio:not(.fp-inherit-theme) .fp-field-heading h3,
.fp-studio:not(.fp-inherit-theme) .fp-field-heading .fp-heading-content {
  color: inherit;
}

.fp-actions {
  justify-content: var(--fp-button-align);
}

.fp-studio:not(.fp-inherit-theme) .fp-submit,
.fp-studio:not(.fp-inherit-theme) .fp-next,
.fp-studio:not(.fp-inherit-theme) .fp-prev {
  border-radius: var(--fp-button-radius);
}

.fp-studio:not(.fp-inherit-theme) .fp-submit,
.fp-studio:not(.fp-inherit-theme) .fp-next {
  background: var(--fp-button-bg);
  color: var(--fp-button-text);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--fp-button-bg) 28%, transparent);
}

.fp-buttons-full .fp-submit,
.fp-buttons-full .fp-next,
.fp-buttons-full .fp-prev {
  width: 100%;
}

.fp-label-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--fp-icon-bg);
  color: var(--fp-icon-color);
  font-size: 13px;
  line-height: 1;
  flex: 0 0 auto;
}

.fp-control-with-icon {
  position: relative;
  width: 100%;
}

.fp-field-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transform: translateY(-50%);
  background: var(--fp-icon-bg);
  color: var(--fp-icon-color);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}

.fp-field-textarea .fp-field-input-icon {
  top: 13px;
  transform: none;
}

.fp-icon-inside-control input[type="text"],
.fp-icon-inside-control input[type="email"],
.fp-icon-inside-control input[type="tel"],
.fp-icon-inside-control input[type="url"],
.fp-icon-inside-control input[type="number"],
.fp-icon-inside-control input[type="date"],
.fp-icon-inside-control input[type="file"],
.fp-icon-inside-control select,
.fp-icon-inside-control textarea {
  padding-left: 46px !important;
}

.fp-mode-stepped .fp-form {
  position: relative;
}

.fp-mode-stepped .fp-field {
  display: none;
  animation: fpFadeIn .18s ease;
}

.fp-mode-stepped .fp-field.is-step-active {
  display: grid;
}

.fp-mode-stepped .fp-field-page_break,
.fp-mode-stepped .fp-field-page_break.is-step-divider {
  display: none !important;
}

.fp-step-progress {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-bottom: 2px;
}

.fp-step-progress-bar {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.fp-step-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--fp-button-bg);
  transition: width .2s ease;
}

.fp-step-progress-text {
  color: var(--fp-text);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fp-step-progress-title {
  color: var(--fp-header-text);
  font-weight: 800;
}

.fp-studio.fp-inherit-theme .fp-step-progress-bar {
  background: currentColor;
  opacity: .25;
}

.fp-studio.fp-inherit-theme .fp-step-progress-bar span {
  background: currentColor;
  opacity: 1;
}

.fp-studio.fp-inherit-theme .fp-step-progress-text,
.fp-studio.fp-inherit-theme .fp-step-progress-title {
  color: inherit;
}

/* v0.1.6 safeguards */
.fp-studio .fp-field[hidden],
.fp-studio [hidden] {
  display: none !important;
}

/* v0.1.6 explicit style controls apply to every display mode */
.fp-studio .fp-field-heading {
  text-align: var(--fp-header-align);
}

.fp-studio .fp-submit,
.fp-studio .fp-next,
.fp-studio .fp-prev {
  border-radius: var(--fp-button-radius) !important;
}

.fp-studio .fp-submit,
.fp-studio .fp-next {
  background: var(--fp-button-bg) !important;
  color: var(--fp-button-text) !important;
}

.fp-studio.fp-buttons-full .fp-actions {
  align-items: stretch;
}

/* v0.1.7 true step wizard panels: only one section is visible at a time. */
.fp-mode-stepped .fp-fields.fp-has-step-panels {
  width: 100%;
}

.fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panels,
.fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel {
  width: 100%;
}

.fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel[hidden] {
  display: none !important;
}

.fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel.is-step-active {
  display: block;
  animation: fpFadeIn .18s ease;
}

.fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel .fp-field {
  display: grid;
}

.fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel .fp-width-full {
  width: 100%;
}

.fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel .fp-width-half {
  width: calc(50% - 8px);
}

.fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel .fp-width-third {
  width: calc(33.333% - 11px);
}

@media (max-width: 640px) {
  .fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel .fp-width-half,
  .fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel .fp-width-third {
    width: 100%;
  }
}

/* v0.1.9: safe SVG field icons and compact KanderBooks first steps */
.fp-label-icon svg,
.fp-field-input-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  flex: 0 0 auto;
}

.fp-field-input-icon.fp-icon-text,
.fp-label-icon.fp-icon-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fp-field-input-icon.fp-icon-text:empty,
.fp-label-icon.fp-icon-text:empty {
  display: none;
}

.fp-mode-stepped .fp-step-panel-fields > .fp-field-heading:first-child {
  margin-bottom: 2px;
}

.fp-mode-stepped .fp-step-panel-fields > .fp-field-heading:first-child .fp-heading-content:empty {
  display: none;
}

/* v0.1.11: cache-safe submit polish and narrow sidebar overlap fixes */
.fp-studio {
  max-width: 100%;
  min-width: 0;
  container-type: inline-size;
}

.fp-studio .fp-form,
.fp-studio .fp-fields,
.fp-studio .fp-step-panels,
.fp-studio .fp-step-panel,
.fp-studio .fp-step-panel-fields,
.fp-studio .fp-field,
.fp-studio .fp-control-with-icon,
.fp-studio .fp-actions,
.fp-studio .fp-response,
.fp-studio .fp-choice,
.fp-studio .fp-choice span,
.fp-studio .fp-label,
.fp-studio .fp-step-progress,
.fp-studio .fp-step-progress-text,
.fp-studio .fp-step-progress-title {
  min-width: 0;
  max-width: 100%;
}

.fp-studio .fp-label,
.fp-studio .fp-help,
.fp-studio .fp-heading-content,
.fp-studio .fp-html-block,
.fp-studio .fp-response,
.fp-studio .fp-choice span,
.fp-studio .fp-step-progress-text,
.fp-studio .fp-step-progress-title,
.fp-studio .fp-field-heading h3 {
  overflow-wrap: anywhere;
  word-break: normal;
}

.fp-studio .fp-field input[type="text"],
.fp-studio .fp-field input[type="email"],
.fp-studio .fp-field input[type="tel"],
.fp-studio .fp-field input[type="url"],
.fp-studio .fp-field input[type="number"],
.fp-studio .fp-field input[type="date"],
.fp-studio .fp-field input[type="file"],
.fp-studio .fp-field select,
.fp-studio .fp-field textarea {
  min-width: 0;
}

.fp-studio .fp-submit,
.fp-studio .fp-next,
.fp-studio .fp-prev {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.22;
}

.fp-studio .fp-actions {
  overflow: visible;
}

@container (max-width: 430px) {
  .fp-studio .fp-form {
    gap: 12px;
  }

  .fp-studio:not(.fp-inherit-theme) .fp-form {
    padding: 16px;
  }

  .fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel-fields {
    gap: 12px;
  }

  .fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel .fp-width-half,
  .fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel .fp-width-third,
  .fp-width-half,
  .fp-width-third {
    width: 100%;
  }

  .fp-studio .fp-field-heading h3 {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .fp-studio:not(.fp-inherit-theme) .fp-field-heading {
    padding: min(var(--fp-header-padding), 12px);
  }

  .fp-studio .fp-actions {
    align-items: stretch;
  }

  .fp-studio .fp-submit,
  .fp-studio .fp-next,
  .fp-studio .fp-prev {
    width: 100%;
    justify-content: center;
  }

  .fp-studio .fp-choice {
    align-items: flex-start;
  }

  .fp-studio .fp-step-progress {
    gap: 6px;
  }
}

/* v0.1.22: leased frontend theme add-ons. */
.fp-studio:not(.fp-inherit-theme).fp-theme-marketvista .fp-form {
  border-color: #c7d2fe;
  box-shadow: 0 22px 55px rgba(37, 99, 235, .16);
}
.fp-studio:not(.fp-inherit-theme).fp-theme-marketvista .fp-step-progress-bar {
  background: #dbeafe;
}
.fp-studio:not(.fp-inherit-theme).fp-theme-marketvista .fp-step-progress-bar span {
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.fp-studio:not(.fp-inherit-theme).fp-theme-kanderbooks .fp-form {
  border-color: #cfd8d4;
  box-shadow: 0 20px 48px rgba(0, 59, 45, .12);
}
.fp-studio:not(.fp-inherit-theme).fp-theme-kanderbooks .fp-step-progress-bar span {
  background: linear-gradient(90deg, #003b2d, #0ea5e9);
}
.fp-studio:not(.fp-inherit-theme).fp-theme-kanderbooks .fp-submit,
.fp-studio:not(.fp-inherit-theme).fp-theme-kanderbooks .fp-next {
  box-shadow: 0 12px 24px rgba(14, 165, 233, .25);
}

.fp-studio:not(.fp-inherit-theme).fp-theme-glass .fp-form {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(124, 58, 237, .28);
  box-shadow: 0 24px 60px rgba(76, 29, 149, .16);
  backdrop-filter: blur(18px);
}
.fp-studio:not(.fp-inherit-theme).fp-theme-glass .fp-field input[type="text"],
.fp-studio:not(.fp-inherit-theme).fp-theme-glass .fp-field input[type="email"],
.fp-studio:not(.fp-inherit-theme).fp-theme-glass .fp-field input[type="tel"],
.fp-studio:not(.fp-inherit-theme).fp-theme-glass .fp-field input[type="url"],
.fp-studio:not(.fp-inherit-theme).fp-theme-glass .fp-field input[type="number"],
.fp-studio:not(.fp-inherit-theme).fp-theme-glass .fp-field input[type="date"],
.fp-studio:not(.fp-inherit-theme).fp-theme-glass .fp-field select,
.fp-studio:not(.fp-inherit-theme).fp-theme-glass .fp-field textarea {
  background: rgba(255, 255, 255, .88);
}

.fp-studio:not(.fp-inherit-theme).fp-theme-midnight .fp-form {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .35);
}
.fp-studio:not(.fp-inherit-theme).fp-theme-midnight .fp-label,
.fp-studio:not(.fp-inherit-theme).fp-theme-midnight .fp-step-progress-title,
.fp-studio:not(.fp-inherit-theme).fp-theme-midnight .fp-step-progress-text,
.fp-studio:not(.fp-inherit-theme).fp-theme-midnight .fp-help {
  color: #e2e8f0;
}
.fp-studio:not(.fp-inherit-theme).fp-theme-midnight .fp-field input[type="text"],
.fp-studio:not(.fp-inherit-theme).fp-theme-midnight .fp-field input[type="email"],
.fp-studio:not(.fp-inherit-theme).fp-theme-midnight .fp-field input[type="tel"],
.fp-studio:not(.fp-inherit-theme).fp-theme-midnight .fp-field input[type="url"],
.fp-studio:not(.fp-inherit-theme).fp-theme-midnight .fp-field input[type="number"],
.fp-studio:not(.fp-inherit-theme).fp-theme-midnight .fp-field input[type="date"],
.fp-studio:not(.fp-inherit-theme).fp-theme-midnight .fp-field select,
.fp-studio:not(.fp-inherit-theme).fp-theme-midnight .fp-field textarea {
  background: #111827;
  color: #f8fafc;
  border-color: #475569;
}

.fp-studio:not(.fp-inherit-theme).fp-theme-luxury .fp-form {
  border-color: #f3d19c;
  box-shadow: 0 24px 60px rgba(120, 53, 15, .16);
}
.fp-studio:not(.fp-inherit-theme).fp-theme-luxury .fp-step-progress-bar span {
  background: linear-gradient(90deg, #78350f, #b45309);
}
.fp-studio:not(.fp-inherit-theme).fp-theme-luxury .fp-submit,
.fp-studio:not(.fp-inherit-theme).fp-theme-luxury .fp-next {
  letter-spacing: .02em;
}

/* v0.1.28: contact/card polish and responsive standard-form layout fixes. */
.fp-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.fp-mode-stepped .fp-fields.fp-has-step-panels {
  display: block;
}

.fp-layout-compact .fp-form,
.fp-contact-form .fp-form,
.fp-kanderbooks-form .fp-form {
  gap: 14px;
}

.fp-layout-compact .fp-fields,
.fp-contact-form .fp-fields,
.fp-kanderbooks-form .fp-fields {
  gap: 13px;
}

.fp-layout-compact:not(.fp-inherit-theme) .fp-form,
.fp-contact-form:not(.fp-inherit-theme) .fp-form,
.fp-kanderbooks-form:not(.fp-inherit-theme) .fp-form {
  padding: clamp(18px, 4cqw, 26px);
  border-color: color-mix(in srgb, var(--fp-border) 78%, #ffffff);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.fp-contact-form:not(.fp-inherit-theme) .fp-form {
  box-shadow: 0 22px 60px rgba(15, 23, 42, .10);
}

.fp-contact-form .fp-width-half,
.fp-contact-form .fp-width-third,
.fp-layout-compact .fp-width-half,
.fp-layout-compact .fp-width-third {
  width: 100%;
}

.fp-layout-wide .fp-width-half {
  width: calc(50% - 8px);
}

.fp-layout-wide .fp-width-third {
  width: calc(33.333% - 11px);
}

.fp-layout-comfortable:not(.fp-inherit-theme) .fp-form {
  padding: 30px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .10);
}

.fp-studio .fp-field input[type="text"],
.fp-studio .fp-field input[type="email"],
.fp-studio .fp-field input[type="tel"],
.fp-studio .fp-field input[type="url"],
.fp-studio .fp-field input[type="number"],
.fp-studio .fp-field input[type="date"],
.fp-studio .fp-field input[type="file"],
.fp-studio .fp-field select,
.fp-studio .fp-field textarea,
.fp-studio .fp-control-with-icon > input,
.fp-studio .fp-control-with-icon > select,
.fp-studio .fp-control-with-icon > textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.fp-contact-form:not(.fp-inherit-theme) .fp-label,
.fp-kanderbooks-form:not(.fp-inherit-theme) .fp-label {
  font-size: 14px;
  line-height: 1.25;
}

.fp-contact-form:not(.fp-inherit-theme) .fp-field input[type="text"],
.fp-contact-form:not(.fp-inherit-theme) .fp-field input[type="email"],
.fp-contact-form:not(.fp-inherit-theme) .fp-field input[type="tel"],
.fp-contact-form:not(.fp-inherit-theme) .fp-field input[type="url"],
.fp-contact-form:not(.fp-inherit-theme) .fp-field input[type="number"],
.fp-contact-form:not(.fp-inherit-theme) .fp-field input[type="date"],
.fp-contact-form:not(.fp-inherit-theme) .fp-field select {
  min-height: 46px;
  border-radius: 12px;
}

.fp-contact-form:not(.fp-inherit-theme) .fp-field textarea {
  min-height: 118px;
  border-radius: 12px;
}

.fp-contact-form .fp-actions,
.fp-layout-compact.fp-buttons-full .fp-actions {
  align-items: stretch;
}

.fp-contact-form .fp-submit,
.fp-contact-form .fp-next,
.fp-contact-form .fp-prev,
.fp-layout-compact.fp-buttons-full .fp-submit,
.fp-layout-compact.fp-buttons-full .fp-next,
.fp-layout-compact.fp-buttons-full .fp-prev {
  width: 100%;
  justify-content: center;
}

.fp-contact-form .fp-submit {
  min-height: 46px;
}

.fp-theme-kanderbooks:not(.fp-inherit-theme) .fp-form {
  border-color: #dbe7e4;
  box-shadow: 0 20px 52px rgba(0, 59, 45, .11);
}

.fp-theme-kanderbooks:not(.fp-inherit-theme) .fp-field input[type="text"],
.fp-theme-kanderbooks:not(.fp-inherit-theme) .fp-field input[type="email"],
.fp-theme-kanderbooks:not(.fp-inherit-theme) .fp-field input[type="tel"],
.fp-theme-kanderbooks:not(.fp-inherit-theme) .fp-field input[type="url"],
.fp-theme-kanderbooks:not(.fp-inherit-theme) .fp-field input[type="number"],
.fp-theme-kanderbooks:not(.fp-inherit-theme) .fp-field input[type="date"],
.fp-theme-kanderbooks:not(.fp-inherit-theme) .fp-field select,
.fp-theme-kanderbooks:not(.fp-inherit-theme) .fp-field textarea {
  border-color: #dbe7e4;
  background: #ffffff;
}

.fp-theme-kanderbooks:not(.fp-inherit-theme) .fp-label,
.fp-theme-kanderbooks:not(.fp-inherit-theme) .fp-step-progress-text,
.fp-theme-kanderbooks:not(.fp-inherit-theme) .fp-step-progress-title {
  color: #003b2d;
}

@container (max-width: 620px) {
  .fp-studio .fp-fields {
    gap: 12px;
  }

  .fp-studio .fp-width-half,
  .fp-studio .fp-width-third,
  .fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel .fp-width-half,
  .fp-mode-stepped .fp-fields.fp-has-step-panels .fp-step-panel .fp-width-third {
    width: 100% !important;
  }

  .fp-studio:not(.fp-inherit-theme) .fp-form {
    padding: 18px;
  }

  .fp-studio .fp-actions {
    align-items: stretch;
  }

  .fp-studio .fp-submit,
  .fp-studio .fp-next,
  .fp-studio .fp-prev {
    width: 100%;
    justify-content: center;
  }
}

@supports not (container-type: inline-size) {
  @media (max-width: 1024px) {
    .fp-studio .fp-width-half,
    .fp-studio .fp-width-third {
      width: 100% !important;
    }
  }
}
