/* Custom Styles for CertPath Canada */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Form error states */
input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
    border-color: #DC2626;
}

input:valid:not(:placeholder-shown) {
    border-color: #10B981;
}

/* Custom focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 2px solid #38BDF8;
    outline-offset: 2px;
}

/* Form validation error messages */
.error-message {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

/* Cookie consent animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cookieConsent:not(.hidden) {
    animation: slideUp 0.5s ease-out;
}

/* Hover effects for cards */
.hover\:shadow-xl {
    transition: box-shadow 0.3s ease;
}

/* Responsive image scaling */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    header, footer, #cookieConsent {
        display: none;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    button {
        border: 2px solid currentColor;
    }
}