/* 24/7 Live Anonymous Helpline System Styles for Moksha Marg Travels */

.helpline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.helpline-overlay.active {
    opacity: 1;
    visibility: visible;
}

.helpline-window {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 380px;
    max-width: calc(100vw - 30px);
    height: 540px;
    max-height: calc(100vh - 80px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #f7c621;
}

.helpline-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Embedded Helpline Container for Contact Page */
.embedded-helpline-box {
    width: 100%;
    height: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #f7c621;
}

/* Header */
.helpline-header {
    background: linear-gradient(135deg, #1f1f1f 0%, #111111 100%);
    color: #ffffff;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #f7c621;
}

.helpline-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.helpline-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f7c621;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 10px rgba(247, 198, 33, 0.4);
    position: relative;
}

.helpline-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    background: #25d366;
    border: 2px solid #111;
    border-radius: 50%;
}

.helpline-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.helpline-subtitle {
    font-size: 11px;
    color: #f7c621;
    margin-top: 2px;
}

.helpline-controls {
    display: flex;
    gap: 8px;
}

.helpline-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
}

.helpline-close-btn:hover {
    background: rgba(255, 77, 77, 0.8);
}

/* Chat Body */
.helpline-body {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.helpline-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.45;
    position: relative;
    word-break: break-word;
    animation: fadeInMsg 0.25s ease;
}

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

.helpline-msg.bot {
    align-self: flex-start;
    background: #ffffff;
    color: #222222;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eeeeee;
}

.helpline-msg.user {
    align-self: flex-end;
    background: #252525;
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.helpline-msg.agent {
    align-self: flex-start;
    background: #fff8e1;
    color: #111111;
    border: 1px solid #f7c621;
    border-bottom-left-radius: 4px;
}

.helpline-msg-sender {
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #f7c621;
}

.helpline-msg-time {
    font-size: 9.5px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
    display: block;
}

.helpline-badge-anonymous {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid #c8e6c9;
}

/* Quick Action Options Container */
.helpline-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.helpline-opt-btn {
    background: #ffffff;
    border: 1.5px solid #252525;
    color: #252525;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.helpline-opt-btn:hover {
    background: #f7c621;
    border-color: #f7c621;
    color: #111111;
}

.helpline-opt-btn.call-opt {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
}

.helpline-opt-btn.call-opt:hover {
    background: #1eb854;
}

/* Footer / Input Area */
.helpline-footer {
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
    display: flex;
    gap: 8px;
    align-items: center;
}

.helpline-input {
    flex: 1;
    border: 1.5px solid #dddddd;
    border-radius: 20px;
    padding: 9px 15px;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s;
}

.helpline-input:focus {
    border-color: #f7c621;
}

.helpline-send-btn {
    background: #252525;
    color: #f7c621;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
}

.helpline-send-btn:hover {
    background: #f7c621;
    color: #111111;
}

/* Trigger Button on Contact Page */
.helpline-trigger-banner {
    background: linear-gradient(135deg, #f7c621 0%, #ffb700 100%);
    color: #111111;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(247, 198, 33, 0.3);
}

.helpline-trigger-btn {
    background: #111111;
    color: #f7c621;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background 0.2s;
}

.helpline-trigger-btn:hover {
    transform: translateY(-2px);
    background: #252525;
}
