.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.quote-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 36px 40px 32px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.quote-modal__decor {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 181, 116, 0.35) 0%, rgba(211, 181, 116, 0) 70%);
  pointer-events: none;
}

.quote-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.quote-modal__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1c1c1c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.quote-modal__close {
  border: none;
  background: transparent;
  color: #666;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.quote-modal__close:hover {
  color: #1c1c1c;
}

.quote-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-modal__input,
.quote-modal__textarea {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #f3f3f3;
  box-sizing: border-box;
  font-size: 15px;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  outline: none;
}

.quote-modal__input {
  height: 52px;
  padding: 0 18px;
}

.quote-modal__textarea {
  min-height: 140px;
  padding: 16px 18px;
  line-height: 1.5;
  resize: vertical;
}

.quote-modal__input::placeholder,
.quote-modal__textarea::placeholder {
  color: #9a9a9a;
}

.quote-modal__input:focus,
.quote-modal__textarea:focus {
  background: #efefef;
}

.quote-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.quote-modal__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: #d3b574;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.quote-modal__submit:hover {
  background: #c4a665;
}

.quote-modal__submit-arrow {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 600px) {
  .quote-modal {
    padding: 0;
    align-items: flex-end;
  }

  .quote-modal__dialog {
    max-width: 100%;
    width: 100%;
    padding: 24px 20px 20px;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
    overflow-y: auto;
  }

  .quote-modal__title {
    font-size: 22px;
  }

  .quote-modal__input {
    height: 48px;
    font-size: 16px;
  }

  .quote-modal__submit {
    width: 100%;
    justify-content: center;
  }
}
