/* ── Demo Request Modal ─────────────────────────────────────────────────────── */

.dm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.dm-dialog {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  animation: dm-slide-in 0.22s ease;
}

@keyframes dm-slide-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ─────────────────────────────────────────────────────────────────── */

.dm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.dm-title {
  font-size: 20px;
  font-weight: 700;
  color: #002b5c;
  margin: 0 0 6px;
  line-height: 1.25;
}

.dm-subtitle {
  font-size: 13.5px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.dm-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}
.dm-close:hover { color: #374151; }

/* ── Form ───────────────────────────────────────────────────────────────────── */

.dm-form {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dm-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dm-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.dm-req { color: #dc2626; }
.dm-opt { font-weight: 400; color: #9ca3af; }

.dm-input,
.dm-select,
.dm-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  box-sizing: border-box;
}

.dm-input:focus,
.dm-select:focus,
.dm-textarea:focus {
  border-color: #004080;
  box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.1);
}

.dm-select { cursor: pointer; }
.dm-textarea { resize: vertical; min-height: 72px; }

/* ── Checkboxes ─────────────────────────────────────────────────────────────── */

.dm-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 2px;
}

.dm-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.dm-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #004080;
  flex-shrink: 0;
  cursor: pointer;
}

/* ── Error ──────────────────────────────────────────────────────────────────── */

.dm-error {
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 13.5px;
}

/* ── Submit button ──────────────────────────────────────────────────────────── */

.dm-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #004080, #0072ff);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 4px;
}
.dm-submit:hover:not(:disabled) { opacity: 0.9; }
.dm-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Success state ──────────────────────────────────────────────────────────── */

.dm-success {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.dm-success-icon {
  width: 56px;
  height: 56px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
}

.dm-success-title {
  font-size: 20px;
  font-weight: 700;
  color: #002b5c;
  margin: 0;
}

.dm-success-body {
  font-size: 14.5px;
  color: #6b7280;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 0 8px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 580px) {
  .dm-row       { grid-template-columns: 1fr; }
  .dm-checkboxes{ grid-template-columns: 1fr; }
  .dm-dialog    { border-radius: 12px; }
  .dm-title     { font-size: 18px; }
  .dm-header    { padding: 18px 18px 14px; }
  .dm-form      { padding: 16px 18px 20px; }
}
