* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.chat-container {
    width: 100%;
    max-width: 500px;
    height: 80vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.chat-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.messages-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    animation: fadeIn 0.3s ease-in;
}

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

.bot-message {
    background: #f1f5f9;
    color: #334155;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 0.8;
}

.bot-message .message-time {
    color: #64748b;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.input-container {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: white;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

textarea {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    padding: 12px 20px;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
    font-size: 1rem;
    min-height: 50px;
    max-height: 100px;
}

textarea:focus {
    border-color: #4facfe;
}

button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

button:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 18px;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: bounce 1.5s infinite;
}

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

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

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

.info-text {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 10px;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.bot-avatar {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    font-size: 0.8rem;
}

.user-avatar {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: white;
    font-size: 0.8rem;
}

.message-with-avatar {
    display: flex;
    align-items: flex-end;
}

.bot-message-with-avatar {
    align-self: flex-start;
}

.user-message-with-avatar {
    align-self: flex-end;
}

.user-message-with-avatar .message-content {
    flex-direction: row-reverse;
}

.user-message-with-avatar .avatar {
    margin-right: 0;
    margin-left: 10px;
}

.message-content {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.category-button {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s;
    text-align: center;
}

.category-button:hover {
    transform: scale(1.05);
}

.service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.service-button {
    background: #e2e8f0;
    color: #334155;
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.service-button:hover {
    background: #cbd5e1;
}

.form-container {
    background: #f8fafc;
    border-radius: 15px;
    padding: 15px;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #334155;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #4facfe;
}

.submit-form {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 12px 20px;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-form:hover {
    transform: scale(1.02);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply {
    background: #e2e8f0;
    color: #334155;
    border: none;
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.quick-reply:hover {
    background: #cbd5e1;
}

.rating-container {
    text-align: center;
    margin: 15px 0;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.star {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star.active {
    color: #ffc107;
}

.payment-button {
    background: linear-gradient(135deg, #ff9a00 0%, #ff6a00 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 12px 20px;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}

.payment-button:hover {
    transform: scale(1.02);
}

/* Audio elements - hidden */
audio {
    display: none;
}#ff0049
