/* ==========================================================================
   Srushti Future Kids - Premium WhatsApp Help Concierge & Assistant
   ========================================================================== */

:root {
    --sfk-wa-green: #25D366;
    --sfk-wa-dark-green: #075E54;
    --sfk-wa-teal: #128C7E;
    --sfk-wa-light-green: #dcf8c6;
    --sfk-wa-bg-chat: #efeae2;
    --sfk-navy: #184f9a;
    --sfk-dark-blue: #0f2752;
    --sfk-pink: #e91e63;
    --sfk-yellow: #f7b500;
}

/* Root Container */
.sfk-wa-root {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 9999;
}

/* --------------------------------------------------------------------------
   Floating Triggers (Bottom Left)
   -------------------------------------------------------------------------- */
.sfk-floating-triggers {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 10000;
}

.sfk-trigger-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    text-decoration: none;
}

.sfk-trigger-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.sfk-trigger-btn:active {
    transform: scale(0.96);
}

/* Call Button */
.sfk-trigger-call {
    background: linear-gradient(135deg, #ff7a00 0%, #ff5100 100%);
    font-size: 20px;
    width: 50px;
    height: 50px;
}

/* WhatsApp Launcher */
.sfk-trigger-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    font-size: 30px;
}

.sfk-trigger-wa .sfk-wa-icon-close {
    display: none;
    font-size: 22px;
}

.sfk-wa-root.is-open .sfk-trigger-wa .sfk-wa-icon-open {
    display: none;
}

.sfk-wa-root.is-open .sfk-trigger-wa .sfk-wa-icon-close {
    display: inline-block;
}

/* Glowing Pulse Animation */
.sfk-wa-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.45);
    animation: sfkPulse 2.2s infinite;
    pointer-events: none;
    z-index: -1;
}

.sfk-wa-root.is-open .sfk-wa-pulse {
    animation: none;
    display: none;
}

@keyframes sfkPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.55);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Notification Badge */
.sfk-trigger-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    animation: sfkBadgeBounce 2.5s infinite;
}

@keyframes sfkBadgeBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

/* Tooltip on Hover */
.sfk-trigger-tooltip {
    position: absolute;
    left: 70px;
    white-space: nowrap;
    background: #111827;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sfk-trigger-tooltip::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 5px 5px 0;
    border-style: solid;
    border-color: transparent #111827 transparent transparent;
}

.sfk-trigger-btn:hover .sfk-trigger-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* --------------------------------------------------------------------------
   Teaser Balloon
   -------------------------------------------------------------------------- */
.sfk-wa-teaser {
    position: fixed;
    bottom: 96px;
    left: 24px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 39, 82, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(37, 211, 102, 0.3);
    padding: 12px 14px;
    z-index: 9998;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.sfk-wa-teaser.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.sfk-wa-teaser-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.sfk-wa-teaser-close:hover {
    color: #ef4444;
    background: #f8fafc;
}

.sfk-wa-teaser-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sfk-wa-teaser-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f1f5f9;
    padding: 4px;
    border: 1.5px solid #25D366;
}

.sfk-wa-teaser-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sfk-wa-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.sfk-wa-teaser-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f2752;
}

.sfk-wa-teaser-msg {
    font-size: 12px;
    color: #475569;
    line-height: 1.35;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Backdrop Overlay
   -------------------------------------------------------------------------- */
.sfk-wa-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sfk-wa-root.is-open .sfk-wa-backdrop {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   Concierge Modal / Drawer
   -------------------------------------------------------------------------- */
.sfk-wa-modal {
    position: fixed;
    bottom: 96px;
    left: 24px;
    width: 395px;
    max-width: calc(100vw - 36px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 55px rgba(15, 39, 82, 0.22), 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
    transform: translateY(30px) scale(0.94);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(15, 39, 82, 0.08);
}

.sfk-wa-root.is-open .sfk-wa-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Header */
.sfk-wa-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    color: #ffffff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sfk-wa-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sfk-wa-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    padding: 5px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sfk-wa-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sfk-wa-online-beacon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #25D366;
    border-radius: 50%;
    border: 2px solid #075E54;
}

.sfk-wa-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sfk-wa-verified {
    color: #25D366;
    font-size: 13px;
}

.sfk-wa-subtitle {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.88);
    margin: 2px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sfk-wa-live-indicator {
    width: 7px;
    height: 7px;
    background: #25D366;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #25D366;
}

.sfk-wa-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sfk-wa-header-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.sfk-wa-header-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}

/* Tabs */
.sfk-wa-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 4px 6px;
    gap: 4px;
}

.sfk-wa-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.sfk-wa-tab:hover {
    color: #075E54;
    background: rgba(18, 140, 126, 0.06);
}

.sfk-wa-tab.active {
    background: #ffffff;
    color: #075E54;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    font-weight: 700;
}

.sfk-wa-tab.active i {
    color: #25D366;
}

/* Body Container */
.sfk-wa-body {
    flex: 1;
    overflow-y: auto;
    background: #fbfcfe;
    padding: 14px;
    position: relative;
}

.sfk-wa-body::-webkit-scrollbar {
    width: 5px;
}
.sfk-wa-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Tab Contents */
.sfk-wa-tab-content {
    display: none;
    animation: sfkFadeIn 0.25s ease-in-out;
}

.sfk-wa-tab-content.active {
    display: block;
}

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

/* --------------------------------------------------------------------------
   TAB 1: Smart Chat / Query Builder
   -------------------------------------------------------------------------- */
.sfk-wa-greeting-box {
    margin-bottom: 12px;
}

.sfk-wa-bot-msg {
    background: #ffffff;
    border-radius: 14px 14px 14px 2px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    font-size: 12.5px;
    color: #334155;
    line-height: 1.45;
}

.sfk-wa-bot-msg p {
    margin-bottom: 6px;
}
.sfk-wa-bot-msg p:last-child {
    margin-bottom: 0;
}

.sfk-wa-section-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
}

/* Topic Chips */
.sfk-wa-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.sfk-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.sfk-chip:hover {
    border-color: #25D366;
    color: #075E54;
    background: #f0fdf4;
}

.sfk-chip.active {
    background: linear-gradient(135deg, #075E54, #128C7E);
    color: #ffffff;
    border-color: #075E54;
    box-shadow: 0 2px 8px rgba(7, 94, 84, 0.2);
}

/* Form Styles */
.sfk-wa-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sfk-wa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sfk-wa-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.sfk-wa-field .sfk-opt {
    font-weight: 400;
    color: #94a3b8;
    font-size: 10.5px;
}

.sfk-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sfk-input-icon-wrap i {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    font-size: 12px;
    pointer-events: none;
}

.sfk-input-icon-wrap input,
.sfk-input-icon-wrap select {
    width: 100%;
    padding: 8px 10px 8px 30px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    color: #1e293b;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sfk-input-icon-wrap input:focus,
.sfk-input-icon-wrap select:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

/* Live WhatsApp Preview */
.sfk-wa-preview-box {
    background: #e5ddd5;
    background-image: radial-gradient(#d3c6b8 1px, transparent 1px);
    background-size: 16px 16px;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #d4c5b5;
    margin-top: 4px;
}

.sfk-wa-preview-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #075E54;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sfk-wa-preview-text {
    background: #dcf8c6;
    padding: 8px 10px;
    border-radius: 10px 10px 2px 10px;
    font-size: 11.5px;
    color: #111827;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    word-break: break-word;
    white-space: pre-line;
}

/* Action Buttons */
.sfk-wa-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.sfk-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.sfk-btn-wa-send {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.sfk-btn-wa-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.sfk-btn-wa-send .sfk-send-arrow {
    transition: transform 0.2s ease;
}
.sfk-btn-wa-send:hover .sfk-send-arrow {
    transform: translateX(4px);
}

.sfk-btn-wa-direct {
    background: #f1f5f9;
    color: #0f2752;
    border: 1px solid #cbd5e1;
    font-size: 12px;
    padding: 8px 12px;
}

.sfk-btn-wa-direct:hover {
    background: #e2e8f0;
    color: #075E54;
}

.sfk-btn-wa-direct i {
    color: #f59e0b;
}

/* --------------------------------------------------------------------------
   TAB 2: FAQs
   -------------------------------------------------------------------------- */
.sfk-faq-header {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    color: #166534;
    margin-bottom: 12px;
}
.sfk-faq-header p {
    margin: 0;
    line-height: 1.4;
}

.sfk-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sfk-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.sfk-faq-item.is-active {
    border-color: #25D366;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.12);
}

.sfk-faq-q {
    width: 100%;
    padding: 11px 12px;
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
}

.sfk-faq-q i {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.sfk-faq-item.is-active .sfk-faq-q i {
    transform: rotate(180deg);
    color: #075E54;
}

.sfk-faq-a {
    display: none;
    padding: 0 12px 12px;
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
    border-top: 1px dashed #f1f5f9;
}

.sfk-faq-item.is-active .sfk-faq-a {
    display: block;
    animation: sfkFadeIn 0.2s ease;
}

.sfk-faq-a p {
    margin: 8px 0;
}

.sfk-faq-list {
    margin: 6px 0;
    padding-left: 18px;
    list-style: disc;
}
.sfk-faq-list li {
    margin-bottom: 4px;
}

.sfk-faq-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.2s;
    font-family: inherit;
}

.sfk-faq-wa-btn:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

/* --------------------------------------------------------------------------
   TAB 3: Campus & Contact
   -------------------------------------------------------------------------- */
.sfk-campus-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.sfk-campus-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #1e40af;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.sfk-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.sfk-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sfk-contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #075E54;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sfk-contact-details {
    font-size: 12px;
    line-height: 1.4;
    color: #334155;
}

.sfk-contact-details strong {
    display: block;
    color: #0f2752;
    font-size: 11.5px;
}

.sfk-contact-details a {
    color: #075E54;
    font-weight: 600;
    text-decoration: underline;
}

.sfk-campus-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sfk-btn-call-desk {
    background: linear-gradient(135deg, #184f9a, #0f2752);
    color: #ffffff;
}
.sfk-btn-call-desk:hover {
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(24, 79, 154, 0.35);
}

.sfk-btn-map {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.sfk-btn-map:hover {
    background: #e2e8f0;
    color: #0f2752;
}

/* --------------------------------------------------------------------------
   Footer Bar
   -------------------------------------------------------------------------- */
.sfk-wa-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 8px 14px;
    text-align: center;
}

.sfk-wa-footer-text {
    font-size: 10.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* --------------------------------------------------------------------------
   Mobile Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .sfk-floating-triggers {
        bottom: 18px;
        left: 18px;
        gap: 10px;
    }

    .sfk-trigger-btn {
        width: 52px;
        height: 52px;
    }
    .sfk-trigger-call {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }
    .sfk-trigger-wa {
        font-size: 26px;
    }

    .sfk-wa-teaser {
        left: 18px;
        right: 18px;
        max-width: calc(100vw - 36px);
        bottom: 84px;
    }

    .sfk-wa-modal {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        height: 85vh;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .sfk-wa-root.is-open .sfk-wa-modal {
        transform: translateY(0);
    }

    .sfk-wa-form-row {
        grid-template-columns: 1fr;
    }
}
