/* HV Success modal — Figma Block 18 / danke */

.hv-success {
  --hv-s-navy: #0a2d62;
  --hv-s-muted: #9fb4d2;
  --hv-s-text: #f4f5f6;
  --hv-s-line: rgba(229, 232, 238, 0.35);
  --hv-s-wa: #25d366;
  --hv-s-wa-text: #04331a;
  position: fixed;
  inset: 0;
  z-index: 100050;
  pointer-events: none;
  font-family: Inter, system-ui, sans-serif;
}

.hv-success:not([hidden]) {
  pointer-events: auto;
}

.hv-success__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 16, 40, 0.72);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.hv-success.is-open .hv-success__scrim {
  opacity: 1;
}

.hv-success__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 16px));
  width: min(1290px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--hv-s-navy);
  color: #fff;
  padding: 64px 80px;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-sizing: border-box;
}

.hv-success.is-open .hv-success__panel {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.hv-success__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hv-success__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hv-success__head {
  padding: 10px;
  margin-bottom: 0;
}

.hv-success__title {
  margin: 0 0 18px;
  font-family: Archivo, Inter, sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: #fff;
}

.hv-success__lead {
  margin: 0;
  max-width: 574px;
  font-size: 16px;
  line-height: 25.6px;
  font-weight: 400;
  color: #fff;
}

.hv-success__lead strong {
  font-weight: 700;
}

.hv-success__process {
  padding: 44px 0;
}

.hv-success__h3 {
  margin: 0 0 17px;
  font-family: Archivo, Inter, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.52px;
  color: #fff;
}

.hv-success__h3--urgent {
  font-size: 26px;
  line-height: 31.2px;
}

.hv-success__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hv-success__step {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--hv-s-line);
  border-bottom: 1px solid var(--hv-s-line);
  margin-top: -1px;
}

.hv-success__when {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 19.5px;
  color: var(--hv-s-muted);
  white-space: pre-line;
}

.hv-success__step-body {
  color: var(--hv-s-text);
  min-width: 0;
}

.hv-success__step-body strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 5px;
}

.hv-success__step-body p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
}

.hv-success__urgent {
  padding-top: 12px;
}

.hv-success__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 17px 0 12px;
}

.hv-success__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 220px;
  height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.27;
  box-sizing: border-box;
  transition: transform 0.1s ease, filter 0.15s ease;
}

.hv-success__btn img {
  width: 19px;
  height: 19px;
  display: block;
  flex: 0 0 auto;
}

.hv-success__btn--phone {
  background: #fff;
  color: var(--hv-s-navy);
}

.hv-success__btn--wa {
  background: var(--hv-s-wa);
  color: var(--hv-s-wa-text);
}

.hv-success__btn:hover {
  filter: brightness(0.97);
}

.hv-success__btn:active {
  transform: translateY(1px);
}

.hv-success__hours {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--hv-s-muted);
}

html.hv-success-open,
html.hv-success-open body {
  overflow: hidden;
}

@media (max-width: 900px) {
  .hv-success__panel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 40px 20px 28px;
    top: auto;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    border-radius: 4px 4px 0 0;
  }

  .hv-success.is-open .hv-success__panel {
    transform: translateX(-50%) translateY(0);
  }

  .hv-success__step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hv-success__btn {
    flex: 1 1 100%;
    min-width: 0;
  }

  .hv-success__title {
    letter-spacing: -0.8px;
  }
}
