/* Onboarding Campaign Styles */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Container scroll */
.container {
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    -webkit-overflow-scrolling: touch;
}

.slide {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    text-align: center;
}

/* Gradient backgrounds */
.slide-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.slide-booking {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide-reminder {
    background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%);
}

.slide-payment {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.slide-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%, #f857a6 100%);
}

/* Text animations */
.slide h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 4px 30px rgba(0,0,0,0.3);
    animation: fadeInUp 0.6s ease-out;
}

.slide p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: rgba(255,255,255,0.95);
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.8);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Demo container */
.demo-container {
    width: 100%;
    max-width: 420px;
    margin-bottom: 2rem;
    animation: scaleIn 0.8s ease-out;
    position: relative;
    z-index: 1;
}

/* WhatsApp Phone Mockup */
.phone-mockup {
    width: 340px;
    max-width: 90vw;
    height: 600px;
    background: #f5f5f5;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.phone-notch {
    width: 120px;
    height: 25px;
    background: #000;
    border-radius: 0 0 15px 15px;
    margin: 0 auto;
}

.whatsapp-header {
    background: #25D366;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.whatsapp-chat {
    background: #ECE5DD;
    height: calc(100% - 95px);
    padding: 1rem;
    overflow: hidden;
}

.message {
    display: flex;
    margin-bottom: 12px;
    opacity: 0;
}

.message-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message-sent {
    justify-content: flex-end;
    animation: slideInRight 0.4s ease-out forwards;
}

.message-sent .message-bubble {
    background: #DCF8C6;
    color: #000;
}

.message-received {
    justify-content: flex-start;
    animation: slideInLeft 0.4s ease-out forwards;
}

.message-received .message-bubble {
    background: white;
    color: #000;
}

.link-preview {
    background: #e3f2fd;
    border: 1px solid #2196F3;
    border-radius: 6px;
    padding: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: #1976D2;
    font-weight: 600;
}

.message-time {
    font-size: 11px;
    color: #667;
    margin-top: 4px;
    display: block;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    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;
}

/* Calendar Demo */
.calendar-demo {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 380px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    font-size: 1.25rem;
    color: #333;
    margin: 0;
}

.date-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.date-card {
    min-width: 70px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}

.date-card:nth-child(1) { animation-delay: 0.1s; }
.date-card:nth-child(2) { animation-delay: 0.2s; }
.date-card:nth-child(3) { 
    animation-delay: 0.3s; 
    background: #667eea; 
    color: white; 
    transform: scale(1.05); 
}
.date-card:nth-child(4) { animation-delay: 0.4s; }
.date-card:nth-child(5) { animation-delay: 0.5s; }

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1rem;
}

.time-slot {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}

.time-slot:nth-child(5) {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.time-slot:nth-child(1) { animation-delay: 0.6s; }
.time-slot:nth-child(2) { animation-delay: 0.65s; }
.time-slot:nth-child(3) { animation-delay: 0.7s; }
.time-slot:nth-child(4) { animation-delay: 0.75s; }
.time-slot:nth-child(5) { animation-delay: 0.8s; }
.time-slot:nth-child(6) { animation-delay: 0.85s; }

.confirm-button {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    opacity: 0;
    animation: fadeIn 0.4s ease-out 1s forwards;
}

/* Notification Cards */
.notifications {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 380px;
    margin: 0 auto;
}

.notification-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: slideInRight 0.5s ease-out forwards;
}

.notification-card:nth-child(1) { animation-delay: 0.2s; }
.notification-card:nth-child(2) { animation-delay: 0.5s; }
.notification-card:nth-child(3) { animation-delay: 0.8s; }

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
}

.notification-content {
    flex: 1;
    text-align: left;
}

.notification-title {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.notification-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Payment Dashboard */
.payment-dashboard {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 380px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dashboard-icon {
    width: 64px;
    height: 64px;
    background: #10B981;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 32px;
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.3s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }

.stat-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #10B981;
}

.stat-change {
    font-size: 12px;
    color: #10B981;
    margin-top: 4px;
}

.payment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    opacity: 0;
    animation: slideInLeft 0.4s ease-out forwards;
}

.payment-item:nth-child(1) { animation-delay: 0.6s; }
.payment-item:nth-child(2) { animation-delay: 0.7s; }
.payment-item:nth-child(3) { animation-delay: 0.8s; }

.payment-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-paid { background: #10B981; }
.status-pending { background: #F59E0B; }

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
    background: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out 0.4s both;
    margin-top: 2rem;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

.features-list {
    list-style: none;
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.features-list li {
    font-size: 1.2rem;
    color: white;
    margin: 1rem 0;
    padding-left: 2rem;
    position: relative;
}

.features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: rgba(255,255,255,0.9);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: white;
    font-size: 2rem;
    opacity: 0.7;
}

.text-overlay {
    position: relative;
    z-index: 3;
   padding: 1.5rem;
}

/* Progress dots */
.progress-dot.active {
    height: 48px !important;
    background: white !important;
}


/* Mobile responsive */
@media (max-width: 768px) {
    

    .slide {
        padding: 1rem;
        justify-content: start;
        padding-top: 3rem;
        overflow: hidden;
    }
    
    .demo-container {
        max-width: 90vw;
        margin-bottom: 0;
    }
    
    .text-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 2rem 1rem 3rem 1rem;
        background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
        /* backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px); */
    }
    
    .slide h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .slide p {
        font-size: 1rem;
        margin-bottom: 0;
        line-height: 1.5;
    }
    
    .phone-mockup {
        width: 280px;
        height: 520px;
    }
    
    .calendar-demo,
    .payment-dashboard {
        max-width: 300px;
        padding: 1rem;
    }
    
    .notifications {
        max-width: 300px;
    }
    
    .notification-card {
        padding: 0.875rem;
    }
    
    .scroll-indicator {
        bottom: 1rem;
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    @media(max-height: 700px) {
        .phone-mockup {
            width: 280px;
            height: 500px;
        }

        .slide-whatsapp {
            padding-top:3px
        }
    }
}

/* Interactive Booking Animation Styles */
@keyframes tapRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Tap indicator */
.tap-indicator {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    pointer-events: none;
    z-index: 100;
    animation: tapRipple 0.6s ease-out;
}

/* Date card states */
.date-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.date-card.selected {
    background: #667eea !important;
    color: white !important;
    transform: scale(1.05) !important;
}

.date-card.dimmed {
    opacity: 0.5 !important;
}

/* Time slot states */
.time-slot {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.time-slot.selected {
    background: #667eea !important;
    color: white !important;
    transform: scale(1.05) !important;
}

.time-slot.dimmed {
    opacity: 0.5 !important;
}

.time-slot.hidden {
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Confirm button states */
.confirm-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-button:hover {
    transform: scale(1.02);
}

.confirm-button.pulse {
    animation: successPulse 0.6s ease-in-out;
}

/* Success message */
.success-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    z-index: 200;
    opacity: 0;
    animation: successSlideIn 0.5s ease-out forwards;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 40px;
    animation: successPulse 0.8s ease-in-out infinite;
}

.success-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.success-details {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Calendar overlay for success state */
.calendar-demo.success-state {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

