* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #1e3a8a;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-info {
    text-align: right;
    font-size: 0.9rem;
}

nav {
    background: #1e40af;
    padding: 0.5rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover, nav a.active {
    background: #2563eb;
}

main {
    background: white;
    min-height: 80vh;
    padding: 2rem 0;
}

.hero {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.search-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"], input[type="number"], input[type="email"], textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
}

.search-btn, .btn-primary {
    background: #dc2626;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.search-btn:hover, .btn-primary:hover {
    background: #b91c1c;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.info-card ul {
    padding-left: 1.5rem;
}

.info-card li {
    margin-bottom: 0.5rem;
}

.bail-calculator {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.bail-calculator h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    text-align: center;
}

.faq {
    margin: 3rem 0;
}

.faq h2 {
    color: #1e3a8a;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-question {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    color: #1e3a8a;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #e2e8f0;
}

.faq-answer {
    padding: 1rem;
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-answer a {
    color: #3b82f6;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #60a5fa;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #1e3a8a;
    color: white;
    font-weight: bold;
}

tr:hover {
    background: #f8fafc;
}

/* Button Variants */
.btn-secondary {
    background: #6b7280;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.alert-info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #dc2626;
    color: #991b1b;
}

/* Page-specific styles */
.page-header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Schedule tables */
.schedule-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

.schedule-table th {
    background: #3b82f6;
}

/* Contact form styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Map container */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
        margin-top: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.25rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .bail-calculator > div {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .search-section, .info-card, .bail-calculator {
        padding: 1rem;
    }
    
    nav ul {
        padding: 0 10px;
    }
    
    nav li {
        margin: 0.1rem 0;
    }
    
    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    header, nav, footer, .bail-calculator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .info-card {
        border: 1px solid #ccc;
        box-shadow: none;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
}

/* 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: 0;
}

/* Focus styles for better accessibility */
button:focus, input:focus, select:focus, textarea:focus, a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}