/* Chat Widget Button - EXACT COPY FROM LIVE CLOUDFLARE SITE */
#chat-widget-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0078ff;
    color: white;
    border-radius: 50px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 120, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 120, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 120, 255, 0);
    }
}

#chat-widget-button:hover {
    background-color: #0066d6;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    animation: none;
}

#chat-widget-button span {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Modal */
#chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#chat-modal.modal-visible {
    opacity: 1;
    visibility: visible;
}

#chat-modal.modal-hidden {
    opacity: 0;
    visibility: hidden;
}

.chat-modal-content {
    background-color: #fdfdfd;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#chat-modal.modal-visible .chat-modal-content {
    transform: scale(1);
}

.chat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.chat-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.chat-close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.chat-close-button:hover {
    color: #333;
}

/* Chat Intro Styles */
.chat-intro {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.chat-intro-icon {
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 120, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-intro h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 1.4rem;
}

.chat-availability {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    color: #555;
    font-size: 0.9rem;
}

.availability-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.availability-item i {
    color: #0078ff;
}

.chat-intro-message {
    margin-bottom: 0;
    line-height: 1.6;
    color: #555;
    font-size: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.required-mark {
    color: #e74c3c;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0078ff;
    box-shadow: 0 0 0 3px rgba(0, 120, 255, 0.1);
    outline: none;
}

.form-note {
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #777;
}

.chat-submit-btn {
    background-color: #0078ff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chat-submit-btn:hover {
    background-color: #0066d6;
    transform: translateY(-2px);
}

.chat-submit-btn.secondary {
    background-color: #6c757d;
}

.chat-submit-btn.secondary:hover {
    background-color: #5a6268;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success and Error Messages */
#chat-success-message,
#chat-error-message {
    text-align: center;
    padding: 20px;
}

.success-icon,
.error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.success-icon {
    color: #28a745;
}

.error-icon {
    color: #dc3545;
}

#chat-success-message h3,
#chat-error-message h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #333;
}

#chat-success-message p,
#chat-error-message p {
    margin-bottom: 20px;
    color: #555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .chat-modal-content {
        width: 95%;
        padding: 20px 25px;
    }

    #chat-widget-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .chat-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    #chat-modal.modal-visible .chat-modal-content {
        transform: scale(1);
    }
}

/* Make "Let's Chat!" heading blue */
.chat-modal-body h3 {
    color: #0078ff !important;
    margin-bottom: 15px;
}