* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

.header {
    background-color: #dd2222;
    color: white;
    padding: 20px;
    text-align: center;
}

.warning {
    font-size: 16px;
    margin-bottom: 20px;
}

.headline {
    font-size: 28px;
    font-weight: bold;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.3;
}

.status {
    font-size: 14px;
}

.status-dot {
    height: 8px;
    width: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.chat-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-out;
}

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

.avatar {
    width: 40px;
    height: 40px;
    background-color: #f3f4f6;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.headset-icon {
    width: 100%;
    height: 100%;
    color: #666666;
}

.message-bubble {
    background-color: #f3f4f6;
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 80%;
}

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

.user-message .message-bubble {
    background-color: #dd2222;
    color: white;
    margin-left: auto;
}

.buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin: 10px 0 20px 50px;
    animation: fadeIn 0.5s ease-out;
}

.btn {
    padding: 8px 24px;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-yes {
    background-color: #dd2222;
    color: white;
}

.btn-no {
    background-color: #4b5563;
    color: white;
}

/* Enhanced Qualification Panel Styles */
.qualification-panel {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
    animation: fadeIn 0.5s ease-out;
    width: 100%;
    max-width: none;
}

.qualification-panel h3 {
    color: #15803d;
    font-size: 24px;
    margin-bottom: 15px;
}

.qualification-panel p {
    color: #374151;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Enhanced Form Styles */
.qualification-section {
    max-width: none;
    margin: 2rem 0 0;
    width: 100%;
}

.qualification-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #dd2222;
    box-shadow: 0 0 0 3px rgba(221, 34, 34, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #dd2222;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background-color: #cc1111;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background-color: #ffaaaa;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced Success Message Styles */
.success-message {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    border: 2px solid #bbf7d0;
    width: 100%;
}

.success-message h4 {
    color: #15803d;
    margin-bottom: 1.5rem;
    font-size: 24px;
}

/* Enhanced Call-to-Action Section */
.call-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.call-now-text {
    color: #dd2222;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.phone-number {
    color: #dd2222;
    font-size: 36px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin: 1.5rem 0;
    padding: 1rem;
    border: 2px solid #dd2222;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.phone-number:hover {
    background-color: #dd2222;
    color: white;
    transform: scale(1.02);
}

/* Enhanced Timer Section */
.timer-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #fff3f3;
    border-radius: 8px;
    border: 2px solid #dd2222;
}

.timer-section p {
    color: #333;
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.timer {
    color: #dd2222;
    font-size: 32px;
    font-weight: bold;
    margin-top: 0.5rem;
    font-family: 'Arial', sans-serif;
}

/* Loading States */
.loading-animation {
    text-align: center;
    padding: 30px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #dd2222;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

/* Typing Indicator */
.typing-indicator {
    background-color: #f3f4f6 !important;
    padding: 12px 16px !important;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #90959f;
    border-radius: 50%;
    margin-right: 5px;
    animation: bounce 1.3s linear infinite;
}

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

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

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .chat-container {
        margin: 10px;
        padding: 15px;
    }

    .qualification-panel {
        padding: 20px;
    }

    .qualification-form {
        padding: 1rem;
    }

    .headline {
        font-size: 24px;
    }

    .qualification-panel h3 {
        font-size: 20px;
    }

    .phone-number {
        font-size: 28px;
        padding: 0.8rem;
    }
    
    .timer {
        font-size: 28px;
    }
    
    .call-now-text {
        font-size: 18px;
    }
}



.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.analyzing-text {
    color: #666;
    font-size: 1.2em;
    margin-top: 10px;
}

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