/* Artvoic Leads modal — дополняет hero-dubbing.css / токены сайта */
.artvoic-lead-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
}

.artvoic-lead-root.is-open {
  pointer-events: auto;
}

.artvoic-lead__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.artvoic-lead-root.is-open .artvoic-lead__overlay {
  opacity: 1;
}

.artvoic-lead__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: min(480px, calc(100vw - 2rem));
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #0a1210 0%, #050505 55%, #070a0c 100%);
  border: 1px solid rgba(0, 255, 209, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 255, 209, 0.08) inset;
  color: #fff;
  font-family: var(--artvoic-font-body, Montserrat, system-ui, sans-serif);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.artvoic-lead-root.is-open .artvoic-lead__panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.artvoic-lead__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.artvoic-lead__close:hover {
  background: rgba(0, 255, 209, 0.15);
  color: var(--artvoic-accent, #00ffd1);
}

.artvoic-lead__title {
  margin: 0 2rem 0.5rem 0;
  font-family: var(--artvoic-font-display, Unbounded, system-ui, sans-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--artvoic-text, #fff);
}

.artvoic-lead__subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--artvoic-text-muted, rgba(255, 255, 255, 0.72));
}

.artvoic-lead__field {
  margin-bottom: 1rem;
}

.artvoic-lead__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: var(--artvoic-text-soft, rgba(255, 255, 255, 0.55));
}

.artvoic-lead__field input:not([type='checkbox']),
.artvoic-lead__field select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 209, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
}

.artvoic-lead__field--slot select {
  min-height: 2.85rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  line-height: 1.4;
  font-size: 0.875rem;
}

.artvoic-lead__field input:not([type='checkbox']):focus,
.artvoic-lead__field select:focus {
  outline: none;
  border-color: var(--artvoic-accent, #00ffd1);
  box-shadow: 0 0 0 1px rgba(0, 255, 209, 0.25);
}

.artvoic-lead__consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--artvoic-text-muted, rgba(255, 255, 255, 0.78));
}

.artvoic-lead__consent input[type='checkbox'] {
  width: auto;
  flex: 0 0 auto;
  margin: 0.2rem 0 0;
  accent-color: var(--artvoic-accent, #00ffd1);
}

.artvoic-lead__consent label > span {
  flex: 1 1 0;
  min-width: 0;
}

.artvoic-lead__consent a {
  color: var(--artvoic-accent, #00ffd1);
}

.artvoic-lead__error {
  margin: 0.75rem 0;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffb4b4;
  font-size: 0.88rem;
}

.artvoic-lead__actions {
  margin-top: 1.25rem;
}

.artvoic-lead__submit {
  width: 100%;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  background: var(--artvoic-accent, #00ffd1);
  color: #050505;
  box-shadow: 0 0 0 1px rgba(0, 255, 209, 0.55), 0 16px 48px rgba(0, 255, 209, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.artvoic-lead__submit:hover:not(:disabled) {
  transform: translateY(-2px);
}

.artvoic-lead__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.artvoic-lead__success {
  margin: 2rem 0 0;
  font-size: 1rem;
  color: var(--artvoic-accent, #00ffd1);
}

body.artvoic-lead-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .artvoic-lead__overlay,
  .artvoic-lead__panel,
  .artvoic-lead__submit {
    transition: none;
  }
}
