/* ==========================================================================
   Quote request — side panel (phone: full screen) + floating WhatsApp button
   ========================================================================== */
.qt { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; }
.qt.is-open { visibility: visible; pointer-events: auto; }
.qt-backdrop { position: absolute; inset: 0; background: rgba(4,4,4,0.45); opacity: 0; transition: opacity 0.35s ease; }
.qt.is-open .qt-backdrop { opacity: 1; }
.qt-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%);
  background: var(--white); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: -20px 0 60px rgba(4,4,4,0.18);
}
.qt.is-open .qt-panel { transform: none; }
.qt-head { padding: 28px 32px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.qt-eyebrow {
  margin: 0; display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--maroon);
}
.qt-eyebrow::after { content: ''; width: 32px; height: 1px; background: var(--maroon); }
.qt-close { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: none; border: 1px solid rgba(4,4,4,0.14); cursor: pointer; color: var(--black); transition: border-color 0.2s, color 0.2s; }
.qt-close:hover { border-color: var(--maroon); color: var(--maroon); }
.qt-close svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.qt-body { flex: 1; overflow-y: auto; padding: 18px 32px 32px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.qt-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink, #141213); }
.qt-sub { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--grey-600); }

.qt-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.qt-field { display: flex; flex-direction: column; gap: 6px; }
.qt-field.full { grid-column: 1 / -1; }
.qt-field label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-600); }
.qt-field label b { color: var(--maroon); font-weight: 600; }
.qt-field input, .qt-field select, .qt-field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink, #141213);
  padding: 11px 12px; background: var(--grey-050); border: 1px solid transparent; border-radius: 0;
  transition: border-color 0.2s, background 0.2s; -webkit-appearance: none; appearance: none;
}
.qt-field select { background-image: linear-gradient(45deg, transparent 50%, #5c5955 50%), linear-gradient(135deg, #5c5955 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.qt-field textarea { min-height: 96px; resize: vertical; }
.qt-field input:focus, .qt-field select:focus, .qt-field textarea:focus { outline: none; background: var(--white); border-color: var(--maroon); }
.qt-field.is-bad input { border-color: var(--maroon); background: #fbf1f3; }
.qt-err { font-size: 12px; color: var(--maroon); min-height: 0; }
.qt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.qt-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.qt-actions .btn { cursor: pointer; font-family: inherit; }
.qt-actions .btn[disabled] { opacity: 0.6; cursor: wait; }
.btn--wa { background: transparent; border: 1px solid var(--black); color: var(--black); }
.btn--wa:hover { background: var(--black); color: var(--white); }
.btn--wa svg, .qt-fab svg { width: 16px; height: 16px; fill: currentColor; }
.qt-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--grey-400); }
.qt-status { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.5; color: var(--maroon); }

/* thank-you state */
.qt-done { display: none; padding-top: 12px; }
.qt.is-sent .qt-form, .qt.is-sent .qt-sub { display: none; }
.qt.is-sent .qt-done { display: block; }
.qt-done p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--grey-600); }
.qt-tick { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--maroon); display: grid; place-items: center; margin-bottom: 18px; color: var(--maroon); }
.qt-tick svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* floating WhatsApp button */
.qt-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 250;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 16px;
  border-radius: 999px; background: var(--black); color: var(--white); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(4,4,4,0.22);
  transform: translateY(16px); opacity: 0; pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease, background 0.2s;
}
.qt-fab.is-on { transform: none; opacity: 1; pointer-events: auto; }
.qt-fab:hover { background: var(--maroon); }
.qt-fab svg { width: 20px; height: 20px; }

/* lock page scroll while the panel is open */
html.qt-lock, html.qt-lock body { overflow: hidden; }

@media (max-width: 680px) {
  .qt-panel { width: 100%; }
  .qt-head { padding: 18px 20px 0; }
  .qt-body { padding: 14px 20px 28px; }
  .qt-title { font-size: 24px; }
  .qt-form { grid-template-columns: 1fr; }
  .qt-actions .btn { flex: 1 1 100%; justify-content: center; }
  .qt-fab { right: 14px; bottom: 14px; height: 50px; width: 50px; padding: 0; justify-content: center; }
  .qt-fab span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .qt-panel, .qt-backdrop, .qt-fab { transition: none; } }
