/* ============================================================
   HHJ reusable Get Quote modal — Himalayan Teal theme
   Mobile-first bottom sheet → desktop centered dialog.
   ============================================================ */
.qmodal { display: none; }
.qmodal.open { display: flex; position: fixed; inset: 0; z-index: 1500; align-items: flex-end; justify-content: center; }
.qmodal-backdrop { position: absolute; inset: 0; background: rgba(10, 52, 63, .62); }
.qmodal-dialog {
  position: relative; width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 18px 18px 0 0; padding: 24px 22px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -18px 60px rgba(0, 0, 0, .35);
}
@media (min-width: 769px) {
  .qmodal.open { align-items: center; padding: 24px; }
  .qmodal-dialog { border-radius: 18px; padding: 28px; }
}
.qmodal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 30px; line-height: 1; color: #667085; cursor: pointer; padding: 4px 8px; }
.qmodal-close:hover { color: #0F4C5C; }
.qmodal-title { font-family: 'Fraunces', Georgia, serif; font-size: 23px; font-weight: 600; color: #0F4C5C; margin-right: 36px; }
.qmodal-sub { font-size: 12.5px; color: #667085; margin: 4px 0 18px; }
.qmodal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qmodal-grid label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #667085; }
.qmodal-grid input, .qmodal-grid select, .qmodal-grid textarea {
  width: 100%; margin-top: 6px; border: 1.5px solid #D9E2E5; border-radius: 10px; padding: 11px 12px;
  font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; color: #263238; background: #fff; box-sizing: border-box;
}
.qmodal-grid textarea { resize: vertical; min-height: 56px; }
.qmodal-grid input:focus, .qmodal-grid select:focus, .qmodal-grid textarea:focus { outline: none; border-color: #0F4C5C; box-shadow: 0 0 0 3px rgba(15, 76, 92, .12); }
.qm-full { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; opacity: 0; }
.qmodal-error { margin-top: 12px; padding: 10px 13px; border-radius: 10px; font-size: 12.5px; font-weight: 700; background: #fff0f2; color: #b51e35; border: 1px solid #f3c0ca; }
.qmodal-error[hidden] { display: none; }
.qmodal-submit { width: 100%; margin-top: 16px; border: 0; border-radius: 12px; padding: 15px; font-size: 15px; font-weight: 800; cursor: pointer; background: #0F4C5C; color: #fff; box-shadow: 0 8px 30px rgba(15, 76, 92, .08); transition: background .2s; }
.qmodal-submit:hover { background: #1F6F5B; }
.qmodal-submit:disabled { opacity: .65; cursor: wait; }
.qmodal-note { text-align: center; font-size: 11.5px; color: #667085; margin: 12px 0 0; }
.qmodal-success { text-align: center; padding: 12px 0 4px; }
.qmodal-tick { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; background: #EAF4EF; color: #1F6F5B; font-size: 30px; font-weight: 800; display: grid; place-items: center; }
.qmodal-success .qmodal-title { margin: 0 0 6px; }
.qmodal-wa, .qmodal-call { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 14px; font-weight: 800; font-size: 14px; text-decoration: none; margin-top: 10px; }
.qmodal-wa { background: #1cab5c; color: #fff; }
.qmodal-wa:hover { filter: brightness(.94); }
.qmodal-call { background: #0F4C5C; color: #fff; }
.qmodal-call:hover { background: #1F6F5B; }
.qmodal-back { margin-top: 10px; border: 1.5px solid #0F4C5C; background: #fff; color: #0F4C5C; border-radius: 12px; padding: 13px; width: 100%; font-weight: 800; font-size: 14px; cursor: pointer; }
@media (max-width: 480px) {
  .qmodal-grid { grid-template-columns: 1fr; }
  .qmodal-dialog { padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .qmodal-submit, .qmodal-wa, .qmodal-call { transition: none; }
}
