/* Custom styles for EduBridge Canada */

/* Use Inter font family */
.font-inter {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

/* Remove default focus outline and add custom one */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Custom smooth transitions */
a, button {
  transition: all 0.2s ease-in-out;
}

/* Ensure body takes full height */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* FAQ Icon rotation */
.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

/* Form input focus states */
input:focus,
select:focus,
textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Error message styling */
.error-message {
  display: none;
}

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

/* Input error state */
input.error,
select.error {
  border-color: #dc2626;
}

input.error:focus,
select.error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Smooth fade-in animation for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  animation: fadeIn 0.3s ease-in-out;
}

/* Hover effects for cards */
.hover\:shadow-lg {
  transition: box-shadow 0.2s ease-in-out;
}

/* Gradient overlay for hero */
.bg-gradient-to-br {
  position: relative;
}

/* Prose styling for content pages */
.prose {
  color: #374151;
  max-width: 65ch;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose h2 {
  margin-top: 2em;
  margin-bottom: 1em;
}

/* Loading state for form submission */
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Checkbox custom styling */
input[type="checkbox"] {
  cursor: pointer;
  accent-color: #3b82f6;
}

/* Select dropdown styling */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print styles */
@media print {
  header, footer, #cookie-banner {
    display: none;
  }
}