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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #ededed;
    min-height: 100vh;
}

.header {
    width: 100%;
    background: #fff;
    margin-bottom: 20px;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

.consultation-container {
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
    margin-bottom: 80px;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.message {
    max-width: 80%;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    position: relative;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 3px;
    flex-shrink: 0;
    object-fit: cover;
}

.message-content {
    flex: 1;
    position: relative;
}

.message-header {
    margin-bottom: 4px;
    font-size: 13px;
    color: #999;
}

.system, .question {
    background: transparent;
    color: #333;
}

.system p, .question p {
    background: #f0f7ff;
    padding: 12px;
    border-radius: 3px;
    position: relative;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.4;
}

.system p::before,
.question p::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 8px 6px 0;
    border-color: transparent #f0f7ff transparent transparent;
}

.answer {
    background: transparent;
    margin-left: auto;
    flex-direction: row-reverse;
}

.answer .message-content p {
    background: #95ec69;
    padding: 12px;
    border-radius: 3px;
    color: #333;
    float: right;
    font-size: 16px;
    line-height: 1.4;
    position: relative;
}

.answer .message-content p::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #95ec69;
}

.options {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    margin-left: -52px;
    padding: 0 8px;
}

.option-btn {
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    color: #333;
}

.option-btn:hover {
    background-color: #f8f8f8;
    opacity: 0.9;
}

.typing-indicator {
    display: flex;
    padding: 16px;
    background: #fff;
    border-radius: 3px;
    width: fit-content;
    margin-left: 52px;
    margin-top: 20px;
}

.dots {
    display: flex;
    gap: 4px;
}

.dots span {
    width: 8px;
    height: 8px;
    background: #adb5bd;
    border-radius: 50%;
    animation: bounce 0.8s infinite;
}

.dots span:nth-child(2) { animation-delay: -0.15s; }
.dots span:nth-child(3) { animation-delay: -0.3s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.contact-button {
    position: sticky;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(to top, #f5f5f5, transparent);
}

.contact-btn {
    width: 100%;
    padding: 24px;
    background: #07c160;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
text-align: center;}

.contact-btn:hover {
    background: #06ae56;
    transform: scale(1.02);
}

.contact-btn:active {
    transform: scale(0.98);
}

.hidden {
    display: none;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px;
    text-align: center;
    border-top: 1px solid #e6e6e6;
    z-index: 100;
}

.footer-content {
    font-size: 12px;
    color: #999;
    line-height: 1.2;
    opacity: 0.8;
} 