@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

div.calendly-overlay .calendly-popup {
  top: 0 !important;
  transform: translate(-50%, 0%) !important;
  max-height: 100vh !important;
  height: 100vh !important;
}

/* Accessibility styles for WCAG compliance */

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

/* Focus indicators */
.focus\:outline-none:focus {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-400 {
        color: #ffffff !important;
    }
    .text-gray-500 {
        color: #e5e7eb !important;
    }
    .border-gray-700 {
        border-color: #ffffff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-bounce {
        animation: none !important;
    }
    
    .pulse-animation {
        animation: none !important;
    }
}

/* Focus visible for keyboard navigation */
.focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Better focus indicators for interactive elements */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Improved color contrast for better readability */
.text-gray-400 {
    color: #d1d5db;
}

.text-gray-500 {
    color: #9ca3af;
}

/* Skip link styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #4ade80;
    color: #000000;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Form validation styles */
input:invalid,
textarea:invalid {
    border-color: #ef4444;
}

input:invalid:focus,
textarea:invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Error message styles */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success message styles */
.success-message {
    color: #4ade80;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Better button states */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Improved link underlines for better visibility */
a:not(.no-underline):hover {
    text-decoration: underline;
}

/* Better table styles for screen readers */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #374151;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #1f2937;
    font-weight: bold;
}

/* List improvements */
ul, ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Better heading hierarchy visual indicators */
h1 {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Improved spacing for better readability */
p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Better mobile touch targets */
button, a {
    min-height: 44px;
    min-width: 44px;
}

/* Improved form field spacing */
input, textarea, select {
    padding: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Better contrast for placeholder text */
::placeholder {
    color: #6b7280;
    opacity: 1;
}

/* Focus ring for all interactive elements */
*:focus {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Remove focus outline for mouse users but keep for keyboard */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Ensure sufficient color contrast */
.text-green-400 {
    color: #4ade80;
}

.text-green-500 {
    color: #22c55e;
}

.bg-green-500 {
    background-color: #16a34a;
}

.border-green-400 {
    border-color: #4ade80;
}

/* High contrast button text */
.bg-green-500 {
    background-color: #16a34a;
}

.bg-green-500.text-white {
    color: #000000 !important;
    font-weight: 700;
}

/* Better contrast for footer links */
footer a {
    color: #e5e7eb;
}

footer a:hover {
    color: #ffffff;
}

/* Better contrast for copyright text */
footer p {
    color: #d1d5db;
}

/* High contrast for important buttons */
.btn-primary,
button[type="submit"],
a.bg-green-500 {
    background-color: #16a34a !important;
    color: #000000 !important;
    font-weight: 700;
}

.btn-primary:hover,
button[type="submit"]:hover,
a.bg-green-500:hover {
    background-color: #15803d !important;
    color: #000000 !important;
}

/* Better contrast for labels */
.text-center.font-bold.bg-green-500 {
    background-color: #16a34a !important;
    color: #000000 !important;
    font-weight: 700;
}

/* Better error and success states */
.has-error {
    border-color: #ef4444;
}

.has-success {
    border-color: #22c55e;
}

/* Improved navigation accessibility */
nav a {
    position: relative;
}

nav a:hover::after,
nav a:focus::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4ade80;
}

/* Better mobile menu accessibility */
.mobile-menu-link {
    display: block;
    padding: 1rem;
    text-decoration: none;
}

.mobile-menu-link:focus {
    background-color: rgba(74, 222, 128, 0.1);
    border-radius: 8px;
}

/* Improved button states */
.btn-primary {
    background-color: #22c55e;
    color: #000000;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #16a34a;
    transform: translateY(-1px);
}

.btn-primary:focus {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Better form layout */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #d1d5db;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #374151;
    border-radius: 4px;
    background-color: #1f2937;
    color: #ffffff;
    font-size: 16px;
}

.form-input:focus {
    border-color: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

/* Improved card accessibility */
.card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #4ade80;
    transform: translateY(-2px);
}

.card:focus-within {
    border-color: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

/* Better image accessibility */
img {
    max-width: 100%;
    height: auto;
}

/* Improved link accessibility */
a {
    color: #4ade80;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #22c55e;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Better list accessibility */
.list-disc {
    list-style-type: disc;
}

.list-disc li::marker {
    color: #4ade80;
}

/* Improved spacing for better readability */
.section-padding {
    padding: 4rem 0;
}

.container-padding {
    padding: 0 1rem;
}

/* Better responsive design */
@media (max-width: 768px) {
    .section-padding {
        padding: 2rem 0;
    }
    
    .container-padding {
        padding: 0 0.5rem;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
    .bg-black {
        background-color: #000000 !important;
    }
    
    .text-white {
        color: #ffffff !important;
    }
    
    .border {
        border-width: 2px !important;
    }
}

/* Print styles for better accessibility */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
}