* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #f5f5f5;
}

/* Chat Icon Styles */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #b6862c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-icon i {
    color: white;
    font-size: 24px;
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 480px;
    display: none;
    z-index: 999;
}

.chat-widget.active {
    display: block;
}

/* Chat Container Styles */
.chat-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    min-width: 480px;
}

.chat-header {
    background: #b6862c;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.chat-header h1 {
    margin-bottom: 5px;
    font-size: 24px;
}

.minimize-button {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
}

.clear-chat-button {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    margin-left: 10px;
}

.clear-chat-button:hover {
    color: #ff5252;
}

.chat-messages {
    padding: 20px;
    height: 450px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 80%;
}

.user-message {
    background: #e6c98a;
    margin-left: auto;
    color: #8c691f;
}

.bot-message {
    background: #F5F5F5;
    margin-right: auto;
    color: #333;
}

.chat-input {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.chat-input button {
    padding: 10px 20px;
    background: #b6862c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input button:hover {
    background: #8c691f;
}

/* Comparison Container Styles */
.comparison-container {
    display: none;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.comparison-container.active {
    display: block;
}

.comparison-header {
    background: #b6862c;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comparison-header button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.comparison-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

/* Form Container Styles */
.form-container {
    display: none;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-container.active {
    display: block;
}

.form-header {
    background: #b6862c;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

#contact-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

#contact-form textarea {
    height: 100px;
    resize: vertical;
}

#contact-form button {
    padding: 10px 20px;
    background: #b6862c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#contact-form button:hover {
    background: #8c691f;
}

/* Vehicle Card Styles */
.vehicle-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.vehicle-card h3 {
    margin-bottom: 10px;
    color: #8c691f;
}

.vehicle-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.vehicle-details p {
    margin: 5px 0;
}

/* Comparison Section Styles */
.comparison-section {
    margin-bottom: 20px;
}

.comparison-section h3 {
    color: #8c691f;
    margin-bottom: 10px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.comparison-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

.comparison-item h4 {
    color: #8c691f;
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 520px) {
    .chat-widget {
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .chat-container {
        min-width: unset;
    }
    
    .chat-icon {
        right: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #F5F5F5;
    color: #333;
    border-radius: 10px;
    padding: 10px 15px;
    max-width: 80%;
    margin-bottom: 15px;
    margin-right: auto;
    font-size: 18px;
    min-height: 28px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #b6862c;
    border-radius: 50%;
    display: inline-block;
    animation: typing-bounce 1.2s infinite both;
}

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

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.7;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}
