:root {
    --primary: #111;
    --primary-hover: #333;
    --secondary: #e8f0ff;
    --text: #1a1a1a;
    --text-light: #555;
    --border: #e5e5e5;
    --bg: #fafafa;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
}

input, textarea, button {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 16px;
    opacity: 0.95;
}

.hero-description {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.triage-section {
    padding: 60px 0;
}

.triage-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.chat-container {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.chat-row {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.chat-message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.chat-message.user {
    margin-left: auto;
    background: var(--secondary);
    color: var(--text);
}

.chat-message.bot {
    background: #f3f3f3;
    color: var(--text);
}

.input-group {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.input-group input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn, .cta-button {
    border: 0;
    border-radius: 10px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.btn:hover, .cta-button:hover {
    background: var(--primary-hover);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.note {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 12px;
    text-align: center;
}

.note a {
    color: var(--text-light);
}

.cta-section {
    text-align: center;
    margin-top: 32px;
}

.features {
    padding: 80px 0;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.services-content,
.faq-content,
.coverage-content,
.about-content {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.service-item,
.faq-item,
.about-section {
    margin-bottom: 48px;
}

.service-item h2,
.faq-item h2,
.about-section h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--primary);
}

.service-item ul,
.faq-item ul,
.about-section ul,
.about-section ol {
    margin-left: 24px;
    margin-top: 12px;
}

.service-item li,
.faq-item li,
.about-section li {
    margin-bottom: 8px;
}

.cta-box {
    background: var(--secondary);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 48px;
}

.cta-box h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.cta-box p {
    margin-bottom: 24px;
    font-size: 18px;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.coverage-item {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.coverage-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary);
}

.coverage-item p {
    color: var(--text-light);
    margin-bottom: 12px;
}

.coverage-item ul {
    list-style: none;
    margin: 0;
}

.coverage-item li {
    padding: 4px 0;
    font-size: 14px;
}

.coverage-item li::before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
}

.coverage-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.coverage-note h3 {
    margin-bottom: 12px;
}

.service-types {
    margin-top: 48px;
}

.service-types h2 {
    text-align: center;
    margin-bottom: 32px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.service-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.benefit-item {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.benefit-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.intro-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 32px;
    color: var(--text-light);
}

.footer {
    background: var(--primary);
    color: var(--white);
    padding: 48px 0 24px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
}

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

.footer-section li {
    margin-bottom: 8px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 24px;
    text-align: center;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 12px;
        font-size: 14px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .coverage-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 16px;
    }
    
    .input-group input {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-menu a {
        font-size: 13px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .btn, .cta-button {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .card {
        padding: 12px;
        border-radius: 12px;
    }
    
    .chat-message {
        max-width: 90%;
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .input-group {
        gap: 6px;
    }
    
    .input-group input {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .legal-section h3 {
        font-size: 18px;
    }
}

/* Legal Pages */
.legal-content {
    background: var(--white);
    padding: 60px 0;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.legal-section h3 {
    color: var(--primary);
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.legal-section p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text);
}

.legal-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text);
}

.legal-section strong {
    color: var(--primary);
    font-weight: 600;
}

.legal-section a {
    color: #667eea;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}
