/* ——— Quote form success ——— */
.quote-success {
  z-index: 330;
}

.quote-success__panel {
  width: min(420px, 100%);
  max-height: none;
  text-align: center;
}

.quote-success__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem 1.5rem 1.65rem;
}

.quote-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--yellow) 16%, #fff);
  color: #3da554;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}

.quote-success__body h2 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
}

.quote-success__body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #2a2a2a;
}

.quote-success__note {
  font-size: 0.88rem !important;
  color: #666 !important;
}

.quote-success__actions {
  width: 100%;
  margin-top: 0.35rem;
}

.quote-success__btn {
  width: 100%;
  margin: 0;
}

body.quote-success-open {
  overflow: hidden;
}

html.js .quote-success.is-open .quote-success__panel {
  animation: quoteSuccessIn 0.34s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes quoteSuccessIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .quote-success.is-open .quote-success__panel {
    animation: none;
  }
}
