/* ═══════════════════════════════════════════════════════════════
   Modal – Premium Monochrome Palette
   ═══════════════════════════════════════════════════════════════ */

/* ── Dialog ─────────────────────────────────────────────────── */
dialog#newsletter-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 1000;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

dialog#newsletter-modal[open] {
  opacity: 1;
}

/* ── Backdrop ───────────────────────────────────────────────── */
dialog#newsletter-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Header ─────────────────────────────────────────────────── */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* ── Close button ───────────────────────────────────────────── */
.modal-close {
  background: none;
  border: none;
  color: #888888;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.3s ease, background 0.3s ease;
}

.modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Body ───────────────────────────────────────────────────── */
.modal-body {
  padding: 2rem;
}

.modal-body p {
  margin: 0 0 1.5rem 0;
  color: #888888;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Form ───────────────────────────────────────────────────── */
.newsletter-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.newsletter-form input {
  width: 100%;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.newsletter-form input:focus {
  outline: none;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

/* ── Submit button ──────────────────────────────────────────── */
.newsletter-form button {
  width: 100%;
  padding: 1rem;
  background: #ffffff;
  color: #0a0a0a;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(255, 255, 255, 0.12),
    0 0 60px rgba(255, 255, 255, 0.06);
}

.newsletter-form button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
}
