/* Professional base styles to complement Tailwind CDN */
:root {
  --brand: #0ea5e9; /* sky-500 */
  --brand-600: #0284c7; /* sky-600 */
  --ring: rgba(2,132,199,0.25);
}

html, body { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji'; }

.container { max-width: 1200px; }

/* Glassy header support */
.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); }

.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #fff; width: 92vw; max-width: 560px; border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  border: 1px solid #e5e7eb;
}

.modal-header { padding: 1rem 1.25rem; border-bottom: 1px solid #e5e7eb; }
.modal-body { padding: 1rem 1.25rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid #e5e7eb; }

.badge { font-size: 0.72rem; padding: 0.2rem 0.5rem; border-radius: 999px; }

/* Elevated cards */
.card {
  border: 1px solid #e5e7eb; border-radius: 1rem; background: #fff;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(2,132,199,0.08); border-color: #e2e8f0; }
.card-body { padding: 1.1rem; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem;
  border-radius: 0.6rem; border: 1px solid #e5e7eb; transition: all 150ms ease;
}
.button:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.button.primary { background: var(--brand); color: #fff; border-color: transparent; }
.button.primary:hover { background: var(--brand-600); }
.button.ghost { background: transparent; border-color: transparent; color: #0f172a; }
.button.ghost:hover { background: #f1f5f9; }

.hidden { display: none; }

/* WhatsApp Floating Button */
.whatsapp-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  border: none;
  text-decoration: none;
}

.whatsapp-button:hover {
  background: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.whatsapp-button:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #333;
}

/* Welcome Form Modal */
.welcome-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.welcome-form {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid #e5e7eb;
  animation: slideIn 0.3s ease-out;
}

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

.welcome-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  text-align: center;
}

.welcome-form p {
  color: #64748b;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.welcome-form .button {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.skip-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.skip-link:hover {
  color: #374151;
}
