/* waitlist.css - Styles for Casa Waitlist */

.waitlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .waitlist-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
  
  .waitlist-container {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
  }
  
  /* Glass reflection shine effect */
  .waitlist-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent
    );
    transform: skewX(-20deg);
    animation: shine 3s ease-in-out 1s;
  }
  
  .waitlist-overlay.active .waitlist-container {
    transform: translateY(0) scale(1);
  }
  
  /* Close button */
  .waitlist-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .waitlist-close:hover {
    opacity: 1;
    transform: rotate(90deg);
  }
  
  .waitlist-close::before,
  .waitlist-close::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    height: 20px;
    width: 1.5px;
    background: #fff;
    border-radius: 2px;
  }
  
  .waitlist-close::before {
    transform: rotate(45deg);
  }
  
  .waitlist-close::after {
    transform: rotate(-45deg);
  }
  
  /* Typography */
  .waitlist-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.2;
    font-family: 'TWK Lausanne', sans-serif;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
  }
  
  .waitlist-subtitle {
    color: #999;
    margin-bottom: 35px;
    font-size: 1.1rem;
    line-height: 1.5;
    font-family: 'TWK Lausanne', sans-serif;
  }
  
  /* Form */
  .waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .waitlist-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'TWK Lausanne', sans-serif;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
  }
  
  .waitlist-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .waitlist-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .waitlist-input::placeholder {
    color: #666;
  }
  
  /* Autofill styles */
  .waitlist-input:-webkit-autofill,
  .waitlist-input:-webkit-autofill:hover,
  .waitlist-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset;
    transition: background-color 5000s ease-in-out 0s;
  }
  
  /* Button */
  .waitlist-button {
    width: 100%;
    padding: 16px 30px;
    font-size: 15px;
    font-weight: 500;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'TWK Lausanne', sans-serif;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    position: relative;
    overflow: hidden;
  }
  
  .waitlist-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }
  
  .waitlist-button:hover::before {
    width: 300px;
    height: 300px;
  }
  
  .waitlist-button:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
  }
  
  .waitlist-button:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
  }
  
  .waitlist-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  /* Messages */
  .waitlist-message {
    margin-top: 20px;
    font-size: 15px;
    display: none;
    font-family: 'TWK Lausanne', sans-serif;
    font-weight: 300;
    letter-spacing: 0.3px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .waitlist-message.success {
    color: #66bb6a;
    display: block;
    opacity: 1;
  }
  
  .waitlist-message.error {
    color: #ef5350;
    display: block;
    opacity: 1;
  }
  
  /* Count display */
  .waitlist-count {
    margin-top: 25px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    color: #777;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
/* Trigger button */
.waitlist-trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 0;
  background: transparent !important;
  border: none;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  box-shadow: none;
  width: 200px;
  height: auto;
}

.waitlist-trigger img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
  
  .waitlist-trigger.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  
.waitlist-trigger:hover {
  transform: translateY(-2px);
}

.waitlist-trigger:hover img {
  transform: scale(1.05);
}
  
  /* Animations */
  @keyframes slideInFade {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes messageIn {
    0% {
      opacity: 0;
      transform: scale(0.8) translateY(10px);
    }
    50% {
      transform: scale(1.05) translateY(-2px);
    }
    100% {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  
  @keyframes shine {
    0% {
      left: -100%;
    }
    100% {
      left: 150%;
    }
  }
  
  /* Mobile responsive */
  @media (max-width: 768px) {
    .waitlist-container {
      padding: 35px 25px;
      width: 92%;
      border-radius: 20px;
    }
    
    .waitlist-title {
      font-size: 1.9rem;
    }
    
    .waitlist-subtitle {
      font-size: 1rem;
    }
    
    .waitlist-input,
    .waitlist-button {
      padding: 16px 18px;
      font-size: 16px;
    }
    
    .waitlist-trigger {
      bottom: 20px;
      right: 20px;
      width: 100px;
    }
    
    .waitlist-count {
      font-size: 12px;
    }
  }
  
  /* Smaller mobile */
  @media (max-width: 480px) {
    .waitlist-container {
      padding: 30px 20px;
      border-radius: 18px;
    }
    
    .waitlist-title {
      font-size: 1.7rem;
    }
  }
  
  /* Dark mode preference support */
  @media (prefers-color-scheme: light) {
    .waitlist-container {
      background: #f5f5f5;
      color: #333;
    }
    
    .waitlist-title {
      color: #000;
    }
    
    .waitlist-subtitle {
      color: #666;
    }
    
    .waitlist-input {
      background: #fff;
      border-color: #ddd;
      color: #000;
    }
    
    .waitlist-input:focus {
      border-color: #999;
      background: #fafafa;
    }
    
    .waitlist-button {
      background: #000;
      color: #fff;
    }
    
    .waitlist-button:hover:not(:disabled) {
      background: #333;
    }
    
    .waitlist-close::before,
    .waitlist-close::after {
      background: #333;
    }
    
    .waitlist-trigger {
      /* Image-based button - no background color changes needed */
    }
  }