.overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(3, 6, 11, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1500;
  padding: 24px;
}

.overlay.compact {
  margin: 0;
}

.email-form {
  background: linear-gradient(180deg, #121a26 0%, #0c131d 100%);
  border: 1px solid var(--border, #1f2c3f);
  border-radius: 14px;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(100, 255, 218, 0.05);
  padding: 28px 30px;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease-in-out;
}

.email-form.compact-form {
  width: min(560px, 100%);
  height: auto;
}

.email-form h2 {
  margin: 0 0 18px;
  color: #eaf2fb;
  font-size: 1.3rem;
}

.email-form h2::before {
  content: "> ";
  color: var(--accent, #64ffda);
}

.email-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-dim, #8a98ad);
  font-size: 13px;
}

.email-form input,
.email-form textarea {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border, #1f2c3f);
  border-radius: 9px;
  background-color: #0a121d;
  color: var(--text, #c8d3e0);
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.email-form input::placeholder,
.email-form textarea::placeholder {
  color: var(--text-muted, #5d6b80);
}

.email-form input:focus,
.email-form textarea:focus {
  outline: none;
  border-color: var(--accent, #64ffda);
  box-shadow: 0 0 0 3px var(--accent-glow, rgba(100, 255, 218, 0.16));
}

.email-form textarea {
  resize: vertical;
  min-height: 140px;
}

.email-form button {
  width: 100%;
  padding: 12px;
  background: var(--accent-glow, rgba(100, 255, 218, 0.16));
  color: var(--accent, #64ffda);
  border: 1px solid var(--accent-2, #2cb89a);
  border-radius: 9px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.email-form button:hover {
  background: rgba(100, 255, 218, 0.24);
  border-color: var(--accent, #64ffda);
  transform: translateY(-1px);
}

.email-form button[type="button"] {
  background: transparent;
  color: var(--text-dim, #8a98ad);
  border-color: var(--border, #1f2c3f);
}

.email-form button[type="button"]:hover {
  color: var(--text, #c8d3e0);
  border-color: #2f4055;
}

.form-response {
  display: block;
  min-height: 1.2em;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--accent, #64ffda);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
