/**
 * Vetu.Fit Modal Styles
 * Styles for waitlist and video modals
 */

/* =========================================
   MODAL BACKDROP
   ========================================= */

.vf-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 16px;
  box-sizing: border-box;
}

.vf-video-backdrop {
  background-color: rgba(0, 0, 0, 0.9);
}

/* =========================================
   WAITLIST MODAL
   ========================================= */

.vf-modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: vf-modal-appear 0.2s ease-out;
}

@keyframes vf-modal-appear {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.vf-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 4px;
  transition: color 0.2s;
}

.vf-modal-close:hover {
  color: #262626;
}

.vf-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #262626;
  margin: 0 0 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vf-modal-description {
  color: #666;
  margin: 0 0 24px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =========================================
   FORM STYLES
   ========================================= */

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vf-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vf-input:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.vf-input::placeholder {
  color: #9ca3af;
}

.vf-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #262626;
  cursor: pointer;
  padding: 4px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vf-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #22d3ee;
  cursor: pointer;
  flex-shrink: 0;
}

.vf-submit-btn {
  width: 100%;
  padding: 14px;
  background: #22d3ee;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vf-submit-btn:hover {
  background: #06b6d4;
}

.vf-submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

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

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

/* =========================================
   SUCCESS STATE
   ========================================= */

.vf-success-container {
  text-align: center;
  padding: 20px 0;
}

.vf-success-icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.vf-success-title {
  font-size: 24px;
  font-weight: 600;
  color: #262626;
  margin: 0 0 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vf-success-message {
  color: #666;
  margin: 0 0 24px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vf-share-section {
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.vf-share-text {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vf-share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.vf-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
}

.vf-share-btn:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.vf-share-twitter {
  background-color: rgba(29, 161, 242, 0.1);
  color: #1DA1F2;
}

.vf-share-facebook {
  background-color: rgba(24, 119, 242, 0.1);
  color: #1877F2;
}

.vf-share-linkedin {
  background-color: rgba(10, 102, 194, 0.1);
  color: #0A66C2;
}

.vf-share-whatsapp {
  background-color: rgba(37, 211, 102, 0.1);
  color: #25D366;
}

/* =========================================
   VIDEO MODAL
   ========================================= */

.vf-video-modal {
  max-width: 1024px;
  width: 100%;
  position: relative;
  animation: vf-modal-appear 0.2s ease-out;
}

.vf-video-modal video {
  width: 100%;
  border-radius: 8px;
  display: block;
  background: black;
}

.vf-video-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  font-size: 36px;
  color: white;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: opacity 0.2s;
}

.vf-video-close:hover {
  opacity: 0.7;
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */

@media (max-width: 480px) {
  .vf-modal {
    padding: 24px;
    margin: 8px;
  }

  .vf-modal-title {
    font-size: 20px;
  }

  .vf-input {
    padding: 12px 14px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  .vf-submit-btn {
    padding: 12px;
  }

  .vf-video-close {
    top: -40px;
    font-size: 28px;
  }
}
