/* ================= CONTACT MODAL ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .2s;
}
.modal-backdrop.open {
  display: flex;
  opacity: 1;
}
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  padding: 36px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  transform: translateY(8px);
  transition: transform .2s;
  position: relative;
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.modal h2 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 32px;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.modal p.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 130px; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background .15s;
  cursor: pointer;
}
.submit-btn:hover { background: var(--accent-2); }
.modal-success {
  background: rgba(124,127,240,0.10);
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  display: none;
}
.modal-success.show { display: block; }
.modal-error {
  background: rgba(220,60,60,0.10);
  border: 1px solid rgba(220,60,60,0.25);
  color: #e05555;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  display: none;
}
.modal-error.show { display: block; }

@media (max-width: 600px) {
  .modal { padding: 28px 22px; }
}
