/* ============================================================
   HEILTROPFEN CONTACT FORM 1.0.3
   Brand-aligned front office design
   ============================================================ */

.htcf-wrap {
  width: 100%;
  font-family: Montserrat, Arial, sans-serif;
  color: #1c2e5b;
}

.htcf-card {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 32px 32px;
  background: #ffffff;
  border: 1px solid #dce4da;
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(28, 46, 91, 0.055);
  box-sizing: border-box;
  overflow: hidden;
}

.htcf-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #3e7f3d;
}

.htcf-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf1ec;
}

.htcf-head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: #f2f7f1;
  border: 1px solid #d8e6d5;
  color: #3e7f3d;
}

.htcf-head-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.htcf-head-copy {
  min-width: 0;
}

.htcf-kicker {
  display: block;
  margin: 0 0 3px;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #7b8879;
}

.htcf-title {
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
  color: #17223f;
}

.htcf-alert {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
}

.htcf-alert-success {
  background: #f2f8f0;
  border-color: #bdd8b7;
  color: #2f6f2f;
}

.htcf-alert-error {
  background: #fff6f6;
  border-color: #e8c5c5;
  color: #8d3e3e;
}

.htcf-alert-email {
  display: inline-block;
  margin-left: 5px;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.htcf-form {
  display: grid;
  gap: 18px;
}

.htcf-grid {
  display: grid;
  gap: 18px;
}

.htcf-grid-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.htcf-field {
  min-width: 0;
}

.htcf-field > label,
.htcf-file-content > label {
  display: block;
  margin: 0 0 7px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  color: #1c2e5b;
}

.htcf-required {
  color: #3e7f3d;
}

.htcf-optional {
  margin-left: 5px;
  color: #8d978b;
  font-size: 10px;
  font-weight: 400;
}

.htcf-field input[type="text"],
.htcf-field input[type="email"],
.htcf-field select,
.htcf-field textarea {
  width: 100%;
  margin: 0;
  border: 1px solid #dce4da;
  border-radius: 8px;
  background: #ffffff;
  color: #27324a;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  box-sizing: border-box;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.htcf-field input[type="text"],
.htcf-field input[type="email"],
.htcf-field select {
  height: 48px;
  padding: 0 14px;
}

.htcf-field textarea {
  min-height: 168px;
  padding: 13px 14px;
  resize: vertical;
}

.htcf-field input:hover,
.htcf-field select:hover,
.htcf-field textarea:hover {
  border-color: #c8d5c5;
}

.htcf-field input:focus,
.htcf-field select:focus,
.htcf-field textarea:focus {
  border-color: #3e7f3d;
  box-shadow: 0 0 0 3px rgba(62, 127, 61, 0.09);
  background: #fff;
}

.htcf-select-wrap {
  position: relative;
}

.htcf-field select {
  cursor: pointer;
}

.htcf-file-box {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 15px;
  background: #f8fbf7;
  border: 1px solid #dce4da;
  border-radius: 8px;
  box-sizing: border-box;
}

.htcf-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid #dce4da;
  color: #3e7f3d;
}

.htcf-file-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.htcf-file-content {
  flex: 1 1 auto;
  min-width: 0;
}

.htcf-file-content input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 6px;
  padding: 0;
  color: #5f685d;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
}

.htcf-file-content input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  border: 1px solid #cbd8c8;
  border-radius: 6px;
  background: #ffffff;
  color: #1c2e5b;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.htcf-file-content small {
  display: block;
  color: #879184;
  font-size: 10px;
  line-height: 1.4;
}

.htcf-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 13px 14px;
  background: #fbfcfb;
  border: 1px solid #edf1ec;
  border-radius: 8px;
  cursor: pointer;
  color: #657064;
  font-size: 10.5px;
  line-height: 1.55;
  box-sizing: border-box;
}

.htcf-consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 1px 0 0;
  accent-color: #3e7f3d;
}

.htcf-consent a {
  color: #3e7f3d;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.htcf-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 2px;
}

.htcf-required-note {
  color: #919a8f;
  font-size: 10px;
  line-height: 1.4;
}

.htcf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 170px;
  min-height: 50px;
  padding: 12px 23px;
  border: 1px solid #3e7f3d;
  border-radius: 8px;
  background: #1c2e5b;
  color: #ffffff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .15px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.htcf-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.htcf-submit:hover,
.htcf-submit:focus {
  background: #3e7f3d;
  border-color: #3e7f3d;
  color: #ffffff;
}

.htcf-submit:active {
  transform: translateY(1px);
}

.htcf-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 991px) {
  .htcf-card {
    padding: 26px 24px 28px;
  }
}

@media (max-width: 767px) {
  .htcf-card {
    padding: 22px 16px 20px;
    border-radius: 8px;
  }

  .htcf-head {
    margin-bottom: 20px;
    padding-bottom: 17px;
  }

  .htcf-head-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .htcf-title {
    font-size: 20px;
  }

  .htcf-grid-2 {
    grid-template-columns: 1fr;
  }

  .htcf-form,
  .htcf-grid {
    gap: 15px;
  }

  .htcf-file-box {
    padding: 13px;
  }

  .htcf-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .htcf-submit {
    width: 100%;
  }
}
