/* Srigdha Chatbot Widget Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --sri-green: #1B4D3E;
    --sri-orange: #E84E1B;
    --sri-offwhite: #F7FAF8;
    --sri-border: #D4E4DC;
    --sri-text: #1A2E26;
    --sri-muted: #6B8C7D;
}

#sri-launcher-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}

#sri-chat-toggle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

#sri-chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(0,0,0,0.22);
}

#sri-chat-label {
    background: var(--sri-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(27,77,62,0.3);
    white-space: nowrap;
    transition: background 0.2s;
}

#sri-chat-label:hover { background: #143d30; }

#sri-chat-modal {
    position: fixed;
    bottom: 140px;
    right: 24px;
    width: 380px;
    max-width: 93vw;
    height: 555px;
    max-height: calc(100vh - 160px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--sri-border);
    z-index: 99998;
    font-family: 'Outfit', sans-serif;
    animation: sriSlideUp 0.25s ease;
}

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

.sri-chat-header {
    background: var(--sri-green);
    color: white;
    padding: 13px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sri-logo-container {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sri-online-indicator {
    height: 7px;
    width: 7px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

#sri-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}
#sri-chat-close:hover { opacity: 1; }

#sri-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: var(--sri-offwhite);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sri-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
}

.sri-bot-msg {
    background: white;
    color: var(--sri-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.sri-user-msg {
    background: var(--sri-green);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.sri-input-area {
    padding: 12px 15px;
    background: white;
    border-top: 1px solid var(--sri-border);
    flex-shrink: 0;
}

.sri-input-group { display: flex; flex-direction: column; gap: 8px; }

.sri-field {
    padding: 10px 12px;
    border: 1.5px solid var(--sri-border);
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
    color: var(--sri-text);
}
.sri-field:focus { border-color: var(--sri-green); }

.sri-mobile-row { display: flex; gap: 8px; }
.sri-select { width: 115px; cursor: pointer; background: #fff; }

.sri-send-btn {
    background: var(--sri-orange);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.2s;
}
.sri-send-btn:hover { background: #c73e11; }

.sri-chat-footer {
    background: #fff;
    padding: 7px;
    text-align: center;
    font-size: 10px;
    color: var(--sri-muted);
    border-top: 1px solid #f0f4f2;
    flex-shrink: 0;
}
.sri-footer-brand { color: var(--sri-orange); font-weight: 700; }

.sri-options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.sri-opt-btn {
    background: white;
    border: 1.5px solid var(--sri-green);
    color: var(--sri-green);
    padding: 9px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}
.sri-opt-btn:hover { background: var(--sri-green); color: white; }

/* Typing indicator */
.sri-typing { display: flex; gap: 4px; padding: 12px 16px; }
.sri-typing span {
    width: 7px; height: 7px;
    background: var(--sri-muted);
    border-radius: 50%;
    animation: sriDot 1.2s infinite;
}
.sri-typing span:nth-child(2) { animation-delay: 0.2s; }
.sri-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes sriDot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40%           { transform: scale(1); opacity: 1; }
}

@media (max-width: 420px) {
    #sri-chat-modal { width: 95vw; right: 2.5vw; bottom: 130px; }
    #sri-launcher-container { right: 16px; bottom: 16px; }
}
