/* astro-lead-form.css — Popup lead form Guide astro natale PDF
   macalculatriceenligne.com — cluster /astrologie/
   Charte cohérente V5 strict : bordure noire 3px, ombre violette décalée, fond #faf5ff. */

#astro-lead-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 14, 40, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1rem;
  animation: alf-fade-in 0.25s ease-out both;
}
#astro-lead-form-overlay.alf-visible { display: flex; }

@keyframes alf-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes alf-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#astro-lead-form-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #faf5ff;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #7C3AED;
  padding: 1.4rem 1.3rem 1.2rem;
  animation: alf-slide-up 0.3s ease-out both;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
}

#astro-lead-form-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #000;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  color: #000;
}
#astro-lead-form-close:hover { background: #ffe4f0; }
#astro-lead-form-close:focus-visible { outline: 3px solid #7C3AED; outline-offset: 2px; }

.alf-header {
  margin: 0 0 0.9rem;
  padding-right: 36px;
}
.alf-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.25;
}
.alf-header p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #333;
}

#astro-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.alf-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.alf-row label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #444;
  letter-spacing: 0.01em;
}
.alf-row input {
  padding: 0.55rem 0.65rem;
  border: 2px solid #000;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
}
.alf-row input:focus-visible {
  outline: 3px solid #7C3AED;
  outline-offset: 1px;
}
.alf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

#astro-lead-form-submit {
  margin-top: 0.45rem;
  padding: 0.75rem 1rem;
  background: #7C3AED;
  color: #fff;
  border: 3px solid #000;
  font-weight: 900;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  font-family: inherit;
}
#astro-lead-form-submit:hover { background: #6d28d9; }
#astro-lead-form-submit:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
#astro-lead-form-submit:focus-visible { outline: 3px solid #ffd600; outline-offset: 2px; }
#astro-lead-form-submit:disabled { background: #aaa; cursor: not-allowed; box-shadow: none; }

.alf-msg {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 1.2em;
  line-height: 1.4;
}
.alf-msg.alf-err { color: #b91c1c; }
.alf-msg.alf-ok { color: #15803d; }
.alf-msg.alf-info { color: #1e40af; }

.alf-privacy {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: #555;
  line-height: 1.45;
}
.alf-privacy a {
  color: #6d28d9;
  text-decoration: underline;
}

.alf-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: alf-spin 0.7s linear infinite;
  margin-right: 0.45rem;
  vertical-align: -2px;
}
@keyframes alf-spin { to { transform: rotate(360deg); } }

/* Responsive mobile */
@media (max-width: 600px) {
  #astro-lead-form-overlay { padding: 0; }
  #astro-lead-form-modal {
    max-width: 100%;
    height: 100%;
    max-height: 100vh;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .alf-row-2 { grid-template-columns: 1fr; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  #astro-lead-form-overlay,
  #astro-lead-form-modal,
  .alf-spinner { animation: none !important; }
}
