.quote-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.quote-popup.is-open {
  display: flex;
}

.quote-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 11, 18, 0.76);
  backdrop-filter: blur(8px);
}

.quote-popup__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 18px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fff5f6 0%, #ffe6e9 52%, #ffd8de 100%);
  border: 1px solid rgba(188, 24, 35, 0.18);
  box-shadow: 0 24px 80px rgba(188, 24, 35, 0.24);
  color: #351016;
}

.quote-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(188, 24, 35, 0.12);
  color: #bc1823;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.quote-popup__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(188, 24, 35, 0.1);
  border: 1px solid rgba(188, 24, 35, 0.24);
  color: #bc1823;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quote-popup__title {
  margin: 12px 0 6px;
  color: #351016;
  font-size: 28px;
  line-height: 1.15;
}

.quote-popup__text {
  margin: 0 0 16px;
  color: rgba(53, 16, 22, 0.72);
}

.quote-popup__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.quote-popup__field {
  display: grid;
  gap: 5px;
}

.quote-popup__field label {
  color: #63131b;
  font-size: 14px;
  font-weight: 700;
}

.quote-popup__field input,
.quote-popup__field textarea {
  width: 100%;
  border: 1px solid rgba(188, 24, 35, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: #351016;
  padding: 10px 13px;
  outline: 0;
}

.quote-popup__field textarea {
  min-height: 86px;
  resize: vertical;
}

.quote-popup__field--full,
.quote-popup__submit {
  grid-column: 1 / -1;
}

.quote-popup__field input::placeholder,
.quote-popup__field textarea::placeholder {
  color: rgba(99, 19, 27, 0.46);
}

.quote-popup__field input:focus,
.quote-popup__field textarea:focus {
  border-color: #bc1823;
  box-shadow: 0 0 0 3px rgba(188, 24, 35, 0.16);
}

.quote-popup__submit {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #bd1724 0%, #ff307c 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(188, 24, 35, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quote-popup__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(188, 24, 35, 0.42);
}

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

@media (max-width: 575px) {
  .quote-popup {
    padding: 14px;
  }

  .quote-popup__dialog {
    padding: 24px 18px 20px;
    border-radius: 14px;
  }

  .quote-popup__form {
    grid-template-columns: 1fr;
  }

  .quote-popup__title {
    font-size: 25px;
  }
}
