.diq-email-capture-open {
  overflow: hidden;
}

.diq-email-capture {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  opacity: 0;
  animation: diq-email-backdrop-in 0.45s ease forwards;
}

.diq-email-capture__panel {
  width: 100%;
  max-width: 440px;
  background: #141414;
  border: 1px solid rgba(201, 168, 76, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  padding: 36px 32px 32px;
  opacity: 0;
  transform: translateY(32px) scale(0.94);
  animation: diq-email-panel-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes diq-email-backdrop-in {
  to {
    opacity: 1;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

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

.diq-email-capture.is-leaving {
  animation: diq-email-backdrop-out 0.28s ease forwards;
  pointer-events: none;
}

.diq-email-capture.is-leaving .diq-email-capture__panel {
  animation: diq-email-panel-out 0.28s ease forwards;
}

@keyframes diq-email-backdrop-out {
  to {
    opacity: 0;
    background: rgba(8, 8, 8, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
  }
}

@keyframes diq-email-panel-out {
  to {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .diq-email-capture,
  .diq-email-capture__panel,
  .diq-email-capture.is-leaving,
  .diq-email-capture.is-leaving .diq-email-capture__panel {
    animation: none;
    opacity: 1;
    transform: none;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

.diq-email-capture__kicker {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 14px;
}

.diq-email-capture__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: #f5efe0;
  margin: 0 0 12px;
  line-height: 1.25;
}

.diq-email-capture__text {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

.diq-email-capture__field {
  display: block;
  margin-bottom: 12px;
}

.diq-email-capture__label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.diq-email-capture__input {
  width: 100%;
  padding: 14px 16px;
  background: #080808;
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.diq-email-capture__input:focus {
  border-color: #c9a84c;
}

.diq-email-capture__input::placeholder {
  color: #555;
}

.diq-email-capture__error {
  min-height: 1.25rem;
  margin: 0 0 8px;
  color: #e88;
  font-size: 0.9rem;
}

.diq-email-capture__submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 20px;
  border: none;
  background: #c9a84c;
  color: #111;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.diq-email-capture__submit:hover {
  background: #e8d5a3;
}

.diq-email-capture__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.diq-email-capture.is-hidden {
  display: none;
}
