/* ---------- shared case-inquiry modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 34px 32px 30px;
}
.modal-panel::-webkit-scrollbar { display: none; }
.modal-panel::before, .modal-panel::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; }
.modal-panel::before { top: -1px; left: -1px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.modal-panel::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  appearance: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  border-radius: 3px;
}
.modal-close:hover { color: var(--accent); border-color: var(--accent-dim); }
.modal-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.modal-panel h3 { font-family: var(--serif); font-weight: 560; font-size: 1.4rem; margin: 0 0 6px; }
.modal-panel p.modal-sub { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 26px; line-height: 1.5; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 12px;
  font-family: var(--sans);
  font-size: 0.92rem;
  border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-dim); }
.field textarea { resize: vertical; min-height: 90px; }
.modal-row { display: flex; gap: 14px; }
.modal-row .field { flex: 1; }
.modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.modal-actions-end { justify-content: flex-end; }
.modal-actions .fine-note { font-size: 0.76rem; color: var(--text-faint); max-width: 30ch; line-height: 1.4; }
.fine-note.note-success { color: var(--accent); }
.fine-note.note-error { color: #d97757; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .modal-row { flex-direction: column; gap: 0; }
  .modal-panel { padding: 28px 22px 24px; }
}
