/*
   Custom AI Chatbot Styles
   Interlink Collaborations
*/

/* Chatbot Modal */
#chatbot-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Chatbot Container */
.chatbot-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    height: 80vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

#chatbot-modal.active .chatbot-container {
    transform: scale(1) translateY(0);
}

/* Chatbot Header */
.chatbot-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 1.75rem 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-radius: 20px 20px 0 0;
}

.chatbot-header-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    padding-right: 1rem;
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.chatbot-header-text {
    flex: 1;
    padding-top: 2px;
}

.chatbot-header-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
}

.chatbot-header-text p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.85;
    font-weight: 400;
    line-height: 1.5;
    max-width: 90%;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

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

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Message Bubbles */
.chatbot-message {
    display: flex;
    margin-bottom: 0.5rem;
    animation: messageSlideIn 0.3s ease;
}

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

.message-content {
    padding: 0.875rem 1.125rem;
    border-radius: 16px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.5;
}

.bot-message .message-content {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

/* Quick Reply Buttons */
.chatbot-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.chatbot-quick-reply {
    background: white;
    border: 2px solid #f97316;
    color: #f97316;
    padding: 0.625rem 1.125rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
}

.chatbot-quick-reply:hover {
    background: #f97316;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.chatbot-quick-reply:active {
    transform: translateY(0);
}

/* Input Area */
.chatbot-input-area {
    padding: 1.25rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chatbot-input-wrapper {
    flex: 1;
    position: relative;
}

#chatbot-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.2s ease;
    outline: none;
}

#chatbot-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

#chatbot-send {
    background: linear-gradient(135deg, #f97316, #fb923c);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#chatbot-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

#chatbot-send:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .chatbot-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .chatbot-header {
        border-radius: 0;
    }

    .message-content {
        max-width: 85%;
    }
}

/* Typing Indicator (optional enhancement) */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.875rem 1.125rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

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

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

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

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}



/* ============================= */
/* Email Capture Modal Styles    */
/* ============================= */

.email-capture-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.email-capture-modal.active {
    opacity: 1;
    visibility: visible;
}

.email-capture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.email-capture-container {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 460px;
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.email-capture-modal.active .email-capture-container {
    transform: scale(1) translateY(0);
}

.email-capture-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    color: #555;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-size: 1rem;
}

.email-capture-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #222;
}

.email-capture-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-capture-icon i {
    font-size: 1.8rem;
    color: #38bdf8;
}

.email-capture-body h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
}

.email-capture-desc {
    margin: 0 0 20px;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.55;
}

.email-capture-desc strong {
    color: #1a1a2e;
}

.email-capture-field {
    margin-bottom: 18px;
    text-align: left;
}

.email-capture-field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: #1a1a2e;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.email-capture-field input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    background: #fff;
}

.email-capture-field input.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.email-capture-error {
    display: block;
    margin-top: 6px;
    color: #ef4444;
    font-size: 0.82rem;
    min-height: 1.2em;
}

.email-capture-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    width: 100%;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.email-capture-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.email-capture-privacy {
    margin: 16px 0 0;
    color: #999;
    font-size: 0.78rem;
    line-height: 1.4;
}

.email-capture-privacy i {
    margin-right: 4px;
    color: #38bdf8;
}

/* Responsive adjustments for email capture modal */
@media (max-width: 600px) {
    .email-capture-container {
        width: 94%;
        padding: 32px 20px 24px;
        border-radius: 14px;
    }

    .email-capture-body h3 {
        font-size: 1.1rem;
    }

    .email-capture-desc {
        font-size: 0.85rem;
    }
}

/* ===================== */
/* Booking Modal Styles  */
/* ===================== */

.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.booking-modal.active {
    opacity: 1;
    visibility: visible;
}

.booking-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.booking-modal-container {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.booking-modal.active .booking-modal-container {
    transform: scale(1) translateY(0);
}

.booking-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    color: #555;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-size: 1rem;
}

.booking-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #222;
}

.booking-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-modal-icon i {
    font-size: 1.8rem;
    color: #f5a623;
}

.booking-modal-body h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
}

.booking-modal-desc {
    margin: 0 0 24px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.booking-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
}

.booking-modal-btn i {
    font-size: 0.85rem;
}

.booking-modal-note {
    margin: 16px 0 0;
    color: #999;
    font-size: 0.8rem;
}

/* Responsive adjustments for booking modal */
@media (max-width: 600px) {
    .booking-modal-container {
        width: 94%;
        padding: 32px 20px 24px;
        border-radius: 14px;
    }

    .booking-modal-body h3 {
        font-size: 1.15rem;
    }

    .booking-modal-desc {
        font-size: 0.9rem;
    }
}