/* HM ServiceCard Formular 0.1.6 – styles strictly scoped to the shortcode. */
.hm-sc {
  --hm-sc-green: #005e52;
  --hm-sc-hover: #00a075;
  --hm-sc-orange: #e56b20;
  --hm-sc-ink: #222222;
  --hm-sc-muted: #626c67;
  --hm-sc-border: #d8e4df;
  --hm-sc-pale: #edf6f2;
  --hm-sc-focus: #d5eee5;
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  color: var(--hm-sc-ink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  container-type: inline-size;
}
.hm-sc, .hm-sc *, .hm-sc *::before, .hm-sc *::after { box-sizing: border-box; }
.hm-sc [hidden] { display: none !important; }
.hm-sc button, .hm-sc input, .hm-sc select {
  font-family: inherit;
  font-size: inherit;
}
.hm-sc button { cursor: pointer; }
.hm-sc .hm-sc-shell {
  width: 100%;
  max-width: none;
  min-width: 0;
  background: #fff;
  border: 1px solid #e0e8e4;
  border-radius: 20px;
  box-shadow: 0 12px 38px rgba(0,58,45,.075);
  overflow: visible;
}
.hm-sc .hm-sc-brand {
  text-align: center;
  padding: 18px 18px 16px;
  border-bottom: 1px solid #edf0ef;
}
.hm-sc .hm-sc-logo {
  display: block;
  width: 136px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 10px;
  border-radius: 7px;
}
.hm-sc .hm-sc-brand-title {
  margin: 0 0 4px;
  color: var(--hm-sc-green);
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}
.hm-sc .hm-sc-brand p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--hm-sc-ink); }
.hm-sc .hm-sc-main { width: 100%; min-width: 0; padding: 19px 23px 25px; }
.hm-sc .hm-sc-progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; color: var(--hm-sc-ink); font-size: 1rem;
}
.hm-sc .hm-sc-progress-head strong { font-size: 1rem; color: var(--hm-sc-ink); }
.hm-sc .hm-sc-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 8px 0 20px; }
.hm-sc .hm-sc-progress span { display: block; height: 5px; background: #e1e9e5; border-radius: 8px; }
.hm-sc .hm-sc-progress span.hm-sc-progress-active { background: var(--hm-sc-green); }
.hm-sc h3 {
  margin: 0 0 15px;
  color: var(--hm-sc-green);
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
}
.hm-sc .hm-sc-intro {
  border: 1px solid #cfe3d9; background: #f0f8f4;
  border-radius: 12px; padding: 12px 14px; margin: 0 0 18px;
}
.hm-sc .hm-sc-intro strong { display: block; font-size: 1rem; color: var(--hm-sc-green); margin-bottom: 4px; }
.hm-sc .hm-sc-intro p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--hm-sc-ink); }
.hm-sc .hm-sc-field { margin: 0 0 15px; position: relative; }
.hm-sc .hm-sc-field > label, .hm-sc .hm-sc-field legend {
  display: block; margin: 0 0 7px; padding: 0;
  color: var(--hm-sc-ink); font-size: 1rem; font-weight: 600; line-height: 1.5;
}
.hm-sc .hm-sc-fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 16px; }
.hm-sc .hm-sc-required { color: #b54429; }
.hm-sc .hm-sc-input, .hm-sc .hm-sc-select {
  display: block; width: 100%; max-width: 100%;
  border: 1px solid #cbd9d2; border-radius: 10px;
  padding: 10px 13px; min-height: 45px; height: auto;
  background: #fff; color: var(--hm-sc-ink);
  font-size: 1rem; font-weight: 400; box-shadow: none;
}
.hm-sc .hm-sc-input::placeholder { color: #81928a; opacity: 1; }
.hm-sc .hm-sc-input:focus, .hm-sc .hm-sc-select:focus {
  outline: none; border-color: var(--hm-sc-green);
  box-shadow: 0 0 0 3px var(--hm-sc-focus);
}
.hm-sc .hm-sc-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hm-sc .hm-sc-segment button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 0; min-height: 43px; padding: 8px 10px;
  border: 1px solid var(--hm-sc-border);
  border-radius: 2rem; background: #fff; color: var(--hm-sc-ink);
  font-size: 1rem; font-weight: 700; line-height: 1.3;
  transition: background .15s, border .15s, color .15s;
}
.hm-sc .hm-sc-segment button[aria-pressed="true"] {
  background: var(--hm-sc-green); border-color: var(--hm-sc-green); color: #fff;
}
.hm-sc .hm-sc-segment button:hover {
  background: var(--hm-sc-hover); border-color: var(--hm-sc-hover); color: #fff;
}
.hm-sc .hm-sc-animal-choice { min-height: 66px !important; }
.hm-sc .hm-sc-animal-choice img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; flex: none; }
.hm-sc .hm-sc-animal-choice span { font-size: 1rem; font-weight: 700; }
.hm-sc button:focus-visible, .hm-sc input:focus-visible, .hm-sc select:focus-visible {
  outline: 3px solid #a0ddd0; outline-offset: 2px;
}
.hm-sc .hm-sc-mix-switch {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 1rem; margin: 1px 0 12px;
  cursor: pointer; color: var(--hm-sc-green); font-weight: 600;
}
.hm-sc .hm-sc-mix-switch input, .hm-sc .hm-sc-channel input,
.hm-sc .hm-sc-privacy input, .hm-sc .hm-sc-radio-tile input {
  accent-color: var(--hm-sc-green); width: 18px; height: 18px; margin: 0; flex: none;
}
.hm-sc .hm-sc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.hm-sc .hm-sc-radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hm-sc .hm-sc-radio-tile {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--hm-sc-border); border-radius: 10px;
  padding: 10px 11px; min-height: 44px; cursor: pointer;
  font-weight: 600; font-size: 1rem;
}
.hm-sc .hm-sc-radio-tile:has(input:checked) { background: var(--hm-sc-pale); border-color: var(--hm-sc-green); }
/* Compact rows, with space between the input circle, copy and recommendation pill. */
.hm-sc .hm-sc-fieldset .hm-sc-channel {
  display: grid; grid-template-columns: 24px minmax(0,1fr); column-gap: 18px;
  align-items: center; min-height: 29px; padding: 2px 0;
  margin: 0 0 7px; border: 0; background: transparent; cursor: pointer;
}
.hm-sc .hm-sc-channel-text {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  gap: 5px 17px; font-size: 1rem; line-height: 1.45;
  font-weight: 600; color: var(--hm-sc-ink);
}
.hm-sc .hm-sc-channel input { display: block; align-self: center; justify-self: start; margin: 0; }
.hm-sc .hm-sc-pill {
  display: inline-block; font-size: 1rem; line-height: 1;
  padding: 6px 10px; background: var(--hm-sc-orange); color: #fff;
  font-weight: 700; border-radius: 100px; white-space: nowrap;
}
.hm-sc .hm-sc-optin-note {
  font-size: 1rem; line-height: 1.5; color: var(--hm-sc-ink); margin: 7px 0 11px;
}
.hm-sc .hm-sc-whatsapp-note {
  border-left: 3px solid var(--hm-sc-green); background: #f1f8f4;
  padding: 10px 12px; margin: 0 0 14px;
  font-size: 1rem; border-radius: 0 9px 9px 0;
}
.hm-sc .hm-sc-whatsapp-note strong { display: block; color: var(--hm-sc-green); margin: 0 0 4px; }
.hm-sc .hm-sc-whatsapp-note p { margin: 0; font-size: 1rem; color: var(--hm-sc-ink); }
.hm-sc .hm-sc-privacy {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 1rem; line-height: 1.5;
  margin: 12px 0 15px; color: var(--hm-sc-ink); cursor: pointer;
}
.hm-sc .hm-sc-privacy input { margin-top: 4px; }
.hm-sc a { color: var(--hm-sc-green); text-decoration: underline; text-underline-offset: 2px; }
/* Explicitly beat Elementor's generic button color in editor and frontend. */
.hm-sc .hm-sc-cta, .hm-sc .hm-sc-cta:focus {
  display: block; width: 100%; min-height: 48px;
  padding: 12px 15px;
  border: 0 !important; border-radius: 2rem !important;
  background: #005e52 !important; color: #fff !important;
  font-size: 1rem; font-weight: 700; line-height: 1.4;
  transition: background .15s;
}
.hm-sc .hm-sc-cta:hover, .hm-sc .hm-sc-cta:focus:hover {
  background: #00a075 !important; color: #fff !important;
}
.hm-sc .hm-sc-back {
  display: block; margin: 11px auto 0; padding: 7px 15px;
  background: transparent; border: 0; border-radius: 8px;
  color: var(--hm-sc-green); font-size: 1rem; font-weight: 600; cursor: pointer;
}
.hm-sc .hm-sc-back:hover { color: var(--hm-sc-hover); }
.hm-sc .hm-sc-feedback {
  margin: 0 0 14px; padding: 10px 12px;
  border: 1px solid #e8cbbd; border-radius: 9px;
  background: #fff4ee; color: #853b24; font-size: 1rem;
}
.hm-sc .hm-sc-insurance-feedback { margin: 9px 0 2px; }
.hm-sc .hm-sc-feedback.hm-sc-feedback-success { background: #f0f8f4; border-color: #c1dfd0; color: #215d47; }
.hm-sc .hm-sc-breed-list {
  position: absolute; z-index: 1000; left: 0; right: 0; top: 100%;
  max-height: 232px; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid #bacfc6;
  box-shadow: 0 8px 22px rgba(0,46,34,.18);
  border-radius: 0 0 10px 10px; scrollbar-width: auto;
}
.hm-sc .hm-sc-breed-option {
  display: block; width: 100%; padding: 11px 13px;
  border: 0; border-bottom: 1px solid #edf3ef;
  background: #fff; text-align: left;
  font-size: 1rem; color: var(--hm-sc-ink);
}
.hm-sc .hm-sc-breed-option:hover, .hm-sc .hm-sc-breed-option[aria-selected="true"] { background: #eaf6f0; }
.hm-sc .hm-sc-breed-wrap small { display: block; color: var(--hm-sc-ink); font-size: 1rem; margin-top: 5px; }
/* Responsive decisions based on the Elementor container width, not only viewport. */
@container (max-width: 520px) {
  .hm-sc .hm-sc-shell { border-radius: 16px; }
  .hm-sc .hm-sc-brand { padding: 14px 9px 13px; }
  .hm-sc .hm-sc-logo { width: 128px; }
  .hm-sc .hm-sc-main { padding: 17px 14px 20px; }
  .hm-sc .hm-sc-two { grid-template-columns: 1fr; gap: 0; }
  .hm-sc .hm-sc-animal-choice { gap: 8px; min-height: 60px !important; }
  .hm-sc .hm-sc-animal-choice img { width: 38px; height: 38px; }
  .hm-sc .hm-sc-channel { column-gap: 14px; }
}
/* Viewport fallback for browsers lacking container query support. */
@supports not (container-type: inline-size) {
  @media (max-width: 520px) {
    .hm-sc .hm-sc-two { grid-template-columns: 1fr; gap: 0; }
    .hm-sc .hm-sc-main { padding: 17px 14px 20px; }
  }
}


/* ServiceCard additions matching the confirmed HM form style. */
.hm-sc .hm-sc-check{display:flex;align-items:flex-start;gap:18px;font-size:1rem;color:#222;font-weight:400;line-height:1.5;cursor:pointer;padding:3px 0;margin-bottom:6px}
.hm-sc .hm-sc-check input{accent-color:#005e52;width:18px;height:18px;flex:0 0 18px;margin:3px 0 0}
.hm-sc .hm-sc-choices{display:flex;flex-wrap:wrap;align-items:center;column-gap:20px;row-gap:4px}
.hm-sc .hm-sc-field .hm-sc-subhead{display:block;font-size:1rem;font-weight:700;color:#005e52;margin-top:4px}
.hm-sc .hm-sc-honey{position:absolute!important;left:-9999px!important;top:auto;width:1px;height:1px;overflow:hidden}
.hm-sc .hm-sc-cta:disabled,.hm-sc .hm-sc-cta:disabled:hover{background:#005e52!important;opacity:.6;cursor:wait}
.hm-sc .hm-sc-breed-list{max-height:280px}
.hm-sc .hm-sc-address{align-items:start}

/* 0.1.1: Nummernfeld nur bei Chip oder Tätowierung, optisch wie HM-Eingabefelder. */
.hm-sc .hm-sc-register-number { margin: 12px 0 0; }

/* 0.1.6: in-form confirmation instead of disabled form or popup. */
.hm-sc .hm-sc-submission-status {
  margin: 0 0 12px; padding: 10px 14px; border: 1px solid #d2e6dc;
  border-radius: 10px; background: #f1f8f4; color: #005e52;
  font-size: 1rem; line-height: 1.5;
}
.hm-sc .hm-sc-confirmation {
  padding: 25px 12px 36px;
  text-align: center;
}
.hm-sc .hm-sc-confirmation-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: #edf6f2; border: 2px solid #005e52;
  color: #005e52; font-size: 1.8rem; font-weight: 700;
  margin-bottom: 18px;
}
.hm-sc .hm-sc-confirmation h3 {
  font-family: "Bricolage Grotesque", sans-serif !important;
  color: #00A075 !important; text-align: center; margin: 0 auto 15px;
  max-width: 660px; font-size: 1.4rem !important; line-height: 1.4 !important;
  font-weight: 700;
}
.hm-sc .hm-sc-confirmation h3:focus { outline: none; }
.hm-sc .hm-sc-confirmation p {
  font-family: "Bricolage Grotesque", sans-serif !important;
  max-width: 660px; margin: 0 auto 13px;
  color: #222222 !important; font-size: 1rem !important; font-weight: 400;
  line-height: 1.6; overflow-wrap: break-word;
}
@container (max-width: 520px) {
  .hm-sc .hm-sc-confirmation { padding: 18px 5px 26px; }
  .hm-sc .hm-sc-confirmation h3 { font-size: 1.4rem !important; }
}

.hm-sc .hm-sc-pending {
  min-height: 175px; padding: 36px 14px 40px;
  text-align: center;
}
.hm-sc .hm-sc-pending h3 {
  margin: 0 auto 12px; max-width: 690px;
  font-size: 1.4rem; color: #005e52; text-align: center;
}
.hm-sc .hm-sc-pending p {
  margin: 0 auto; max-width: 690px;
  color: #222222; font-size: 1rem; line-height: 1.6;
}


/* 2026-10: HM Tierfreunde 1.0.6 reference – accessible, isolated success dialog. */
.hm-sc-result-popup, .hm-sc-result-popup *, .hm-sc-result-popup *::before, .hm-sc-result-popup *::after { box-sizing:border-box; }
.hm-sc-result-popup {
  position:fixed!important; inset:0!important; z-index:2147483000!important;
  display:flex!important; align-items:center!important; justify-content:center!important;
  padding:20px!important; background:rgba(13,40,34,.55)!important;
  font-family:'Bricolage Grotesque',Arial,sans-serif!important; color:#222!important;
  font-size:16px!important; line-height:1.5!important; isolation:isolate;
}
.hm-sc-result-popup-card {
  width:min(100%,490px)!important; min-width:0!important; max-height:min(88vh,740px);
  overflow-y:auto; padding:clamp(24px,4vw,38px)!important;
  background:#fff!important; border:1px solid #d8e7dd!important;
  border-radius:23px!important; box-shadow:0 22px 70px rgba(0,34,24,.25)!important;
  text-align:center!important; outline:none!important;
}
.hm-sc-result-popup-check {
  display:flex!important; align-items:center!important; justify-content:center!important;
  width:80px!important; height:80px!important; margin:0 auto 22px!important;
  color:#009d76!important; border-radius:50%!important; background:#e3f5ed!important;
}
.hm-sc-result-popup-card h3 {
  font-family:inherit!important; color:#005e52!important; font-size:clamp(23px,4vw,28px)!important;
  line-height:1.24!important; font-weight:700!important; margin:0 0 18px!important;
  text-transform:none!important; letter-spacing:normal!important;
}
.hm-sc-result-popup-card p {
  font-family:inherit!important; font-size:16px!important; line-height:1.56!important;
  font-weight:400!important; color:#33473c!important; margin:0 0 14px!important;
  text-transform:none!important; letter-spacing:normal!important; overflow-wrap:anywhere;
}
.hm-sc-result-popup-close {
  display:block!important; width:100%!important; min-height:51px!important;
  margin:25px 0 0!important; padding:12px 20px!important;
  border:1px solid #005e52!important; border-radius:999px!important;
  background:#005e52!important; color:#fff!important;
  font-family:inherit!important; font-size:16px!important; font-weight:700!important;
  line-height:1.5!important; cursor:pointer!important; text-transform:none!important;
}
.hm-sc-result-popup-close:hover { background:#00a075!important; border-color:#00a075!important; }
.hm-sc-result-popup-close:focus-visible { outline:3px solid #8dd1bd!important; outline-offset:3px!important; }
@media (max-width:580px) {
  .hm-sc-result-popup {padding:13px!important;}
  .hm-sc-result-popup-card {border-radius:18px!important;}
}
