.wp-block-paxlautan-flexible-form,
.pax-flex-editor {
  margin: 0;
}

.pax-flex-form__card {
  position: relative;
  border-radius: 28px 28px 0 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(46, 20, 58, 0.12);
  padding: clamp(1.25rem, 2vw, 2rem);
  overflow: hidden;
}

.pax-flex-form__card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(194,16,81,0.15), rgba(75,39,91,0.05));
}

.pax-flex-form__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 0.95;
  color: #4b275b;
  font-weight: 800;
}

.pax-flex-form__intro,
.pax-flex-form__intro-preview {
  margin: 0 0 1.25rem;
  color: #4d4452;
  line-height: 1.65;
}

.pax-flex-form__form {
  display: grid;
  gap: 1rem;
}

.pax-flex-form__field {
  display: grid;
  gap: 0.45rem;
}

.pax-flex-form__label {
  color: #4b275b;
  font-weight: 700;
  font-size: 0.96rem;
}

.pax-flex-form__label span {
  color: #c21051;
}

.pax-flex-form input,
.pax-flex-form textarea,
.pax-flex-form select {
  width: 100%;
  border: 1px solid rgba(75,39,91,0.16);
  border-radius: 18px 18px 0 18px;
  background: #fff;
  color: #2b2330;
  padding: 0.95rem 1rem;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.pax-flex-form textarea {
  resize: vertical;
  min-height: 140px;
}

.pax-flex-form input:focus,
.pax-flex-form textarea:focus,
.pax-flex-form select:focus {
  outline: 2px solid rgba(194,16,81,0.25);
  border-color: rgba(194,16,81,0.4);
}

.pax-flex-form__choices {
  display: grid;
  gap: 0.7rem;
}

.pax-flex-form__choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 18px;
  padding: 0.8rem 0.9rem;
  background: rgba(248,243,248,0.9);
}

.pax-flex-form__choice input {
  width: auto;
  margin: 0;
}

.pax-flex-form__help {
  margin: -0.1rem 0 0;
  font-size: 0.9rem;
  color: rgba(75,39,91,0.72);
}

.pax-flex-form__submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 220px;
  border: 0;
  border-radius: 999px;
  background: #c21051;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 16px 34px rgba(194,16,81,0.24);
}

.pax-flex-form__submit:hover,
.pax-flex-form__submit:focus-visible {
  transform: translateY(-2px);
  background: #a90d47;
}

.pax-flex-form__notice {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 20px 20px 0 20px;
  font-weight: 600;
}

.pax-flex-form__notice.is-success {
  background: rgba(42, 136, 98, 0.12);
  color: #255c49;
}

.pax-flex-form__notice.is-error {
  background: rgba(194,16,81,0.1);
  color: #8a1645;
}

.pax-flex-editor {
  border: 1px dashed rgba(75,39,91,0.18);
  border-radius: 28px;
  padding: 1rem;
  background: rgba(248,243,248,0.58);
}

.pax-flex-editor__field {
  border: 1px solid rgba(75,39,91,0.12);
  border-radius: 20px;
  padding: 0.8rem;
  margin-bottom: 0.9rem;
  background: #fff;
}

.pax-flex-editor__field-head,
.pax-flex-editor__field-actions,
.pax-flex-editor__add {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.pax-flex-editor__preview-fields {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.pax-flex-editor__preview-field {
  border-radius: 18px;
  background: rgba(248,243,248,0.94);
  padding: 0.85rem 1rem;
}

.pax-flex-editor__preview-label {
  display: block;
  margin-bottom: 0.4rem;
  color: #4b275b;
  font-weight: 700;
}

.pax-flex-editor__preview-input {
  color: rgba(75,39,91,0.7);
  font-size: 0.92rem;
}

@media (max-width: 700px) {
  .pax-flex-form__submit {
    width: 100%;
    min-width: 0;
  }
}
