/* HDZ | Zusätzliche Formularoptik – bestehende Theme-Styles bleiben erhalten.
 * Allgemeine Änderungen sind bewusst klein; die Terminanfrage ist gekapselt.
 */

/* Gemeinsame Feinheiten für alle drei Contact-Form-7-Formulare */
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-tel,
.wpcf7-form .wpcf7-select,
.wpcf7-form .wpcf7-date,
.wpcf7-form .wpcf7-textarea {
  box-sizing: border-box;
  max-width: 100%;
  background: #fff;
  border-color: #67ad90;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-tel:focus,
.wpcf7-form .wpcf7-select:focus,
.wpcf7-form .wpcf7-date:focus,
.wpcf7-form .wpcf7-textarea:focus {
  outline: 0;
  border-color: #318e6a;
  box-shadow: 0 0 0 3px rgba(77,167,132,.15);
}
.wpcf7-form .wpcf7-submit {
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 600;
  line-height: 1.35;
}
.wpcf7-form .wpcf7-response-output {
  border-radius: 8px;
}

/* Nur die Terminanfrage: keine Auswirkungen auf die Feldlogik anderer Formulare */
.hdz-terminanfrage {
  --hdz-green: #4da784;
  --hdz-dark-green: #28785c;
  --hdz-line: #d5e6dd;
  --hdz-text: #4e4e4e;
  max-width: 900px;
  color: var(--hdz-text);
}
.hdz-terminanfrage *,
.hdz-terminanfrage *::before,
.hdz-terminanfrage *::after { box-sizing: border-box; }
.hdz-terminanfrage .hdz-form-intro { margin: 0 0 26px; }
.hdz-terminanfrage .hdz-form-intro p { margin: 0 0 8px; }
.hdz-terminanfrage .hdz-small-note,
.hdz-terminanfrage .hdz-field-help {
  display: block;
  color: #697b73;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 7px;
}
.hdz-terminanfrage .hdz-form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: 20px;
  row-gap: 6px;
  margin-bottom: 8px;
}
.hdz-terminanfrage .hdz-form-grid p { margin: 0 0 14px; min-width: 0; }
.hdz-terminanfrage .hdz-form-grid label,
.hdz-terminanfrage .hdz-upload-fields label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.6;
}
.hdz-terminanfrage .hdz-form-grid .wpcf7-form-control-wrap,
.hdz-terminanfrage .hdz-upload-fields .wpcf7-form-control-wrap {
  margin: 6px 0 0;
}
.hdz-terminanfrage .wpcf7-text,
.hdz-terminanfrage .wpcf7-email,
.hdz-terminanfrage .wpcf7-tel {
  width: 100%;
  padding: 13px 15px;
  min-height: 52px;
  font-size: 16px;
  font-weight: 400;
}
.hdz-terminanfrage .hdz-choice-block {
  min-width: 0;
  padding: 0;
  margin: 22px 0 25px;
  border: 0;
}
.hdz-terminanfrage .hdz-choice-block legend {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 12px;
  color: #333;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.55;
}
.hdz-terminanfrage .hdz-choice-list .wpcf7-form-control-wrap { margin-bottom: 0; }
.hdz-terminanfrage .hdz-choice-list .wpcf7-radio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.hdz-terminanfrage .hdz-choice-list--two .wpcf7-radio {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.hdz-terminanfrage .hdz-choice-list .wpcf7-list-item { margin: 0; min-width: 0; }
.hdz-terminanfrage .hdz-choice-list .wpcf7-list-item label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  height: 100%;
  min-height: 53px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--hdz-line);
  border-radius: 10px;
  padding: 14px 15px;
  line-height: 1.45;
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.hdz-terminanfrage .hdz-choice-list .wpcf7-list-item label:hover { border-color: var(--hdz-green); }
.hdz-terminanfrage .hdz-choice-list .wpcf7-list-item label:focus-within {
  outline: 2px solid var(--hdz-dark-green);
  outline-offset: 2px;
}
.hdz-terminanfrage .hdz-choice-list .wpcf7-list-item label:has(input:checked) {
  border-color: var(--hdz-green);
  background: #f0faf5;
  box-shadow: 0 0 0 1px var(--hdz-green) inset;
}
.hdz-terminanfrage .hdz-choice-list input[type="radio"] {
  flex: 0 0 auto;
  accent-color: var(--hdz-dark-green);
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}
.hdz-terminanfrage .hdz-form-panel,
.hdz-terminanfrage .hdz-notice {
  background: #fff;
  border: 1px solid var(--hdz-line);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 16px 0 24px;
}
.hdz-terminanfrage .hdz-notice { border-left: 4px solid var(--hdz-green); }
.hdz-terminanfrage .hdz-form-panel h3,
.hdz-terminanfrage .hdz-notice h3 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--hdz-dark-green);
  margin: 0 0 20px;
}
.hdz-terminanfrage .hdz-notice p { margin: 0 0 15px; }
.hdz-terminanfrage .hdz-notice p:last-child { margin-bottom: 0; }
.hdz-terminanfrage .hdz-eyebrow {
  font-size: 13px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: var(--hdz-dark-green);
}
.hdz-terminanfrage .hdz-notice ul {
  margin: 0 0 22px;
  padding: 0 0 0 22px;
}
.hdz-terminanfrage .hdz-notice li { margin-bottom: 12px; padding-left: 3px; }
.hdz-terminanfrage .hdz-notice li::marker { color: var(--hdz-green); }
.hdz-terminanfrage .hdz-priority-note,
.hdz-terminanfrage .hdz-branch-note {
  border-left: 3px solid var(--hdz-green);
  padding: 14px 17px;
  border-radius: 0 8px 8px 0;
  background: #f1faf5;
  font-size: 15px;
  line-height: 1.6;
  margin: 15px 0 19px;
}
.hdz-terminanfrage .hdz-branch-note--positive { border-color: #2b9468; }
.hdz-terminanfrage .hdz-confirm-block,
.hdz-terminanfrage .hdz-privacy-block {
  border: 1px solid var(--hdz-line);
  border-radius: 12px;
  background: #f7fbf9;
  padding: 17px 19px;
  margin: 19px 0 22px;
}
.hdz-terminanfrage .hdz-confirm-block > strong { display:block; margin-bottom: 10px; }
.hdz-terminanfrage .hdz-confirm-block .wpcf7-form-control-wrap,
.hdz-terminanfrage .hdz-privacy-block .wpcf7-form-control-wrap { margin: 0; }
.hdz-terminanfrage .hdz-confirm-block .wpcf7-list-item,
.hdz-terminanfrage .hdz-privacy-block .wpcf7-list-item { margin: 0; }
.hdz-terminanfrage .hdz-confirm-block .wpcf7-list-item label,
.hdz-terminanfrage .hdz-privacy-block .wpcf7-list-item label,
.hdz-terminanfrage .hdz-privacy-block .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  cursor: pointer;
}
.hdz-terminanfrage input[type="checkbox"] { accent-color: var(--hdz-dark-green); flex: 0 0 auto; margin-top: 5px; }
.hdz-terminanfrage .hdz-upload-fields p { margin: 0 0 20px; }
.hdz-terminanfrage .hdz-upload-fields p:last-child { margin-bottom: 0; }
.hdz-terminanfrage .wpcf7-file {
  width: 100%;
  max-width: 100%;
  background: #fbfdfc;
  border: 1px dashed #88bca7;
  border-radius: 9px;
  padding: 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.hdz-terminanfrage .wpcf7-file::file-selector-button {
  background: #e6f5ee;
  color: var(--hdz-dark-green);
  border: 1px solid #b5ddc9;
  border-radius: 7px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
}
.hdz-terminanfrage .wpcf7-file:focus-visible { outline: 2px solid var(--hdz-dark-green); outline-offset: 2px; }
.hdz-terminanfrage .hdz-privacy-block a { color: var(--hdz-dark-green); font-weight: 600; text-decoration: underline; }
.hdz-terminanfrage .hdz-form-footer { margin-top: 12px; }
.hdz-terminanfrage .hdz-form-footer .wpcf7-submit { min-width: 225px; }
.hdz-terminanfrage .wpcf7-not-valid-tip { font-size: 13px !important; }

@media (max-width: 700px) {
  .hdz-terminanfrage .hdz-form-grid,
  .hdz-terminanfrage .hdz-choice-list--two .wpcf7-radio { grid-template-columns: 1fr; }
  .hdz-terminanfrage .hdz-form-panel,
  .hdz-terminanfrage .hdz-notice { padding: 19px 17px; }
  .hdz-terminanfrage .hdz-form-panel h3,
  .hdz-terminanfrage .hdz-notice h3 { font-size: 21px; }
  .hdz-terminanfrage .hdz-form-footer .wpcf7-submit { width: 100%; min-width: 0; }
}
