.sefe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sefe-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sefe-width-100 { flex: 0 0 100%; }
.sefe-width-75 { flex: 0 0 calc(75% - 10.5px); }
.sefe-width-66 { flex: 0 0 calc(66.666% - 9.4px); }
.sefe-width-50 { flex: 0 0 calc(50% - 7px); }
.sefe-width-33 { flex: 0 0 calc(33.333% - 9.4px); }
.sefe-width-25 { flex: 0 0 calc(25% - 10.5px); }
.sefe-width-auto { flex: 0 0 auto; }

.sefe-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.sefe-labels-hidden .sefe-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sefe-labels-inline .sefe-field:not(.sefe-field-submit) {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) 1fr;
  align-items: center;
  column-gap: 12px;
}

.sefe-labels-inline .sefe-label {
  margin-bottom: 0;
}

.sefe-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d2d8e2;
  border-radius: 6px;
  background: #fff;
  color: #20242a;
  font: inherit;
}

textarea.sefe-control {
  min-height: 120px;
  resize: vertical;
}

.sefe-control:focus {
  outline: 2px solid rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
}

.sefe-choices {
  display: grid;
  gap: 8px;
}

.sefe-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sefe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sefe-width-100 .sefe-button {
  width: 100%;
}

.sefe-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.sefe-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: sefe-spin 0.75s linear infinite;
}

.is-submitting .sefe-spinner {
  display: inline-block;
}

.sefe-response {
  flex: 0 0 100%;
  min-height: 20px;
  font-size: 14px;
}

.sefe-response.is-error {
  color: #b42318;
}

.sefe-response.is-success {
  color: #087443;
}

.sefe-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

@media (max-width: 767px) {
  .sefe-width-75,
  .sefe-width-66,
  .sefe-width-50,
  .sefe-width-33,
  .sefe-width-25,
  .sefe-width-auto {
    flex-basis: 100%;
  }

  .sefe-labels-inline .sefe-field:not(.sefe-field-submit) {
    display: flex;
  }
}
