/* ==========================================================================
   SARAVANA SANJHAY — LUXURY WHATSAPP CONCIERGE & 5-SECOND LEAD POPUP
   Site Theme & Cyberpunk Palette (Rajdhani font, Dark Navy, Cyan Glow)
   ========================================================================== */

/* --- 1. WhatsApp Floating Launcher Button (WhatsApp Green #25D366) --- */
button.ssm-wa-launcher,
#ssm-wa-launcher,
.ssm-wa-launcher {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    background-color: #25D366 !important;
    background-image: none !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55), 0 0 20px rgba(37, 211, 102, 0.35) !important;
    cursor: pointer;
    z-index: 99990;
    border: none !important;
    outline: none !important;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0 !important;
}
button.ssm-wa-launcher:hover,
#ssm-wa-launcher:hover,
.ssm-wa-launcher:hover {
    background: #20ba59 !important;
    background-color: #20ba59 !important;
    background-image: none !important;
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.75), 0 0 25px rgba(37, 211, 102, 0.5) !important;
}
button.ssm-wa-launcher:active,
#ssm-wa-launcher:active,
.ssm-wa-launcher:active {
    transform: scale(0.95);
    background: #1da850 !important;
    background-image: none !important;
}
.ssm-wa-pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2.5px solid #25D366;
    animation: ssmWaPulse 2.2s infinite ease-out;
    pointer-events: none;
}
@keyframes ssmWaPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
.ssm-wa-launcher-svg {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
    fill: #ffffff !important;
    pointer-events: none;
}

/* --- 2. Luxury WhatsApp Concierge Popup Window (Reduced, Compact Size) --- */
.ssm-wa-popup {
    position: fixed;
    bottom: 92px;
    right: 25px;
    width: 330px;
    max-width: calc(100vw - 24px);
    height: 450px;
    max-height: calc(100vh - 110px);
    background: #08101d;
    border: 1.5px solid rgba(0, 212, 255, 0.35);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.92), 0 0 25px rgba(0, 212, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 99992;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
}
.ssm-wa-popup.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.ssm-wa-header {
    background: linear-gradient(135deg, #050a12 0%, #0d1a2d 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.25);
    padding: 11px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.ssm-wa-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ssm-wa-avatar-box {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #00d4ff;
    overflow: hidden;
    background: #02060d;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.35);
}
.ssm-wa-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ssm-wa-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 9px;
    height: 9px;
    background: #00ff88;
    border: 2px solid #050a12;
    border-radius: 50%;
    box-shadow: 0 0 6px #00ff88;
}
.ssm-wa-header-meta h4 {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.6px;
    line-height: 1.15;
}
.ssm-wa-header-meta p {
    margin: 2px 0 0 0;
    color: #00ff88;
    font-size: 0.70rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Minimize Chevron Button (Replaces Cross) */
.ssm-wa-minimize-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}
.ssm-wa-minimize-btn:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: #00d4ff;
    transform: translateY(1px);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* Announcement Top Banner */
.ssm-wa-banner {
    background: rgba(0, 212, 255, 0.08);
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    padding: 6px 12px;
    font-size: 0.72rem;
    color: #00d4ff;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Chat Body */
.ssm-wa-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: radial-gradient(circle at 50% 10%, rgba(0, 212, 255, 0.05) 0%, transparent 80%), #08101d;
    scroll-behavior: smooth;
}
.ssm-wa-body::-webkit-scrollbar {
    width: 4px;
}
.ssm-wa-body::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 10px;
}

/* Chat Bubble */
.ssm-wa-msg {
    max-width: 92%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px 12px 12px 3px;
    padding: 10px 12px;
    color: #e2e8f0;
    font-size: 0.82rem;
    line-height: 1.5;
    animation: ssmWaFadeIn 0.25s ease;
    align-self: flex-start;
}
.ssm-wa-msg.user {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 102, 255, 0.25));
    border: 1px solid rgba(0, 212, 255, 0.45);
    border-radius: 12px 12px 3px 12px;
    color: #ffffff;
    align-self: flex-end;
}
.ssm-wa-msg-sender {
    font-size: 0.70rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 3px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.ssm-wa-msg-time {
    font-size: 0.64rem;
    color: #64748b;
    display: block;
    margin-top: 4px;
    text-align: right;
}

/* Quick Action Buttons Inside Chat */
.ssm-wa-btn-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.ssm-wa-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.79rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    text-decoration: none;
}
.ssm-wa-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #ffffff;
    transform: translateX(2px);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
}
.ssm-wa-btn-primary,
a.ssm-wa-btn-primary,
button.ssm-wa-btn-primary {
    background: #25D366 !important;
    background-color: #25D366 !important;
    background-image: none !important;
    border-color: #25D366 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
}
.ssm-wa-btn-primary:hover,
a.ssm-wa-btn-primary:hover,
button.ssm-wa-btn-primary:hover {
    background: #20ba59 !important;
    background-color: #20ba59 !important;
    background-image: none !important;
    border-color: #20ba59 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 14px rgba(37, 211, 102, 0.6) !important;
}

/* Typing Dots */
.ssm-wa-typing {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    width: fit-content;
    align-self: flex-start;
}
.ssm-wa-typing span {
    width: 5px;
    height: 5px;
    background: #00d4ff;
    border-radius: 50%;
    animation: ssmWaDot 1.4s infinite ease-in-out;
}
.ssm-wa-typing span:nth-child(2) { animation-delay: 0.2s; }
.ssm-wa-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ssmWaDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.15); opacity: 1; }
}

/* Chat Footer / Input & Vivid Send Button */
.ssm-wa-footer {
    padding: 9px 12px;
    background: #050a12;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    gap: 7px;
    align-items: center;
    flex-shrink: 0;
}
.ssm-wa-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 18px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.84rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.ssm-wa-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Crisp, Glowing Send Button with Paper Plane */
.ssm-wa-send-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00d4ff, #0066ff) !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4) !important;
    padding: 0 !important;
}
.ssm-wa-send-btn:hover {
    background: linear-gradient(135deg, #33e0ff, #0088ff) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.7) !important;
}
.ssm-wa-send-btn svg {
    width: 17px !important;
    height: 17px !important;
    stroke: #ffffff !important;
    fill: none !important;
    pointer-events: none !important;
}

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


/* --- 3. 10-SECOND ONE-TIME LEAD POPUP MODAL (Site Theme & Clear Close Button) --- */
#ssm-lead-modal-root {
    position: relative;
    z-index: 999999;
}
.ssm-lead-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 14, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
}
.ssm-lead-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ssm-lead-modal-container {
    position: relative;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    background: linear-gradient(150deg, #091322 0%, #030813 100%);
    border: 1.5px solid rgba(0, 212, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 212, 255, 0.25);
    display: flex;
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.ssm-lead-modal-overlay.active .ssm-lead-modal-container {
    transform: scale(1);
}

/* Highly Prominent Close Button (Top-Right) */
.ssm-lead-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: #0d1b2e;
    color: #00d4ff;
    border: 2px solid #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    padding: 0;
}
.ssm-lead-close-btn:hover {
    background: #00d4ff;
    color: #02060d;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.8);
    transform: scale(1.1);
}
.ssm-lead-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    pointer-events: none;
}

/* Left Column: Cyber Showcase Banner */
.ssm-lead-col-left {
    flex: 1;
    min-width: 240px;
    background: linear-gradient(160deg, #0a182d 0%, #040c18 100%);
    border-right: 1px solid rgba(0, 212, 255, 0.2);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.ssm-lead-col-left::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}
.ssm-lead-info-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}
.ssm-lead-col-left h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 14px 0;
    letter-spacing: 0.6px;
}
.ssm-lead-col-left h2 em {
    font-style: normal;
    color: #00d4ff;
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}
.ssm-lead-col-left p {
    font-size: 0.94rem;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0 0 20px 0;
}
.ssm-lead-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.ssm-lead-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 14px;
    color: #00d4ff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* Right Column: Cyber Theme Form */
.ssm-lead-col-right {
    flex: 1.2;
    min-width: 250px;
    background: #050b14;
    padding: 24px 22px 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    box-sizing: border-box;
}
.ssm-lead-col-right h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ssm-lead-col-right h3 span {
    color: #00d4ff;
}
.ssm-lead-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ssm-lead-input,
.ssm-lead-select,
.ssm-lead-textarea {
    width: 100%;
    padding: 9px 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 8px;
    font-size: 0.92rem;
    color: #ffffff;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}
.ssm-lead-input::placeholder,
.ssm-lead-textarea::placeholder {
    color: #64748b;
    font-weight: 500;
}
.ssm-lead-select {
    color: #cbd5e1;
    cursor: pointer;
}
.ssm-lead-select option {
    background: #091322;
    color: #ffffff;
}
.ssm-lead-input:focus,
.ssm-lead-select:focus,
.ssm-lead-textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
}
.ssm-lead-textarea {
    resize: none;
    height: 65px;
}
.ssm-lead-submit-btn {
    background: linear-gradient(90deg, #00d4ff, #0066ff);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 3px;
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.35);
}
.ssm-lead-submit-btn:hover {
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.65);
    transform: translateY(-2px);
}
.ssm-lead-cancel-link {
    background: transparent;
    border: none;
    color: #64748b;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 6px;
    text-align: center;
    transition: color 0.2s;
}
.ssm-lead-cancel-link:hover {
    color: #00d4ff;
    text-decoration: underline;
}
.ssm-lead-disclaimer {
    font-size: 0.74rem;
    line-height: 1.45;
    color: #64748b;
    margin: 10px 0 0 0;
}
.ssm-lead-success-msg {
    display: none;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid #00ff88;
    color: #00ff88;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.25);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .ssm-lead-modal-overlay {
        padding: 8px;
    }
    .ssm-lead-modal-container {
        flex-direction: column;
        max-height: 95vh;
        overflow-y: auto;
        border-radius: 14px;
        max-width: 100%;
    }
    /* Hide the decorative left banner on mobile — show only the form */
    .ssm-lead-col-left {
        display: none;
    }
    .ssm-lead-col-right {
        min-width: 0;
        width: 100%;
        padding: 16px 16px 14px 16px;
    }
    .ssm-lead-col-right h3 {
        font-size: 1.2rem;
        padding-right: 38px;
        margin-bottom: 8px;
    }
    .ssm-lead-close-btn {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
    /* Compact form fields on mobile */
    .ssm-lead-form {
        gap: 7px;
    }
    .ssm-lead-input,
    .ssm-lead-select,
    .ssm-lead-textarea {
        padding: 7px 10px;
        font-size: 0.85rem;
    }
    .ssm-lead-textarea {
        height: 48px;
    }
    .ssm-lead-submit-btn {
        padding: 9px 14px;
        font-size: 0.95rem;
        margin-top: 2px;
    }
    .ssm-lead-cancel-link {
        font-size: 0.78rem;
        margin-top: 4px;
    }
    .ssm-lead-disclaimer {
        font-size: 0.68rem;
        margin: 6px 0 0 0;
    }
    .ssm-lead-col-right h3 {
        margin-bottom: 8px;
    }
    .ssm-wa-popup {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 80px;
        height: 420px;
    }
    .ssm-wa-launcher {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }
    .ssm-wa-launcher-svg {
        width: 28px !important;
        height: 28px !important;
    }
}
