/* AI Modal Styling */
.ai-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.ai-modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-modal-overlay.active .ai-modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #ff4757;
    color: white;
}

/* Two Column Layout */
.ai-modal-visual {
    flex: 1;
    background: #f0f2f5;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ai-modal-details {
    flex: 1.2;
    padding: 50px 40px;
    overflow-y: auto;
    max-height: 90vh;
}

/* Visual Side: Phone Simulation */
.phone-mockup {
    width: 280px;
    height: 550px;
    background: #fff;
    border-radius: 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 8px solid #222;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-header {
    background: #222f3e;
    color: white;
    padding: 20px 15px;
    text-align: center;
    font-size: 0.9rem;
}

.phone-screen {
    flex: 1;
    background: #f8f9fa;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Chat Bubbles Animation */
.bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 85%;
    opacity: 0;
    transform: translateY(10px);
    animation: messagePop 0.5s forwards;
}

.bubble.ai {
    background: #e3f2fd;
    color: #1565c0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.bubble.user {
    background: #222f3e;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

@keyframes messagePop {
    to { opacity: 1; transform: translateY(0); }
}

/* Delays for the "Video" feel */
.bubble:nth-child(1) { animation-delay: 0.5s; } /* AI */
.bubble:nth-child(2) { animation-delay: 2.0s; } /* User */
.bubble:nth-child(3) { animation-delay: 3.5s; } /* AI */
.bubble:nth-child(4) { animation-delay: 5.5s; } /* User */
.bubble:nth-child(5) { animation-delay: 7.0s; } /* AI */

/* Details Side Text */
.ai-modal-details h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 10px;
}

.ai-tagline {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(184, 115, 51, 0.1);
    color: #b87333;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.feature-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.ai-cta-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 30px;
    background: #b87333;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.ai-cta-btn:hover {
    background: #a0632b;
}

/* Trigger Icon Styles (for the pricing card) */
.info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #ff4757; /* Bright red/orange to make it stand out */
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.2s;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.info-trigger:hover {
    background: #b87333;
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 800px) {
    .ai-modal-content {
        flex-direction: column;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .ai-modal-visual {
        display: none; /* Hide phone visual on mobile to save space */
    }
    
    .ai-modal-details {
        padding: 30px 20px;
    }
}
