/* ================================================================
   DMD2 Voices — Bewerbungsformular CSS v6
   Loads AFTER elementor-frontend.
   All interactive elements use non-button tags to bypass theme.
   Critical dimensions in hard px, all font-sizes !important.
   ================================================================ */

/* ── Variables on wrapper ───────────────────────────────────── */
.dmd2r-wrap {
  --r-accent:  #ABA285;
  --r-dk:      #6b6a50;
  --r-lt:      #f0ede0;
  --r-text:    #4a4a49;
  --r-muted:   #8B8975;
  --r-hint:    #b4b09a;
  --r-bg:      #F7F5EE;
  --r-white:   #ffffff;
  --r-border:  #E0DDD0;
  --r-bdk:     #C8C6B2;
  font-family: 'proxima-nova','Proxima Nova',-apple-system,sans-serif;
  color: #4a4a49;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  line-height: 1.5;
  font-size: 18px !important;
}
.dmd2r-wrap *, .dmd2r-wrap *::before, .dmd2r-wrap *::after {
  box-sizing: border-box;
}

/* ── Header ─────────────────────────────────────────────────── */
.dmd2r-wrap .dmd2r-heading {
  display: block;
  font-size: 31.2px !important;
  font-weight: 800;
  color: #1a1a14;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  line-height: 1.2;
}
.dmd2r-wrap .dmd2r-intro {
  display: block;
  font-size: 18px !important;
  color: #8B8975;
  margin: 0 0 24px;
  line-height: 1.55;
}

/* ── Section cards ──────────────────────────────────────────── */
.dmd2r-wrap .dmd2r-section {
  display: block;
  background: #ffffff;
  border: 1.5px solid #E0DDD0;
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: 0 1px 6px rgba(26,26,20,.06);
}
.dmd2r-wrap .dmd2r-section-gdpr { background: #F7F5EE; }

.dmd2r-wrap .dmd2r-section-label {
  display: block;
  font-size: 12px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #8B8975;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid #E0DDD0;
}

/* ── Grid ───────────────────────────────────────────────────── */
.dmd2r-wrap .dmd2r-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 520px) {
  .dmd2r-wrap .dmd2r-grid-2 { grid-template-columns: 1fr; }
}

/* ── Field ──────────────────────────────────────────────────── */
.dmd2r-wrap .dmd2r-field { display: block; margin-bottom: 14px; }
.dmd2r-wrap .dmd2r-field:last-child { margin-bottom: 0; }

.dmd2r-wrap .dmd2r-label {
  display: block;
  font-size: 12.6px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #8B8975;
  margin-bottom: 5px;
}
.dmd2r-wrap .dmd2r-req { color: #ABA285; }

.dmd2r-wrap .dmd2r-hint {
  display: block;
  font-size: 13.8px !important;
  color: #b4b09a;
  margin-top: 4px;
  line-height: 1.4;
}

/* ── All text inputs, textarea, select ─────────────────────── */
/* Using broad selectors to beat theme with high specificity */
.dmd2r-wrap input[type="text"],
.dmd2r-wrap input[type="email"],
.dmd2r-wrap input[type="tel"],
.dmd2r-wrap input[type="url"],
.dmd2r-wrap textarea {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  width: 100% !important;
  padding: 8px 11px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1.5px solid #C8C6B2 !important;
  border-radius: 6px !important;
  font-size: 16.8px !important;
  font-family: 'proxima-nova','Proxima Nova',-apple-system,sans-serif !important;
  color: #4a4a49 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
}
.dmd2r-wrap input[type="text"]:focus,
.dmd2r-wrap input[type="email"]:focus,
.dmd2r-wrap input[type="tel"]:focus,
.dmd2r-wrap input[type="url"]:focus,
.dmd2r-wrap textarea:focus {
  border-color: #ABA285 !important;
  box-shadow: 0 0 0 3px rgba(139,137,104,.1) !important;
  outline: none !important;
}
.dmd2r-wrap input::placeholder,
.dmd2r-wrap textarea::placeholder { color: #b4b09a !important; opacity: 1 !important; }
.dmd2r-wrap textarea {
  resize: vertical !important;
  min-height: 90px !important;
}

/* Select */
.dmd2r-wrap select {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  width: 100% !important;
  padding: 8px 30px 8px 11px !important;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238B8975'/%3E%3C/svg%3E") no-repeat right 11px center !important;
  border: 1.5px solid #C8C6B2 !important;
  border-radius: 6px !important;
  font-size: 16.8px !important;
  font-family: 'proxima-nova','Proxima Nova',-apple-system,sans-serif !important;
  color: #4a4a49 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  margin: 0 !important;
}
.dmd2r-wrap select:focus {
  border-color: #ABA285 !important;
  box-shadow: 0 0 0 3px rgba(139,137,104,.1) !important;
  outline: none !important;
}

/* invalid state */
.dmd2r-wrap input.is-invalid,
.dmd2r-wrap select.is-invalid { border-color: #dc2626 !important; }
.dmd2r-wrap .dmd2r-lang-list.is-invalid { border-color: #dc2626 !important; }

/* ── Custom checkbox — JS-toggled .is-checked ────────────────── */
/* Native input: hidden via inline style in PHP (display:none!important) */
.dmd2r-wrap .dmd2r-check-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}
.dmd2r-wrap .dmd2r-cb-box {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  border: 1.5px solid #C8C6B2 !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  transition: background .1s, border-color .1s;
  position: relative !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.dmd2r-wrap .dmd2r-cb-box.is-checked {
  background: #ABA285 !important;
  background-color: #ABA285 !important;
  border-color: #ABA285 !important;
}
.dmd2r-wrap .dmd2r-cb-box.is-checked::after {
  content: '';
  display: block !important;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  position: absolute;
}
.dmd2r-wrap .dmd2r-cb-text {
  font-size: 16.2px !important;
  color: #4a4a49;
  line-height: 1.45;
  flex: 1;
}
.dmd2r-wrap .dmd2r-cb-text a { color: #ABA285; text-decoration: underline; }

/* Style-tag chips */
.dmd2r-wrap .dmd2r-style-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.dmd2r-wrap .dmd2r-style-item {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  font-size: 15.6px !important;
  color: #4a4a49;
  padding: 5px 10px;
  border: 1.5px solid #C8C6B2 !important;
  border-radius: 4px;
  background: #F7F5EE !important;
  box-shadow: none !important;
  transition: border-color .12s, background .12s;
}
.dmd2r-wrap .dmd2r-style-item:hover          { border-color: #ABA285 !important; }
.dmd2r-wrap .dmd2r-style-item.is-checked     { background: #f0ede0 !important; border-color: #ABA285 !important; }
.dmd2r-wrap .dmd2r-style-item .dmd2r-cb-box  { width: 14px !important; height: 14px !important; min-width: 14px !important; min-height: 14px !important; }

/* ── Custom radio — JS-toggled ──────────────────────────────── */
.dmd2r-wrap .dmd2r-radio-row {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}
.dmd2r-wrap .dmd2r-rb-box {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  border: 1.5px solid #C8C6B2 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  margin-top: 2px;
  transition: border-color .1s;
  position: relative !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.dmd2r-wrap .dmd2r-rb-box.is-checked { border-color: #ABA285 !important; }
.dmd2r-wrap .dmd2r-rb-box.is-checked::after {
  content: '';
  display: block !important;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ABA285;
  position: absolute;
}
.dmd2r-wrap .dmd2r-rb-text { font-size: 16.2px !important; color: #4a4a49; line-height: 1.45; flex: 1; }

/* ── Language accordion ─────────────────────────────────────── */
.dmd2r-wrap .dmd2r-lang-list {
  border: 1.5px solid #C8C6B2;
  border-radius: 6px;
  overflow: visible;
}
/* Round first/last items to preserve visual border-radius */
.dmd2r-wrap .dmd2r-lang-item:first-child { border-radius: 5px 5px 0 0; overflow: hidden; }
.dmd2r-wrap .dmd2r-lang-item:last-child  { border-radius: 0 0 5px 5px; overflow: hidden; }
.dmd2r-wrap .dmd2r-lang-item { border-bottom: 1px solid #E0DDD0; }
.dmd2r-wrap .dmd2r-lang-item:last-child { border-bottom: none; }
.dmd2r-wrap .dmd2r-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  background: #ffffff;
  gap: 8px;
}
.dmd2r-wrap .dmd2r-lang-row:hover { background: #F7F5EE; }

/* Dialect toggle: <span role="button"> — theme skips spans */
.dmd2r-wrap .dmd2r-dialect-toggle {
  display: inline-block !important;
  font-size: 11.4px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #8B8975;
  cursor: pointer;
  user-select: none;
  padding: 3px 8px;
  border: 1px solid #C8C6B2;
  border-radius: 3px;
  background: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .12s, border-color .12s;
  line-height: 1.5;
}
.dmd2r-wrap .dmd2r-dialect-toggle:hover   { color: #ABA285; border-color: #ABA285; }
.dmd2r-wrap .dmd2r-dialect-toggle.is-open { color: #ABA285; border-color: #ABA285; background: #f0ede0; }

.dmd2r-wrap .dmd2r-dialects {
  display: none;
  background: #F7F5EE;
  border-top: 1px solid #E0DDD0;
  padding: 7px 11px 8px 32px;
  flex-direction: column;
  gap: 3px;
}
.dmd2r-wrap .dmd2r-dialects.is-open { display: flex; }

/* Weitere — very small, subdued */
.dmd2r-wrap .dmd2r-dialect-other-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 5px;
  margin-top: 3px;
  border-top: 1px dashed #E0DDD0;
}
.dmd2r-wrap .dmd2r-dialect-other-lbl {
  display: inline-block !important;
  font-size: 11.4px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #b4b09a;
  white-space: nowrap;
  flex-shrink: 0;
}
.dmd2r-wrap .dmd2r-dialect-other-inp {
  display: block !important;
  flex: 1;
  min-width: 0;
  padding: 3px 8px !important;
  font-size: 13.8px !important;
  font-family: 'proxima-nova','Proxima Nova',-apple-system,sans-serif !important;
  color: #4a4a49 !important;
  border: 1px solid #E0DDD0 !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  outline: none !important;
  width: 100% !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.dmd2r-wrap .dmd2r-dialect-other-inp:focus { border-color: #ABA285 !important; }

/* ── Demo slots ─────────────────────────────────────────────── */
.dmd2r-wrap .dmd2r-demo-slot { margin-bottom: 7px; }
.dmd2r-wrap .dmd2r-demo-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.dmd2r-wrap .dmd2r-demo-label-input { flex: 1; min-width: 130px; }

.dmd2r-wrap .dmd2r-file-wrap {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.dmd2r-wrap .dmd2r-file-native { display: none !important; }
.dmd2r-wrap .dmd2r-file-btn {
  display: inline-block !important;
  padding: 7px 13px !important;
  background: #1a1a14 !important;
  background-color: #1a1a14 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-radius: 3px !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background .15s;
}
.dmd2r-wrap .dmd2r-file-wrap:hover .dmd2r-file-btn { background: #ABA285 !important; }
.dmd2r-wrap .dmd2r-file-name {
  font-size: 13.8px !important;
  color: #ABA285;
  font-weight: 600;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Add demo span[role=button] */
.dmd2r-wrap .dmd2r-add-demo {
  display: inline-block !important;
  margin-top: 8px;
  font-size: 11.4px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #8B8975;
  cursor: pointer;
  user-select: none;
  padding: 3px 8px;
  border: 1px solid #C8C6B2;
  border-radius: 3px;
  background: #ffffff;
  transition: color .12s, border-color .12s;
}
.dmd2r-wrap .dmd2r-add-demo:hover { color: #ABA285; border-color: #ABA285; }

/* ── Billing PDF field ─────────────────────────────────────── */
.dmd2r-wrap .dmd2r-billing-field { display: none !important; margin-top: 12px; }
.dmd2r-wrap .dmd2r-billing-field.is-visible { display: block !important; }

/* ── Error ──────────────────────────────────────────────────── */
.dmd2r-wrap .dmd2r-error {
  display: none;
  background: #fee2e2;
  border: 1.5px solid #fca5a5;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15.6px !important;
  color: #991b1b;
  margin-bottom: 14px;
  line-height: 1.4;
}

.dmd2r-wrap .dmd2r-required-hint {
  display: block;
  font-size: 13.8px !important;
  color: #b4b09a;
  margin-bottom: 14px;
}

/* ── Submit: <div role="button"> bypasses ALL theme button CSS ── */
.dmd2r-wrap .dmd2r-submit {
  display: inline-block !important;
  padding: 12px 28px !important;
  background: #ABA285 !important;
  background-color: #ABA285 !important;
  color: #ffffff !important;
  font-family: 'proxima-nova','Proxima Nova',-apple-system,sans-serif !important;
  font-size: 13.2px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  border-radius: 4px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  user-select: none !important;
  line-height: 1 !important;
  transition: background .2s;
  text-decoration: none !important;
  margin: 0 !important;
}
.dmd2r-wrap .dmd2r-submit:hover { background: #6b6a50 !important; background-color: #6b6a50 !important; }

/* ── Success ─────────────────────────────────────────────────── */
.dmd2r-wrap .dmd2r-success { display: none; }
.dmd2r-wrap .dmd2r-success-inner {
  text-align: center;
  padding: 48px 28px;
  background: #ffffff;
  border: 1.5px solid #E0DDD0;
  border-radius: 10px;
}
.dmd2r-wrap .dmd2r-success-check {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #ABA285;
  color: #fff;
  font-size: 22px;
  margin: 0 auto 14px;
}
.dmd2r-wrap .dmd2r-success-inner h3 {
  font-size: 24px !important;
  font-weight: 800;
  color: #1a1a14;
  margin: 0 0 8px;
}
.dmd2r-wrap .dmd2r-success-inner p { color: #8B8975; margin: 0; font-size: 18px !important; }
