/**
 * Slot Availability Overlay Styles
 * Blurs the checkout form and shows waitlist when slots are full
 */

/* Wrapper for blurred form */
.sec-form-container.slots-full {
  position: relative;
}

/* Blur the form when slots are full */
.sec-form-container.slots-full .sec-membership-form-wrapper {
  filter: blur(4px);
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}

/* Waitlist overlay */
.sec-slot-waitlist-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 90%;
  max-width: 500px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe3ff;
  border-radius: 22px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.26);
  animation: slideUp 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.sec-slot-waitlist-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2536eb 0%, #4458ff 100%);
  color: #ffffff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(37, 54, 235, 0.32);
}

.sec-slot-waitlist-overlay h4 {
  margin: 0 0 10px 0;
  font-size: 1.62rem;
  line-height: 1.2;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.sec-slot-waitlist-overlay p {
  margin: 0 0 22px 0;
  color: #475569;
  font-size: 0.97rem;
  line-height: 1.55;
}

.sec-slot-waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sec-slot-waitlist-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #dbe3ff;
  border-radius: 12px;
  font-size: 15px;
  background: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sec-slot-waitlist-input:focus {
  outline: none;
  border-color: #2536eb;
  box-shadow: 0 0 0 4px rgba(37, 54, 235, 0.12);
}

.sec-slot-waitlist-btn {
  width: 100%;
  background: linear-gradient(135deg, #2536eb, #3d4ef0);
  color: white;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 22px rgba(37, 54, 235, 0.3);
}

.sec-slot-waitlist-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(37, 54, 235, 0.34);
}

.sec-slot-waitlist-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.sec-slot-waitlist-message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

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

.sec-slot-message-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #86efac;
}

.sec-slot-message-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Loading spinner */
.sec-slot-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Responsive */
@media (max-width: 640px) {
  .sec-slot-waitlist-overlay {
    padding: 30px 22px;
    border-radius: 16px;
    width: 95%;
  }

  .sec-slot-waitlist-icon {
    width: 54px;
    height: 54px;
    font-size: 26px;
  }

  .sec-slot-waitlist-overlay h4 {
    font-size: 1.3rem;
  }

  .sec-slot-waitlist-overlay p {
    font-size: 14px;
  }

  .sec-slot-waitlist-input,
  .sec-slot-waitlist-btn {
    font-size: 14px;
    padding: 14px 18px;
  }
}

@media (max-width: 480px) {
  .sec-slot-waitlist-overlay {
    padding: 24px 18px;
  }

  .sec-slot-waitlist-overlay h4 {
    font-size: 18px;
  }
}
