#form-richiedi-demo .form-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 150, 255, 0.3);
  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#form-richiedi-demo .form-input:focus {
  outline: none;
  border-color: #4da6ff;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(77, 166, 255, 0.3);
}

#richiedi-demo-popup {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}
#richiedi-demo-popup .demo-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
#richiedi-demo-popup .demo-popup-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 1rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.52) 0%, rgba(17, 17, 17, 0.48) 50%, rgba(0, 0, 0, 0.7) 100%);
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  border: 1px solid rgba(100, 150, 255, 0.2);
  border-radius: 1rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(100, 150, 255, 0.05);
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1), transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
#richiedi-demo-popup .demo-popup-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #293683 0%, #195AFC 40%, #4da6ff 100%);
  border-radius: 1rem 1rem 0 0;
}
#richiedi-demo-popup.is-active {
  pointer-events: auto;
  visibility: visible;
}
#richiedi-demo-popup.is-active .demo-popup-overlay {
  background: rgba(0, 0, 0, 0.72);
}
#richiedi-demo-popup.is-active .demo-popup-box {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.demo-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 150, 255, 0.1);
  border: 1px solid rgba(100, 150, 255, 0.2);
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}
.demo-popup-close:hover {
  background: rgba(100, 150, 255, 0.25);
  border-color: rgba(100, 150, 255, 0.5);
}
.demo-popup-close svg {
  width: 18px;
  height: 18px;
}

.demo-popup-box h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem;
  padding-right: 2.5rem;
}
.demo-popup-box .demo-popup-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.5rem;
}

#form-richiedi-demo label {
  display: block;
  font-size: 1.18rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

@media (max-height: 700px) {
  #richiedi-demo-popup {
    align-items: flex-start;
    overflow-y: auto;
    padding: 1rem;
  }
}