/* Virtual Chat Interface Styles */

.virtual-chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.agent-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.agent-details h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.status {
    font-size: 12px;
    opacity: 0.9;
}

.status.online::before {
    content: "●";
    color: #4CAF50;
    margin-right: 5px;
}

.chat-actions .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-actions .btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages Area */
.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.message-avatar.bot {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message-avatar.user {
    background: #e3f2fd;
    color: #1976d2;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.message-content.bot {
    background: white;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 5px;
    color: #333333;
}

.message-content.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 5px;
}

/* Quick Replies */
.quick-replies {
    padding: 10px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.quick-reply-btn {
    display: inline-block;
    margin: 5px 5px 5px 0;
    padding: 8px 16px;
    background: white;
    border: 1px solid #667eea;
    color: #667eea;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.quick-reply-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Chat Input */
.chat-input-area {
    background: white;
    border-top: 1px solid #e0e0e0;
}

.chat-input-container {
    display: flex;
    padding: 15px 20px;
    gap: 10px;
    align-items: center;
}

#chat-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

#chat-input:focus {
    border-color: #667eea;
}

#chat-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.btn-send {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-send:hover:not(:disabled) {
    transform: scale(1.05);
}

.btn-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Typing Indicator */
.typing-indicator {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

.typing-text {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Quote Summary Panel */
.quote-summary-panel {
    margin-top: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.summary-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-header h3 {
    margin: 0;
    font-size: 20px;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.summary-content {
    padding: 25px;
    color: #333333;
}

.summary-content h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.service-info, .features-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #333333;
}

.price-breakdown {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    color: #333333;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
    color: #333333;
}

.price-item.total {
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 18px;
    color: #4CAF50;
}

.payment-options-summary {
    margin-bottom: 25px;
}

.payment-option {
    margin-bottom: 10px;
}

.payment-option label {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.payment-option label:hover {
    background: #e3f2fd;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
}

.summary-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Payment Modal */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.modal-body {
    padding: 25px;
    color: #333333;
}

.modal-body h4 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.modal-body p,
.modal-body div,
.modal-body span,
.modal-body strong {
    color: #333333;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.payment-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    color: #333333;
}

.payment-summary h4 {
    color: #333333;
    margin-bottom: 15px;
    font-weight: 600;
}

.payment-details {
    color: #333333;
}

.payment-details p,
.payment-details div {
    color: #333333;
}

#paypal-button-container {
    margin-top: 20px;
    text-align: center;
}

/* Form Actions */
.form-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.form-actions .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.form-actions .btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .virtual-chat-container {
        margin: 0 10px;
        border-radius: 10px;
    }
    
    .chat-messages {
        height: 300px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Selection Cards in Chat */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.service-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card.selected {
    border-color: #667eea;
    background: #f3f4ff;
}

.service-card i {
    font-size: 30px;
    color: #667eea;
    margin-bottom: 10px;
}

.service-card h5 {
    margin: 10px 0 5px 0;
    color: #333;
    font-size: 16px;
}

.service-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.service-card .price {
    font-weight: bold;
    color: #4CAF50;
    margin-top: 8px;
    font-size: 14px;
}

/* Feature Selection in Chat */
.feature-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.feature-option {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-option:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.feature-option.selected {
    border-color: #667eea;
    background: #f3f4ff;
}

.feature-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.feature-option input[type="checkbox"] {
    margin-right: 10px;
}

.feature-option .feature-price {
    margin-left: auto;
    font-weight: bold;
    color: #4CAF50;
}