body.quote-open { overflow: hidden; }

.quote-dialog {
  width: min(820px, calc(100% - 28px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #183126;
  background: #f8f5ed;
  box-shadow: 0 28px 80px rgba(15, 42, 30, .38);
  overflow: auto;
}

.quote-dialog::backdrop {
  background: rgba(8, 29, 20, .68);
  backdrop-filter: blur(5px);
}

.quote-dialog[open] { animation: quote-in .3s ease both; }

@keyframes quote-in {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.quote-dialog-inner { padding: clamp(26px, 5vw, 48px); }

.quote-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(32, 92, 66, .2);
  border-radius: 50%;
  color: #205c42;
  background: rgba(255, 255, 255, .82);
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.quote-close:hover,
.quote-close:focus-visible { transform: rotate(8deg) scale(1.06); background: #fff; }

.quote-dialog h2 { margin: 0 52px 8px 0; color: #205c42; }
.quote-intro { max-width: 650px; margin: 0 0 28px; color: #52665b; }

.quote-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.quote-field { display: grid; gap: 7px; }
.quote-field.full { grid-column: 1 / -1; }
.quote-field label { font-weight: 750; color: #183126; }
.quote-field label span { color: #a15f23; }

.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #bdc9c1;
  border-radius: 8px;
  color: #183126;
  background: #fff;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.quote-field textarea { min-height: 125px; resize: vertical; }
.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  outline: 0;
  border-color: #c79746;
  box-shadow: 0 0 0 3px rgba(199, 151, 70, .2);
}

.quote-help { margin: 18px 0 0; color: #66776d; font-size: .88rem; }
.quote-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.quote-actions button { border: 0; cursor: pointer; font: inherit; }
.quote-cancel { padding: 12px 18px; border-radius: 7px; color: #205c42; background: #e3ebe6; font-weight: 700; }
.quote-submit { padding: 13px 20px; border-radius: 7px; color: #fff; background: #205c42; font-weight: 800; box-shadow: 0 8px 18px rgba(32, 92, 66, .22); }
.quote-cancel:hover,
.quote-submit:hover { transform: translateY(-2px); }

@media (max-width: 650px) {
  .quote-form-grid { grid-template-columns: 1fr; }
  .quote-field.full { grid-column: auto; }
  .quote-actions { flex-direction: column-reverse; }
  .quote-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .quote-dialog[open] { animation: none; }
}
