/* ========================================
   Emve Contact Page & Chat Widget Styles
   ======================================== */

/* Contact Page Wrapper */
.emve-contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.emve-contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.emve-contact-header h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    font-weight: 700;
}

.emve-contact-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* Contact Grid */
.emve-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Contact Cards */
.emve-contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.emve-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.emve-card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.emve-contact-card h3 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    font-weight: 600;
}

.emve-contact-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Phone Link */
.emve-phone-link {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e91e63;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.emve-phone-link:hover {
    color: #c2185b;
}

.emve-schedule {
    font-size: 0.85rem !important;
    color: #888 !important;
}

/* Social Links */
.emve-social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.emve-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emve-social-btn:hover {
    transform: scale(1.02);
}

.emve-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
    color: #fff !important;
}

.emve-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff !important;
}

/* Chat Card */
.emve-chat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.emve-chat-card h3,
.emve-chat-card p {
    color: #fff;
}

.emve-open-chat-btn {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emve-open-chat-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Form Section */
.emve-form-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.emve-form-section h2 {
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

/* ========================================
   Floating Chat Button
   ======================================== */
#emve-chat-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    z-index: 9998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#emve-chat-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

#emve-chat-floating-btn .emve-chat-icon {
    font-size: 1.8rem;
}

#emve-chat-floating-btn .emve-chat-close {
    display: none;
    font-size: 1.5rem;
    color: #fff;
}

#emve-chat-floating-btn.emve-chat-open .emve-chat-icon {
    display: none;
}

#emve-chat-floating-btn.emve-chat-open .emve-chat-close {
    display: block;
}

/* ========================================
   Chat Widget - FULLSCREEN
   ======================================== */
#emve-chat-widget {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#emve-chat-widget.emve-chat-hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

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

.emve-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.emve-chat-header-info strong {
    display: block;
    font-size: 1rem;
}

.emve-chat-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.emve-chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
}

.emve-chat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Chat Screens */
.emve-chat-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.emve-chat-screen.emve-chat-hidden {
    display: none !important;
}

/* Email Verification Screen */
#emve-chat-verify {
    padding: 30px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

/* OTP Verification Screen */
#emve-chat-otp {
    padding: 30px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.emve-verify-content {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.emve-verify-icon {
    font-size: 4rem;
    margin-bottom: 25px;
}

.emve-verify-content h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.emve-verify-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

#emve-verify-email {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 15px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#emve-verify-email:focus {
    outline: none;
    border-color: #667eea;
}

#emve-verify-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#emve-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

#emve-verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.emve-error-msg {
    color: #e91e63;
    font-size: 0.9rem;
    margin-top: 15px;
    min-height: 24px;
}

/* OTP Input */
#emve-otp-input {
    width: 100%;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 10px;
    margin-bottom: 15px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#emve-otp-input:focus {
    outline: none;
    border-color: #667eea;
}

#emve-otp-input::placeholder {
    letter-spacing: 5px;
    font-size: 1.5rem;
    color: #ccc;
}

/* OTP Verify Button */
#emve-otp-verify-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#emve-otp-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

#emve-otp-verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Link Button (Resend) */
.emve-link-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 20px;
    padding: 10px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.emve-link-btn:hover {
    color: #764ba2;
}

.emve-link-btn:disabled {
    color: #999;
    cursor: not-allowed;
}

/* Chat Messages Area */
.emve-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.emve-chat-welcome {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: 0 auto;
}

.emve-chat-welcome p {
    margin: 0 0 12px;
    color: #1a1a2e;
    font-size: 1.05rem;
    line-height: 1.5;
}

.emve-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.emve-quick-actions button {
    padding: 15px 12px;
    background: #f0f0ff;
    border: 2px solid #e0e0ff;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #667eea;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    font-weight: 500;
}

.emve-quick-actions button:hover {
    background: #e0e0ff;
    border-color: #667eea;
    transform: translateY(-2px);
}

.emve-quick-actions button:active {
    transform: translateY(0);
}

/* Chat Messages */
.emve-chat-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.emve-chat-message.emve-user {
    align-items: flex-end;
}

.emve-chat-message.emve-bot {
    align-items: stretch;
}

.emve-message-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.emve-user .emve-message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
    max-width: 80%;
}

.emve-bot .emve-message-bubble {
    background: #fff;
    color: #1a1a2e;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
}

/* Inline Quick Actions (inside bot messages) */
.emve-inline-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.emve-inline-actions button {
    padding: 10px 12px;
    font-size: 0.85rem;
}

.emve-bot .emve-message-bubble a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.emve-bot .emve-message-bubble a:hover {
    text-decoration: underline;
}

.emve-bot .emve-message-bubble strong {
    color: #1a1a2e;
}

.emve-bot .emve-message-bubble code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Chat Input Area */
.emve-chat-input-area {
    padding: 15px 20px;
    padding-bottom: max(15px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

#emve-chat-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

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

.emve-chat-input-area button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.emve-chat-input-area button:hover {
    transform: scale(1.1);
}

/* Typing Indicator */
.emve-typing {
    display: flex;
    gap: 5px;
    padding: 15px;
}

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

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

@keyframes emve-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Chat Trigger Button (Shortcode) */
.emve-chat-trigger-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emve-chat-trigger-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .emve-contact-header h1 {
        font-size: 1.8rem;
    }
    
    .emve-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .emve-form-section {
        padding: 25px 20px;
    }
    
    #emve-chat-floating-btn {
        right: 15px;
        bottom: 15px;
        width: 55px;
        height: 55px;
    }
    
    .emve-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .emve-chat-header {
        padding: 15px 20px;
    }
    
    .emve-verify-content {
        padding: 0 10px;
    }
}

/* Scrollbar Styling */
.emve-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.emve-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.emve-chat-messages::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.emve-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}
