/* BizVcard Landing Page - Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
  background-color: #3B82F6;
  color: white;
}

/* Type selector styling */
.type-option {
  border-color: #e5e7eb;
  transition: all 0.2s ease;
}

.type-option:hover {
  border-color: #3B82F6;
}

.type-option.selected {
  border-color: #1E40AF;
  background-color: #eff6ff;
}

.type-option.selected svg {
  color: #1E40AF;
}

.type-option .check-indicator {
  border-color: #d1d5db;
  transition: all 0.2s ease;
}

.type-option.selected .check-indicator {
  border-color: #1E40AF;
  background-color: #1E40AF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Form input focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Legal content styling */
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.legal-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.legal-content a {
  color: #1E40AF;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Pulse animation for beta badge */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Loading spinner animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Transition for conditional fields */
#company-field,
#sector-field {
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

#company-field.hidden,
#sector-field.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Button states */
button:disabled {
  cursor: not-allowed;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

/* Mobile improvements */
@media (max-width: 640px) {
  .legal-content h2 {
    font-size: 1.125rem;
  }

  .type-option {
    padding: 0.75rem;
  }

  .type-option svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .no-print {
    display: none !important;
  }

  body {
    background: white;
  }

  .legal-content {
    max-width: 100%;
  }
}
