.crm-forms {
  display: grid;
  gap: var(--crm-form-gap, 14px);
  width: 100%;
  max-width: var(--crm-form-width, 760px);
  min-width: 0;
  box-sizing: border-box;
  background: var(--crm-form-bg, transparent);
  padding: var(--crm-form-padding, 0);
  border-radius: var(--crm-form-radius, 0);
  box-shadow: var(--crm-form-shadow, none);
  font-family: var(--crm-font, inherit);
  color: inherit;
  margin: var(--crm-form-margin, 0);
}
.crm-forms-hp {
  position: absolute;
  left: -9999px;
}
.crm-forms-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--crm-form-gap, 12px);
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.crm-forms-field,
.crm-forms-repeater,
.crm-forms-step,
.crm-forms-repeater-row {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.crm-forms label {
  font-weight: var(--crm-label-weight, 600);
  font-size: var(--crm-label-size, inherit);
  color: var(--crm-label-color, inherit);
}
.crm-forms input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]),
.crm-forms select,
.wp-core-ui .crm-forms select,
.wp-core-ui .crm-forms input[type="date"],
.wp-core-ui .crm-forms input[type="time"],
.wp-core-ui .crm-forms input[type="datetime-local"],
.wp-core-ui .crm-forms input[type="text"],
.wp-core-ui .crm-forms input[type="email"],
.wp-core-ui .crm-forms input[type="tel"],
.wp-core-ui .crm-forms textarea,
.crm-forms textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-family: inherit;
  font-size: var(--crm-input-size, inherit);
  font-weight: var(--crm-input-weight, inherit);
  color: var(--crm-input-color, inherit);
  background: var(--crm-input-bg, #fff);
  border: var(--crm-input-border-w, 1px) solid var(--crm-input-border, #d0d0d0);
  border-radius: var(--crm-input-radius, 4px);
  padding: var(--crm-input-padding, 10px 12px);
  box-shadow: var(--crm-input-shadow, none);
}
.crm-forms input:not([type="checkbox"]):not([type="radio"]):focus,
.crm-forms select:focus,
.crm-forms textarea:focus {
  outline: 2px solid var(--crm-input-focus, currentColor);
  outline-offset: 1px;
}
.crm-forms input[type="checkbox"],
.crm-forms input[type="radio"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  max-width: 1rem;
  margin: 0.2rem 0 0;
  padding: 0;
  box-shadow: none;
  appearance: auto;
  -webkit-appearance: auto;
}
.crm-forms input[type="checkbox"]::before,
.crm-forms input[type="radio"]::before {
  content: none;
  display: none;
}
.crm-forms input[type="color"],
.crm-forms input[type="range"] {
  width: auto;
}
.crm-forms-req { color: var(--crm-required, #c4552a); font-weight: 600; }
.crm-forms-choices { display: grid; gap: 4px; }
.crm-forms-consent-title {
  font-weight: var(--crm-label-weight, 600);
}
.crm-forms .crm-forms-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-weight: 400;
}
.crm-forms .crm-forms-consent input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
  border: 1px solid #50575e !important;
  border-radius: 2px !important;
  background: #fff !important;
  box-shadow: none !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  position: static !important;
  float: none !important;
  display: inline-block !important;
}
.crm-forms .crm-forms-consent input[type="checkbox"]::before,
.crm-forms .crm-forms-consent input[type="checkbox"]::after {
  content: none !important;
  display: none !important;
}
.crm-forms-consent-text {
  display: block;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-weight: 400;
  line-height: 1.45;
}
.crm-forms a { color: var(--crm-link, inherit); }
.crm-forms-nav { display: flex; gap: 8px; }
.crm-forms button {
  font-family: inherit;
  font-size: var(--crm-btn-size, inherit);
  font-weight: var(--crm-btn-weight, 600);
  color: var(--crm-btn-color, inherit);
  background: var(--crm-btn-bg, transparent);
  border: 1px solid currentColor;
  border-radius: var(--crm-btn-radius, 4px);
  padding: var(--crm-btn-padding, 10px 18px);
  box-shadow: var(--crm-btn-shadow, none);
  cursor: pointer;
}
.crm-forms button:hover {
  color: var(--crm-btn-hover-color, var(--crm-btn-color, inherit));
  background: var(--crm-btn-hover-bg, var(--crm-btn-bg, transparent));
}
.crm-forms-tour-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crm-forms-slot-hint {
  margin: 0;
  font-size: 0.92em;
}
.crm-forms-slot {
  width: auto;
  margin: 0;
  padding: 6px 10px;
}
.crm-forms-slot.is-selected {
  background: var(--crm-btn-bg, transparent);
  color: var(--crm-btn-color, inherit);
}
.crm-forms-message.is-ok { color: var(--crm-success, #146c43); }
.crm-forms-message.is-error { color: var(--crm-error, #9b1c1c); }
.crm-forms-repeater-row {
  border: 1px solid #e2e2e2;
  padding: 10px;
  margin-bottom: 8px;
}
.crm-forms-shortcode { display: inline-flex; gap: 6px; align-items: center; margin: 0 8px 8px 0; }
.crm-forms-shortcode input { width: 280px; }
@media (max-width: 640px) {
  .crm-forms { max-width: 100%; }
  .crm-forms-row { grid-template-columns: minmax(0, 1fr); }
  .crm-forms-width-half { width: 100%; max-width: 100%; }
  .crm-forms select,
  .crm-forms input[type="date"],
  .crm-forms input[type="time"],
  .crm-forms input[type="datetime-local"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
