:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --background-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    box-shadow: var(--shadow);
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background: var(--background-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    padding: 4rem 5%;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 0.375rem;
    font-size: 1rem;
}

/* Categories Section */
.categories {
    padding: 4rem 5%;
    background: var(--white);
}

.categories h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    padding: 4rem 5%;
    text-align: center;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 5%;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* State Header */
.state-header {
    background: linear-gradient(rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    padding: 3rem 5%;
    text-align: center;
}

.state-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Cities Grid */
.cities-grid {
    padding: 3rem 5%;
}

.cities-grid h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.city-list {
    max-width: 1200px;
    margin: 0 auto;
}

.major-cities {
    margin-bottom: 3rem;
}

.major-cities h3, .all-cities h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.city-list ul {
    list-style: none;
    padding: 0;
}

.city-list li {
    margin-bottom: 0.5rem;
}

.city-list a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.city-list a:hover {
    color: var(--primary-color);
}

.city-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* State Info */
.state-info {
    padding: 3rem 5%;
    background: var(--background-light);
}

.state-info h2 {
    margin-bottom: 1.5rem;
}

.state-info ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.provider-cta {
    margin-top: 2rem;
    text-align: center;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.legal-document {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.legal-document h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.legal-document > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.section {
    margin-bottom: 2rem;
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.important-notice {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.section li {
    margin-bottom: 0.5rem;
}

/* Provider Form Styles */
.submit-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.form-section h1 {
    margin-bottom: 1rem;
}

.form-section p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.provider-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group label::after {
    content: " *";
    color: #dc2626;
}

.form-group label:not([for="email"]):not([for="website"]):not([for="description"]):not([for="services"])::after {
    content: " *";
    color: #dc2626;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

.success-message {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.success-message h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-message p {
    margin-bottom: 2rem;
}

.error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

/* Search Results */
.search-results {
    padding: 3rem 5%;
    background: var(--background-light);
}

.search-results h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.provider-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.provider-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.provider-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.provider-card .category {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.provider-card address {
    font-style: normal;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.provider-card .phone {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.provider-card .phone a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.provider-card .phone a:hover {
    color: var(--primary-color);
}

.provider-card .btn-secondary {
    display: inline-block;
    width: 100%;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .provider-list {
        grid-template-columns: 1fr;
    }
    
    .provider-card {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Move these styles to the bottom of the file, after the @media query */
.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.category-card .btn-secondary {
    margin-bottom: 1rem;
}

.category-card .subcategories {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-card .subcategories a {
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    background: var(--background-light);
    border: 1px solid transparent;
}

.category-card .subcategories a:hover {
    color: var(--primary-color);
    background: var(--background-light);
    transform: translateX(4px);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
} 