/* Lead form layout (parts/lead-form.php), as the Elementor form had it.
   Colors and sizes of the fields are in footer.css and popup-form.css. */

.dorya-lead-form-wrap {
  padding: 10px;
}

.dorya-form-fields {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px -10px;
}

.dorya-form-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  min-height: 1px;
  margin-bottom: 10px;
  padding: 0 5px;
}

.dorya-form-group--half {
  width: 50%;
}

.dorya-form-group--submit {
  align-items: flex-end;
}

.dorya-form-label {
  display: block;
  line-height: 1;
  vertical-align: middle;
}

.dorya-form-input {
  display: block;
  min-height: 40px;
  line-height: 1.4;
  vertical-align: middle;
}

.dorya-form-select {
  position: relative;
  display: flex;
  width: 100%;
  color: #604362;
}

.dorya-form-select select {
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.5;
  cursor: pointer;
}

.dorya-form-caret {
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  z-index: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.dorya-form-consent {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.dorya-form-consent-option {
  display: block;
}

.dorya-form-consent-option input {
  background-color: #fff;
  color: #604362;
}

.dorya-form-consent-option label {
  display: inline;
  line-height: 1;
  vertical-align: middle;
}

.dorya-form-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 59px;
  line-height: 1;
  text-align: center;
}

.dorya-form-button[disabled] {
  opacity: 0.6;
  cursor: wait !important;
}

/* Hidden from people; bots fill it in and their message is dropped. */
.dorya-form-website {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.dorya-form-message {
  margin: 10px 0;
  font-size: 1em;
  line-height: 1;
}

.dorya-form-message.is-success {
  color: #5cb85c;
}

.dorya-form-message.is-error {
  color: #d9534f;
}

@media (max-width: 767px) {
  .dorya-form-group--half {
    width: 100%;
  }
}
