
/* --- Modal facelift (site-consistent) --- */
:root {
  --violet-600:#7c3aed;
  --violet-700:#6d28d9;
  --pink-500:#ec4899;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --ring:#a78bfa;
  --shadow: 0 20px 40px rgba(2,6,23,.2);
}

#feedbackModal {
  position: fixed;
  inset: 0;
  display: none; /* toggled by JS */
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(1200px 800px at 50% -10%, rgba(124,58,237,.20), transparent),
              rgba(15, 23, 42, .55);
  z-index: 999999;
  animation: modal-backdrop-fade .2s ease-out;
}

@keyframes modal-backdrop-fade {
  from { opacity: 0; } to { opacity: 1; }
}

.modal-card {
  width: min(560px, 92vw);
  background: var(--surface);
  color: var(--text);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  animation: modal-in .28s ease-out forwards;
}

@keyframes modal-in {
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
  position: relative;
  padding: 22px 24px 20px 24px;
  background: linear-gradient(135deg, var(--violet-600), var(--pink-500));
  color: #fff;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .2px;
}

.modal-subtitle {
  margin-top: 6px;
  font-size: 14px;
  opacity: .95;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: rgba(255,255,255,.14);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .12s ease, background .12s ease;
}
.modal-close:hover { background: rgba(255,255,255,.25); transform: scale(1.04); }
.modal-close:active { transform: scale(.98); }

.modal-body {
  padding: 18px 20px 20px;
}

.form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .2px;
}

.input, .textarea, .select {
  width: 100%;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  font-size: 15px;
  transition: box-shadow .12s ease, border-color .12s ease, transform .03s ease;
}
.textarea { min-height: 110px; resize: vertical; }

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 4px rgba(167,139,250,.22);
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.btn-primary {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--violet-600), var(--pink-500));
  color: #fff;
  box-shadow: 0 10px 20px rgba(124,58,237,.25);
  transition: transform .08s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-primary:hover { filter: brightness(1.03); box-shadow: 0 14px 26px rgba(124,58,237,.32); }
.btn-primary:active { transform: translateY(1px); }

.note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.consent input {
  width: 18px; height: 18px; margin-top: 2px;
}
