/* ==========================================================================
   Vertical Music Votazioni — Modal styles
   Coerente con il tema (bianco/nero, accent #00D9FF, rounded-full bottoni)
   ========================================================================== */

.vm-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vm-modal.is-open {
  display: flex;
  animation: vm-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.vm-modal__panel {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  border: 2px solid #000000;
  animation: vm-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.vm-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #000000;
  padding: 0.25rem 0.5rem;
}

.vm-modal__close:hover {
  color: #00D9FF;
}

.vm-modal__content {
  text-align: center;
}

.vm-modal__title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000000;
  margin: 0 0 0.5rem;
}

.vm-modal__artist-name {
  font-size: 1.875rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: #000000;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.vm-modal__hint {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
  margin: 0 0 1.5rem;
}

.vm-modal__hint strong {
  color: #000000;
}

/* ============================
   Form
   ============================ */
.vm-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.vm-form__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000000;
}

.vm-form__input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.vm-form__input:focus {
  border-color: #00D9FF;
}

.vm-form__input--otp {
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.5em;
  font-weight: 700;
}

.vm-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  line-height: 1.4;
}

.vm-form__checkbox input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  cursor: pointer;
}

.vm-form__error {
  color: #dc2626;
  font-size: 0.8125rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: rgba(220, 38, 38, 0.1);
  border-left: 3px solid #dc2626;
}

/* ============================
   Bottoni
   ============================ */
.vm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
}

.vm-btn:hover:not(:disabled) {
  background: #000000;
  color: #ffffff;
}

.vm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vm-btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.vm-btn.is-loading::after {
  content: '';
  position: absolute;
  width: 1.125rem;
  height: 1.125rem;
  top: 50%;
  left: 50%;
  margin: -0.5625rem 0 0 -0.5625rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: vm-spin 0.7s linear infinite;
  color: #000000;
}

.vm-btn--primary.is-loading::after {
  color: #000000;
}

@keyframes vm-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .vm-modal.is-open,
  .vm-modal__panel {
    animation: none;
  }
  .vm-btn.is-loading::after {
    animation: vm-spin 1.5s linear infinite;
  }
}

.vm-btn--primary {
  margin-top: 0.5rem;
}

.vm-btn--link {
  background: transparent;
  border: none;
  color: rgba(0, 0, 0, 0.6);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  padding: 0.5rem;
}

.vm-btn--link:hover:not(:disabled) {
  color: #000000;
  background: transparent;
}

/* ============================
   Honeypot (nascosto)
   ============================ */
.vm-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================
   Step success
   ============================ */
.vm-modal__success {
  text-align: center;
  padding: 1rem 0;
}

.vm-modal__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: #00D9FF;
  color: #000000;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.vm-modal__success-msg {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

/* ============================
   Animazioni
   ============================ */
@keyframes vm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* ============================
   Mobile
   ============================ */
@media (max-width: 480px) {
  .vm-modal__panel {
    padding: 2rem 1.25rem 1.5rem;
  }

  .vm-modal__artist-name {
    font-size: 1.5rem;
  }
}
