/* Custom Styles for Biotech Surgical Landing Page */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Animations */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Form validation styles */
input:invalid:not(:placeholder-shown),
input.error {
  border-color: hsl(0, 84.2%, 60.2%);
}

input:valid:not(:placeholder-shown) {
  border-color: hsl(160, 84%, 31%);
}

/* Custom checkbox styling */
input[type="checkbox"]:checked {
  accent-color: hsl(160, 84%, 31%);
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid hsl(160, 84%, 31%);
  outline-offset: 2px;
}

/* Loading state for submit button */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

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

/* Error message styling */
.error-message {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.error-message.show {
  display: block !important;
}

/* Success message styling */
.success-banner {
  background-color: hsl(160, 84%, 95%);
  border-left: 4px solid hsl(160, 84%, 31%);
  padding: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .grid-cols-1 {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  header, footer, .no-print {
    display: none;
  }
}
