/* Styling für das Frontend */
#digitalmdma-contact-form input, #digitalmdma-contact-form textarea {
  -webkit-appearance: auto!important;
  background: #ffffff;
  background-color: #ffffff;
  box-shadow: none;
}

#digitalmdma-contact-form input[type="checkbox"] {
  position: relative !important;
  height: 30px!important;
  float: left!important;
  margin-top: 5px !important;
  margin-right: 10px !important;
  -webkit-transform: none !important;
  -ms-transform: none !important;
  transform: none !important;
}
#digitalmdma-contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

#digitalmdma-contact-form .form-field {
  width: 100%;
  margin-bottom: 10px;
}

#digitalmdma-contact-form .form-field.dmdma-field-half {
  width: calc(50% - 8px);
}

#digitalmdma-contact-form .dmdma-form-heading {
  margin: 4px 0 0;
  font-size: 1.5rem;
}

#digitalmdma-contact-form > button[type="submit"] {
  flex-basis: 100%;
}

@media (max-width: 640px) {
  #digitalmdma-contact-form .form-field.dmdma-field-half {
    width: 100%;
  }
}

#digitalmdma-form-footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
#digitalmdma-form-footer #feedback {
  width: 50%;
  text-align: left;
  font-size: 10px;
  color: #727272;
  margin-top: 5px;
}
#digitalmdma-form-footer #feedback a {
  color: #727272;
  text-decoration: none;
}
#digitalmdma-form-footer #feedback a:hover {
  color: #10e4a9;
}
#digitalmdma-form-footer #poweredby {
  width: 50%;
  text-align: right;
  font-size: 10px;
  color: #727272;
  margin-top: 5px;
}
#digitalmdma-form-footer #poweredby a, #digitalmdma-form-footer #poweredby a:visited, #digitalmdma-form-footer #poweredby a:active {
  color: #727272;
  text-decoration: none;
}

#digitalmdma-form-footer #poweredby a:hover {
  color: #10e4a9;
}

#digitalmdma-contact-form input.error, #digitalmdma-contact-form textarea.error, #digitalmdma-contact-form select.error {
    border: 2px solid red;
}
#digitalmdma-contact-form input[type=checkbox] {
  margin-top: 4px;
  margin-right: 10px;
}
#digitalmdma-contact-form label {
  display: flex;
  flex-direction: row;
  align-items: start;
}
#puzzle-container {
  display: flex;
  justify-content: center;
  flex-flow: column;
}

/* Ladeanimation nach dem Puzzle bis zur Erfolgs-/Fehlermeldung */
.dmdma-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.dmdma-loading p {
  margin-top: 12px;
  color: #333;
  font-weight: bold;
}
.dmdma-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: #10e4a9;
  border-radius: 50%;
  animation: dmdma-spin 0.8s linear infinite;
}
@keyframes dmdma-spin {
  to {
    transform: rotate(360deg);
  }
}


/*  Muster für Kundenwebseiten - START */
#digitalmdma-contact-form input[type="text"],
#digitalmdma-contact-form input[type="email"],
#digitalmdma-contact-form input[type="number"],
#digitalmdma-contact-form input[type="date"],
#digitalmdma-contact-form input[type="time"],
#digitalmdma-contact-form input[type="datetime-local"] {
  padding: 10px;
  border: 1px solid #000;
  width: calc(100% - 22px);
  margin-bottom: 15px;
}
/* Drag & Drop Datei-Upload */
#digitalmdma-contact-form .dmdma-dropzone {
  border: 2px dashed #000;
  background-color: #fafafa;
  padding: 25px 15px;
  margin-bottom: 15px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
#digitalmdma-contact-form .dmdma-dropzone.dmdma-dropzone-active {
  background-color: #eafaf4;
  border-color: #10e4a9;
}
#digitalmdma-contact-form .dmdma-dropzone.error {
  border-color: red;
}
#digitalmdma-contact-form .dmdma-dropzone input[type="file"] {
  display: none;
}
#digitalmdma-contact-form .dmdma-dropzone-text {
  color: #333;
}
#digitalmdma-contact-form .dmdma-dropzone-hint {
  font-size: 12px;
  color: #727272;
}
#digitalmdma-contact-form .dmdma-file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  text-align: left;
}
#digitalmdma-contact-form .dmdma-file-list li {
  display: block;
  position: relative;
  padding: 7px 38px 7px 10px;
  margin-bottom: 5px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  text-align: left;
  line-height: 1.4;
}
#digitalmdma-contact-form .dmdma-file-name {
  display: inline;
  word-break: break-word;
  overflow-wrap: anywhere;
}
#digitalmdma-contact-form .dmdma-file-size {
  display: inline;
  margin-left: 8px;
  color: #727272;
  font-size: 12px;
  white-space: nowrap;
}
#digitalmdma-contact-form .dmdma-file-remove {
  position: absolute;
  top: 0;
  right: 0;
  left: auto !important;
  width: 34px !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #dc3232;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
#digitalmdma-contact-form .dmdma-file-remove:hover {
  color: #a00;
  background: transparent !important;
}
#digitalmdma-contact-form select {
  padding: 10px;
  border: 1px solid #000;
  width: 100%;
  margin-bottom: 15px;
  background-color: #ffffff;
}
#digitalmdma-contact-form select[multiple] {
  height: auto;
  min-height: 120px;
}
#digitalmdma-contact-form input[type="radio"] {
  margin-top: 4px;
  margin-right: 10px;
}
#digitalmdma-contact-form textarea {
  padding: 10px;
  border: 1px solid #000;
  font-size: 16px;
  width: calc(100% - 22px);
  height: 200px;
  margin-bottom: 15px;
}
#digitalmdma-contact-form button[type=submit], #digitalmdma-contact-form button[type=submit]:hover {
  margin-top: 30px;
  border: none;
  padding: 10px;
  width: 100%;
  color: #fff;
  background-color: #000;
}
#digitalmdma-contact-form button[type=submit]:hover {
  cursor: pointer;
  background-color: #6b6b6b;
}

.success-message,
.error-message {
  white-space: pre-line;
}

.dmdma-voice-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin: 6px 0 16px;
}
.dmdma-voice-card.error {
  border-color: #b91c1c;
}
.dmdma-voice-head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 10px;
}
.dmdma-voice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
}
.dmdma-ctrl,
.dmdma-voice-clear {
  font: inherit;
  cursor: pointer;
}
.dmdma-ctrl {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}
.dmdma-mic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.dmdma-mic[aria-pressed="true"] {
  background: #b91c1c;
  border-color: #b91c1c;
}
.dmdma-mic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}
.dmdma-mic[aria-pressed="true"] .dmdma-mic-dot {
  background: #fecaca;
  animation: dmdma-voice-pulse 1s infinite;
}
@keyframes dmdma-voice-pulse {
  50% { opacity: .35; }
}
.dmdma-voice-time {
  font-variant-numeric: tabular-nums;
  color: #64748b;
  font-size: 13px;
}
.dmdma-voice-clear,
.dmdma-voice-text-toggle {
  border: 0;
  background: none;
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 0;
}
.dmdma-voice-hint,
.dmdma-voice-error {
  margin: 0 0 14px;
  font-size: 13px;
}
.dmdma-voice-hint {
  color: #94a3b8;
}
.dmdma-voice-error {
  color: #b91c1c;
}
#digitalmdma-contact-form [hidden] {
  display: none !important;
}
#digitalmdma-contact-form .dmdma-ctrl[hidden],
#digitalmdma-contact-form .dmdma-voice-clear[hidden],
#digitalmdma-contact-form .dmdma-voice-preview[hidden],
#digitalmdma-contact-form .dmdma-voice-time[hidden],
#digitalmdma-contact-form .dmdma-voice-error[hidden] {
  display: none !important;
}
#digitalmdma-contact-form .dmdma-voice-card.is-recorded [data-dmdma-play]:not([hidden]),
#digitalmdma-contact-form .dmdma-voice-card.is-recorded [data-dmdma-clear]:not([hidden]) {
  display: inline-flex !important;
  align-items: center;
}
#digitalmdma-contact-form .dmdma-voice-card.is-recorded .dmdma-voice-preview:not([hidden]) {
  display: block !important;
}
.dmdma-voice-preview,
.dmdma-voice-player {
  width: 100%;
  margin: 8px 0 14px;
}
.dmdma-voice-text textarea {
  width: 100%;
  min-height: 120px;
}

#digitalmdma-contact-form .dmdma-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin: 0 0 15px;
  position: relative;
}
#digitalmdma-contact-form .dmdma-star {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  cursor: pointer;
  line-height: 1;
}
#digitalmdma-contact-form .dmdma-star-icon {
  font-size: 32px;
  line-height: 1;
  color: #cbd5e1;
}
#digitalmdma-contact-form .dmdma-stars input:checked ~ .dmdma-star .dmdma-star-icon,
#digitalmdma-contact-form .dmdma-stars .dmdma-star:hover .dmdma-star-icon,
#digitalmdma-contact-form .dmdma-stars .dmdma-star:hover ~ .dmdma-star .dmdma-star-icon {
  color: #f5b301;
}
#digitalmdma-contact-form .dmdma-stars input:focus-visible + .dmdma-star .dmdma-star-icon {
  outline: 2px solid #000;
  border-radius: 4px;
}
#digitalmdma-contact-form .dmdma-stars input,
#digitalmdma-contact-form .dmdma-image-choice input {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none;
}
#digitalmdma-contact-form .dmdma-image-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
  margin-bottom: 15px;
}
#digitalmdma-contact-form .dmdma-image-choice {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  gap: 8px;
  width: auto;
  margin: 0;
  padding: 8px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  position: relative;
}
#digitalmdma-contact-form .dmdma-image-choice img,
#digitalmdma-contact-form .dmdma-image-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  color: #727272;
  font-size: 13px;
}
#digitalmdma-contact-form .dmdma-image-caption {
  display: block;
  text-align: center;
  font-size: 14px;
}
#digitalmdma-contact-form .dmdma-image-choice:has(input:checked) {
  border-color: #10e4a9;
  box-shadow: inset 0 0 0 2px #10e4a9;
}
#digitalmdma-contact-form .dmdma-image-choice:has(input:focus-visible) {
  outline: 2px solid #000;
}
#digitalmdma-contact-form .dmdma-stars.error,
#digitalmdma-contact-form .dmdma-image-choices.error {
  outline: 2px solid red;
  border-radius: 8px;
}
/*  Muster für Kundenwebseiten - ENDE */


