/* Structural styles — customize further in Divi / theme CSS. */

.ep-lead-form {
  display: block;
  max-width: 100%;
}

.ep-lead-form .ep-lead-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1rem;
  align-items: start;
}

.ep-lead-form .ep-lead-field {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
}

.ep-lead-form .ep-lead-field--full {
  grid-column: 1 / -1;
}

.ep-lead-form .ep-lead-field--half {
  grid-column: span 1;
}

@media (max-width: 767px) {
  .ep-lead-form .ep-lead-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .ep-lead-form .ep-lead-field--half {
    grid-column: 1 / -1;
  }
}

.ep-lead-form .ep-lead-field label {
  display: block;
  margin-bottom: 0.35rem;
}

.ep-lead-form .ep-lead-field .ep-lead-input,
.ep-lead-form .ep-lead-field textarea,
.ep-lead-form .ep-lead-field select {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ep-lead-checkbox-label,
.ep-lead-radio-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ep-lead-checkbox-label .ep-lead-input,
.ep-lead-radio-label .ep-lead-input {
  width: auto;
  margin-top: 0.2rem;
}

.ep-lead-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ep-lead-required {
  color: #b32d2e;
}

.ep-lead-form .ep-lead-actions {
  margin-top: 1rem;
}

.ep-lead-status {
  margin-top: 0.75rem;
}

.ep-lead-status--error {
  color: #b32d2e;
}

.ep-lead-status--ok {
  color: #007017;
}

.ep-lead-form-error {
  color: #b32d2e;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
