/* Waitlist Page Styles */

/* Hero Section */
.hero-section {
  min-height: 50vh;
  background: linear-gradient(135deg, #737373 0%, #202020 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/sfondo-home.webp") center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  text-align: center;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.logo-container {
  margin-bottom: 2rem;
}

.hero-logo {
  width: 40%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #e60000, #e60000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #5a6c7d;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* Form Styles */
.waitlist-form-container {
  margin-top: 2rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  font-size: 16px; /* Prevent zoom on iOS Safari */
  background: white;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.form-group input::placeholder {
  color: #a0aec0;
}

.submit-btn {
  background: linear-gradient(135deg, #e60000 0%, #e60000 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(97, 26, 26, 0.3);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.submit-btn i {
  font-size: 1rem;
}

/* Blurred List Section */
.blurred-list-section {
  padding: 4rem 2rem;
  background: #f8fafc;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 3rem;
}

.blurred-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.list-item.blurred {
  filter: blur(2px);
  opacity: 0.7;
}

.list-item.blurred:hover {
  filter: blur(1px);
  opacity: 0.9;
  transform: scale(1.02);
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  opacity: 0.8;
}

.info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.name-blur {
  height: 16px;
  background: linear-gradient(90deg, #e2e8f0 25%, #cbd5e0 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 2s infinite;
}

.type-blur {
  height: 12px;
  width: 60%;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 2s infinite;
  animation-delay: 0.5s;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.list-note {
  text-align: center;
  color: #718096;
  font-style: italic;
  font-size: 0.9rem;
}

/* Success Message */
.success-message {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  animation: slideIn 0.5s ease;
}

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

/* Loading State */
.submit-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.submit-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    padding: 0rem;
    margin: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .waitlist-form {
    gap: 0rem;
    margin-bottom: 0rem;
    margin-top: 0rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    margin-bottom: 0rem;
    margin-top: 0rem;
  }

  .blurred-list {
    grid-template-columns: 1fr;
  }

  .section-title {
    margin-top: 0rem;
    font-size: 1.7rem;
  }
  .blurred-list-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 0rem;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .waitlist-form {
    gap: 0rem;
    margin-bottom: 0rem;
    margin-top: 0rem;
  }
  .form-row {
    gap: 0rem;
    margin-bottom: 0rem;
    margin-top: 0rem;
  }

  .form-group input,
  .form-group select {
    padding: 0.875rem 1.25rem;
    margin-bottom: 0rem;
    margin-top: 0rem;
    font-size: 16px; /* Prevent zoom on iOS Safari */
  }

  .submit-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  .section-title {
    margin-top: 0rem;
    font-size: 1.5rem;
  }
}
