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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}

.chat-header {
    background: #dc2626;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.chat-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    animation: fadeIn 0.3s ease;
}

.message.bot {
    background: #f3f4f6;
    align-self: flex-start;
}

.message.user {
    background: #dc2626;
    color: white;
    align-self: flex-end;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.input-group button {
    padding: 0.75rem 1.5rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.choice-group, .likert-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.choice-btn, .likert-btn {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.choice-btn:hover, .likert-btn:hover {
    background: #f3f4f6;
    border-color: #dc2626;
}

.likert-btn {
    text-align: center;
}

.likert-btn small {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
    align-self: flex-start;
    padding: 0.75rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.completion-message {
    padding: 2rem;
    text-align: center;
}

.download-btn {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.multichoice-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.multichoice-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.multichoice-label:hover {
    background: #f3f4f6;
    border-color: #dc2626;
}

.multichoice-label input[type="checkbox"] {
    cursor: pointer;
}

.submit-multichoice-btn {
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}