.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.quote-modal.hidden {
  display: none;
}

.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgb(15 23 42 / 0.7);
  backdrop-filter: blur(4px);
}

.quote-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgb(15 23 42 / 0.25);
  padding: 1.5rem;
}

.quote-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: #334155;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.quote-modal-close:hover {
  background-color: #e2e8f0;
}

.tally-embed {
  padding: 1.6em;
}

.quote-modal-iframe,
.tally-embed-iframe {
  width: 100%;
  min-height: 420px;
  border: none;
}

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

.quote-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.quote-button-arrow {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.quote-button:hover .quote-button-arrow,
.group:hover .quote-button .quote-button-arrow {
  transform: translate(3px, -3px);
}

@media (prefers-reduced-motion: reduce) {
  .quote-button-arrow {
    transition: none;
  }

  .quote-button:hover .quote-button-arrow,
  .group:hover .quote-button .quote-button-arrow {
    transform: none;
  }
}
