/* ============================================
   INTERACTIVE DEMOS SECTION
   ============================================ */

/* Demo Section Container */
.demo-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

/* AI Steps - Now horizontal below */
.ai-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 900px;
    margin-top: 20px;
}

/* Demo Tabs */
.demo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: center;
}

.demo-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
}

.demo-tab svg {
    flex-shrink: 0;
}

.demo-tab:hover {
    border-color: #ffff00;
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 0, 0.2);
}

.demo-tab.active {
    background: #ffff00;
    border-color: #ffff00;
    color: #000000;
    box-shadow: 0 4px 16px rgba(255, 255, 0, 0.3);
}

/* Phone Mockup Container */
.phone-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 600px;
}

.phone-mockup {
    position: relative;
    width: 320px;
    height: 650px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 0 0 8px #2a2a2a,
        0 0 60px rgba(255, 255, 0, 0.15),
        0 20px 80px rgba(0, 0, 0, 0.3);
    animation: phone-float 6s ease-in-out infinite;
}

@keyframes phone-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
}

/* Demo Content */
.demo-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.demo-content.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   WHATSAPP INTERFACE
   ============================================ */

.whatsapp-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #e5ddd5;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, .03) 10px, rgba(255, 255, 255, .03) 20px);
}

.wa-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #075e54;
    color: white;
}

.wa-back {
    font-size: 1.5rem;
    cursor: pointer;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    flex-shrink: 0;
}

.wa-info h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.wa-info span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.wa-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-message {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
    animation: message-appear 0.3s ease;
}

@keyframes message-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wa-message.received {
    align-self: flex-start;
    background: #ffffff;
    border-radius: 8px 8px 8px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wa-message.sent {
    align-self: flex-end;
    background: #dcf8c6;
    border-radius: 8px 8px 0 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wa-message.bot {
    align-self: flex-start;
    background: #ffffff;
    border-radius: 8px 8px 8px 0;
}

/* Product Cards in WhatsApp */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.product-info {
    padding: 12px;
}

.product-info h6 {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

.product-info .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #25d366;
    margin: 4px 0;
}

.product-info .description {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 4px 0;
}

.wa-input {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f0f0f0;
    border-top: 1px solid #d1d1d1;
}

.wa-input input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 20px;
    background: #ffffff;
    font-size: 0.85rem;
    outline: none;
}

/* ============================================
   GMAIL INTERFACE
   ============================================ */

.gmail-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
}

.gmail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #c2185b;
    color: white;
}

.gmail-menu,
.gmail-search {
    font-size: 1.2rem;
    cursor: pointer;
}

.gmail-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gmail-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.gmail-compose {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

.gmail-compose h6 {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

.gmail-field {
    margin-bottom: 10px;
}

.gmail-field label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 600;
}

.gmail-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8rem;
}

.gmail-send-btn {
    background: #ffff00;
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 8px;
}

.gmail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.stat-card {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
}

.gmail-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    text-align: center;
}

.gmail-success .checkmark {
    font-size: 2rem;
    color: #22c55e;
    margin-bottom: 8px;
}

.gmail-success p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #166534;
}

/* Service Selection Buttons */
.service-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
}

.service-btn {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.service-btn:hover {
    border-color: #ffff00;
    background: #fffef0;
}

.service-btn.selected {
    background: #ffff00;
    border-color: #ffff00;
    color: #000000;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 8px 0;
}

.time-slot {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover {
    border-color: #ffff00;
    background: #fffef0;
}

.time-slot.selected {
    background: #ffff00;
    border-color: #ffff00;
    color: #000000;
}

/* Confirmation Messages */
.confirmation-message {
    background: #dcfce7;
    border-left: 4px solid #22c55e;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
}

.confirmation-message .icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.confirmation-message p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #166534;
}

/* Loading Animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 8px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #6b7280;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-8px);
    }
}

/* AI Step Items */
.ai-step-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.ai-step-item:hover {
    border-color: #ffff00;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 255, 0, 0.15);
}

.ai-step-item.active {
    border-color: #ffff00;
    background: #fffef0;
}

.ai-step-item h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffff00;
    color: #000000;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
    flex-shrink: 0;
}

.ai-step-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .phone-mockup {
        width: 280px;
        height: 580px;
    }

    .demo-tabs {
        justify-content: center;
    }

    .demo-tab {
        font-size: 0.8rem;
        padding: 10px 16px;
    }

    .ai-steps {
        grid-template-columns: 1fr;
    }
}