/* Audible Email Capture — modal styles (self-contained, no theme dependency) */

.aec-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 17, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.aec-overlay.aec-open {
  display: flex;
}

.aec-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: aec-pop 0.25s ease;
}

@keyframes aec-pop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.aec-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: #F7F8FA;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #17181A;
}

.aec-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.aec-modal h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0F1111;
  margin: 0 0 8px;
}

.aec-modal p {
  font-size: 14px;
  color: #5B6169;
  margin: 0 0 20px;
  line-height: 1.5;
}

.aec-field {
  margin-bottom: 14px;
}

.aec-field input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #E7E9EC;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.aec-field input[type="email"]:focus {
  border-color: #FF9900;
}

.aec-website-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.aec-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #5B6169;
  margin-bottom: 20px;
  line-height: 1.5;
}

.aec-consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.aec-submit {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF9900 0%, #E68A00 100%);
  color: #0F1111;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 28px rgba(255, 153, 0, 0.35);
}

.aec-submit:hover {
  transform: translateY(-1px);
}

.aec-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.aec-error {
  color: #C0392B;
  font-size: 13px;
  margin: 10px 0 0;
  display: none;
}

.aec-error.aec-visible {
  display: block;
}

.aec-note {
  font-size: 11px;
  color: #9AA0A8;
  text-align: center;
  margin-top: 14px;
}

@media (max-width: 480px) {
  .aec-modal {
    padding: 26px 20px;
    border-radius: 16px;
  }
}
