:root {
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #F0FDFA;
    --error: #EF4444;
    --bg-dark: #0F172A;
    --bg-app: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-app);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* 🟢 Transitions & Overlays */
.landing-page,
.full-screen {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.landing-page {
    background: radial-gradient(circle at top right, #1E293B, #0F172A);
    text-align: center;
    color: white;
    padding: 20px;
}

.landing-logo {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 24px;
    animation: breathe 4s infinite;
}

.landing-page h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    margin-bottom: 12px;
}

.full-screen {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    color: white;
}

.card {
    background: white;
    color: var(--text-main);
    padding: 32px;
    border-radius: 24px;
    width: 95%;
    max-width: 420px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
}

.wide-card {
    max-width: 800px;
    width: 95%;
    padding: 24px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Checklist Grid */
.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.symptom-item {
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.symptom-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.symptom-item span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.symptom-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-4px);
}

.grid-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn.outline {
    background: transparent;
    border: 2px solid #E2E8F0;
    color: var(--text-muted);
}

.btn.outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Form Controls */
.card-header {
    margin-bottom: 24px;
}

.card-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.phone-input {
    display: flex;
    align-items: center;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
}

.phone-input span {
    padding: 12px 14px;
    background: #F1F5F9;
    color: var(--text-muted);
    font-weight: 700;
}

.phone-input input {
    border: none;
    padding: 12px;
    width: 100%;
    outline: none;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-grid .full {
    grid-column: span 2;
}

input,
select {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    outline: none;
}

.location-box {
    display: flex;
    align-items: center;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 4px 14px;
}

.location-box input {
    border: none;
    flex: 1;
}

.location-box button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.4rem;
}

.btn {
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.btn.primary {
    background: var(--primary);
    color: white;
}

.btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn.full {
    width: 100%;
    margin-top: 15px;
}

.start-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
}

/* Main App */
.app-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: white;
}

.main-header {
    padding: 12px 24px;
    border-bottom: 1px solid #E2E8F0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.brand-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.nav-icon {
    background: none;
    border: 1px solid #E2E8F0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.lang-selector {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
}

/* Chat */
.chat-outer {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: #F8FAFC;
    position: relative;
}

.side-panel {
    width: 320px;
    background: white;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.message.user {
    align-self: flex-end;
    align-items: flex-end;
}

.message-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.55;
    background: white;
    border: 1px solid #F1F5F9;
}

.message.user .message-bubble {
    background: var(--primary);
    color: white;
    border: none;
}

/* Voice */
.voice-indicator {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 24px;
    border-radius: 50px;
    display: flex;
    gap: 12px;
    z-index: 100;
    font-weight: 700;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pulse {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
}

.voice-btn {
    background: #F1F5F9;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Emergency */
.emergency-banner {
    background: #FEF2F2;
    padding: 16px 24px;
    border-bottom: 3px solid var(--error);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-content i {
    color: var(--error);
    font-size: 2.8rem;
}

/* Input */
.input-container {
    padding: 20px 24px;
    border-top: 1px solid #E2E8F0;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F1F5F9;
    padding: 10px 18px;
    border-radius: 16px;
}

#userInput {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
}

.send-button {
    background: var(--primary);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #E2E8F0;
    font-size: 0.72rem;
    color: var(--text-muted);
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(13, 148, 136, 0);
    }

    100% {
        transform: scale(0.9);
    }
}

@media (max-width: 600px) {
    .symptom-grid {
        grid-template-columns: 1fr 1fr;
    }
}