:root {
    /* SLT Dual Theme Colors - Blue & Green */
    --slt-blue: #0033A0;
    --slt-blue-light: #4D79CC;
    --slt-blue-lighter: #E6EEFA;
    --slt-green: #00A859;
    --slt-green-light: #4DC48B;
    --slt-green-lighter: #E6F7EF;
    --slt-cyan: #00B5E2;
    --slt-magenta: #EC008C;
    --slt-yellow: #FFD100;
    --slt-white: #FFFFFF;
    --slt-gray: #F5F7FA;
    --slt-gray-dark: #4A5568;
    --slt-black: #1A202C;
    
    /* Chat specific */
    --user-bubble: #E6EEFA;
    --bot-bubble: linear-gradient(135deg, var(--slt-blue), var(--slt-green));
    --shadow: 0 4px 12px rgba(0, 51, 160, 0.15);
    --green-shadow: 0 4px 12px rgba(0, 168, 89, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f7ef 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.chat-container {
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    background: var(--slt-white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 51, 160, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 51, 160, 0.1);
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, var(--slt-blue) 0%, var(--slt-green) 100%);
    padding: 24px 32px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--slt-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--slt-blue), var(--slt-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, white, #e6f7ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.brand-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.05) 50%);
    opacity: 0.3;
}

/* Chat Area */
.chat-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: var(--slt-gray);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}



/* Message Bubbles */
.message {
    max-width: 75%;
    padding: 18px 22px;
    border-radius: 20px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

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

.user-message {
    background: linear-gradient(135deg, var(--slt-blue-lighter), var(--slt-green-lighter));
    color: var(--slt-black);
    align-self: flex-end;
    border-bottom-right-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--slt-blue);
}

.bot-message {
    background: white;
    color: var(--slt-black);
    align-self: flex-start;
    border-bottom-left-radius: 8px;
    border: 1px solid rgba(0, 51, 160, 0.1);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--slt-green);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.user-avatar {
    background: linear-gradient(135deg, var(--slt-blue), #0044CC);
    color: white;
}

.bot-avatar {
    background: none;           /* remove gradient */
}
.bot-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sender-name {
    font-weight: 600;
    font-size: 14px;
}

.message-content {
    line-height: 1.6;
    font-size: 15px;
    white-space: pre-wrap !important;  /* 🔥 THIS IS THE MAGIC LINE */
    word-wrap: break-word;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

/* Bot message specific styling */
.bot-message .message-content {
    white-space: pre-wrap !important;
}

/* Style bullet points and lists */
.message-content ul,
.message-content ol {
    margin: 8px 0 8px 20px;
    padding-left: 0;
}

.message-content li {
    margin: 4px 0;
    list-style-type: disc;
}

.message-content p {
    margin: 8px 0;
}

/* Style bold text in bot responses */
.message-content strong,
.message-content b {
    color: #1A202C;
    font-weight: 600;
}

/* Optional: headings, code blocks */
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4 {
    margin: 12px 0 6px 0;
    color: var(--slt-gray-dark);
}

.message-content pre {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
}

.message-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.message-time {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 8px;
    text-align: right;
}

/* Quick Questions */
.quick-questions-container {
    background: linear-gradient(135deg, rgba(0, 51, 160, 0.05), rgba(0, 168, 89, 0.05));
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 51, 160, 0.1);
    border-bottom: 1px solid rgba(0, 51, 160, 0.1);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.quick-questions-container::-webkit-scrollbar {
    display: none;
}

.quick-questions-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--slt-blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-questions {
    display: flex;
    gap: 12px;
    padding-bottom: 5px;
}

.quick-question {
    background: white;
    border: 2px solid var(--slt-blue-light);
    color: var(--slt-blue);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.quick-question:hover {
    background: linear-gradient(135deg, var(--slt-blue), var(--slt-green));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Input Area */
/* Update these styles in your CSS */

.input-area {
    padding: 24px;
    background: white;
    display: flex;
    gap: 12px;
    align-items: center;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--slt-blue-light);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--slt-green);
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.1);
}

#userInput {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

#userInput::placeholder {
    color: #A0AEC0;
}

.mic-icon.voice-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slt-blue);
    cursor: pointer;
    font-size: 20px;
    border-left: 2px solid #e2e8f0;
    margin-left: 0;
    transition: color 0.3s ease;
}

.mic-icon.voice-toggle:hover {
    color: var(--slt-green);
}

.voice-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--slt-green);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.send-button {
    background: linear-gradient(135deg, var(--slt-blue), var(--slt-green));
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 160, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .input-area {
        padding: 16px;
        gap: 10px;
    }
    
    #userInput {
        padding: 16px 20px;
    }
    
    .mic-icon.voice-toggle {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .send-button {
        width: 50px;
        height: 50px;
    }
    
    .voice-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
}

.send-button:active {
    transform: translateY(0);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Loading Animation */
.typing-indicator {
    display: flex;
    gap: 8px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    width: fit-content;
    border: 1px solid rgba(0, 51, 160, 0.1);
    box-shadow: var(--shadow);
    align-items: center;
}

.typing-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--slt-blue), var(--slt-green));
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, #FED7D7, #FEB2B2);
    color: #9B2C2C;
    padding: 16px 20px;
    border-radius: 16px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #FC8181;
}

/* ============================================
   BILL ESTIMATOR MODAL STYLES
   ============================================ */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

/* Modal Container */
.modal-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 51, 160, 0.3);
    border: 1px solid rgba(0, 51, 160, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, var(--slt-blue) 0%, var(--slt-green) 100%);
    padding: 25px 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 i {
    font-size: 28px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    margin-top: 20px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.progress-bar {
    position: absolute;
    top: 20px;
    left: 30px;
    height: 3px;
    background: white;
    transition: width 0.3s ease;
    z-index: 2;
}

.step {
    position: relative;
    z-index: 3;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: white;
    color: var(--slt-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.step.completed .step-circle {
    background: var(--slt-green);
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.step.active .step-label {
    color: white;
}

/* Modal Content */
.modal-content {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--slt-gray-dark);
    font-size: 14px;
}

.form-group label .required {
    color: #e53e3e;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--slt-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.1);
}

.form-control.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 45px;
}

/* Connection Type Cards */
.connection-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.connection-card {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.connection-card:hover {
    transform: translateY(-5px);
    border-color: var(--slt-blue-light);
    box-shadow: 0 10px 25px rgba(0, 51, 160, 0.1);
}

.connection-card.selected {
    border-color: var(--slt-blue);
    background: linear-gradient(135deg, var(--slt-blue-lighter), var(--slt-green-lighter));
    box-shadow: 0 10px 25px rgba(0, 51, 160, 0.15);
}

.connection-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--slt-blue);
}

.connection-card.selected .connection-icon {
    color: var(--slt-green);
}

.connection-card h3 {
    margin: 0 0 10px 0;
    color: var(--slt-gray-dark);
    font-size: 18px;
}

.connection-card p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

/* Package Cards */
.package-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.package-card {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    border-color: var(--slt-blue-light);
    box-shadow: 0 10px 25px rgba(0, 51, 160, 0.1);
}

.package-card.selected {
    border-color: var(--slt-blue);
    background: linear-gradient(135deg, var(--slt-blue-lighter), var(--slt-green-lighter));
    box-shadow: 0 10px 25px rgba(0, 51, 160, 0.15);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--slt-green);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Source Badges */
.source-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kb-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.crawl-badge {
    background: linear-gradient(135deg, var(--slt-green), #00b5b5);
    color: white;
}

.sample-badge {
    background: linear-gradient(135deg, #f6ad55, #ed8936);
    color: white;
}

.freshness-badge {
    position: absolute;
    top: 40px;
    left: 15px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
}

.freshness-badge.stale {
    background: linear-gradient(135deg, #fc8181, #f56565);
    color: white;
}

.package-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--slt-gray-dark);
    margin-bottom: 10px;
    padding-top: 10px;
}

.package-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--slt-blue);
    margin-bottom: 5px;
}

.package-price span {
    font-size: 14px;
    font-weight: 400;
    color: #718096;
}

.package-details {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #E2E8F0;
}

.package-detail {
    text-align: center;
    flex: 1;
}

.package-detail i {
    color: var(--slt-blue);
    margin-bottom: 5px;
    font-size: 18px;
}

.package-detail span {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-top: 3px;
}

.package-description {
    margin-top: 15px;
    color: #718096;
    font-size: 14px;
    line-height: 1.4;
}

/* ============================================
   STEP 4 STYLES - SIMPLIFIED EXTRA DATA SECTION
   ============================================ */

/* Section Card */
.section-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #E2E8F0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-card h4 {
    color: var(--slt-blue);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.section-card h4 i {
    color: var(--slt-green);
}

.section-subtitle {
    color: #718096;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Extra Data Container */
.extra-data-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Left Side: Input Area */
.extra-data-input-area {
    flex: 1;
}

.extra-data-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.extra-data-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--slt-blue);
    background: white;
    border-radius: 8px;
    font-size: 16px;
    color: var(--slt-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.extra-data-btn:hover {
    background: var(--slt-blue);
    color: white;
}

.extra-data-btn.minus {
    border-color: #e53e3e;
    color: #e53e3e;
}

.extra-data-btn.minus:hover {
    background: #e53e3e;
    color: white;
}

.extra-data-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid var(--slt-green);
    min-width: 120px;
    justify-content: center;
}

#extraDataInput {
    width: 60px;
    border: none;
    font-size: 22px;
    font-weight: bold;
    color: var(--slt-blue);
    text-align: center;
    background: transparent;
    font-family: 'Segoe UI', sans-serif;
}

#extraDataInput:focus {
    outline: none;
}

#extraDataInput:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.extra-data-input-wrapper span {
    font-size: 16px;
    color: #4a5568;
    font-weight: 600;
}

/* Right Side: Pricing Tiers */
.extra-data-tiers {
    width: 220px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #E2E8F0;
    margin-top: 10px;
}

.extra-data-tiers h5 {
    color: var(--slt-gray-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.extra-data-tiers h5 i {
    color: var(--slt-blue);
}

.tiers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
}

.tier-item:hover {
    border-color: var(--slt-blue);
    background: var(--slt-blue-lighter);
}

.tier-range {
    font-weight: 600;
    color: var(--slt-blue);
    font-size: 13px;
}

.tier-price {
    font-weight: 700;
    color: var(--slt-green);
    font-size: 13px;
}

/* Package Info Card */
.package-info-card {
    background: linear-gradient(135deg, var(--slt-blue), var(--slt-green));
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: none;
}

.package-info-card h4 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

#packageDetails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.package-detail-item {
    background: rgba(255, 255, 255, 0.12);
    padding: 12px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.package-detail-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
    font-weight: 500;
}

.package-detail-value {
    font-weight: 700;
    font-size: 15px;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .extra-data-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .extra-data-tiers {
        width: 100%;
    }
    
    .extra-data-controls {
        justify-content: center;
    }
    
    #packageDetails {
        grid-template-columns: 1fr;
    }
}

/* Add-ons Section */
.addons-section {
    margin-top: 30px;
}

.addons-category {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.addons-category h4 {
    margin: 0 0 15px 0;
    color: var(--slt-gray-dark);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.addons-category h4 i {
    color: var(--slt-green);
}

/* Original Add-ons Grid styles (keep these) */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.addon-item {
    background: #F7FAFC;
    border-radius: 12px;
    padding: 15px;
}

.addon-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.addon-name {
    font-weight: 600;
    color: var(--slt-gray-dark);
}

.addon-price {
    font-weight: 700;
    color: var(--slt-green);
}

.addon-description {
    font-size: 13px;
    color: #718096;
    margin-bottom: 10px;
    line-height: 1.4;
}

.addon-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #E2E8F0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--slt-gray-dark);
    transition: all 0.2s ease;
}

.quantity-btn:hover:not(:disabled) {
    border-color: var(--slt-blue);
    color: var(--slt-blue);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--slt-gray-dark);
}

/* Original Summary Section styles */
.summary-section {
    background: #F7FAFC;
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #E2E8F0;
}

.summary-row.total {
    border-top: 2px solid var(--slt-blue);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 700;
    color: var(--slt-green);
}

.summary-label {
    color: #718096;
}

.summary-value {
    font-weight: 600;
    color: var(--slt-gray-dark);
}

/* Responsive for Add-ons */
@media (max-width: 768px) {
    .addons-grid {
        grid-template-columns: 1fr;
    }
}

/* Summary Section (Updated) */
.summary-section {
    background: #F7FAFC;
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
    border: 2px solid #E2E8F0;
}

.summary-section h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--slt-gray-dark);
    font-size: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #E2E8F0;
}

.summary-row.total {
    border-top: 3px solid var(--slt-blue);
    margin-top: 15px;
    padding-top: 15px;
    font-size: 20px;
    font-weight: 800;
    color: var(--slt-green);
}

.summary-label {
    color: #4a5568;
    font-weight: 500;
}

.summary-value {
    font-weight: 700;
    color: var(--slt-gray-dark);
}

.summary-row.total .summary-value {
    color: var(--slt-green);
    font-size: 22px;
}

/* Modal Footer */
.modal-footer {
    padding: 25px 30px;
    background: #F7FAFC;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #E2E8F0;
}

.btn {
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background: white;
    color: var(--slt-gray-dark);
    border: 2px solid #E2E8F0;
}

.btn-secondary:hover:not(:disabled) {
    background: #F7FAFC;
    border-color: var(--slt-blue-light);
    color: var(--slt-blue);
}

.btn-primary {
    background: linear-gradient(135deg, var(--slt-blue), var(--slt-green));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 51, 160, 0.2);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 160, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Info Alert */
.info-alert {
    background: linear-gradient(135deg, #BEE3F8, #90CDF4);
    color: #2C5282;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #4299E1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container {
        height: 95vh;
        border-radius: 20px;
    }
    
    .chat-header {
        padding: 20px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .message {
        max-width: 85%;
    }
    
    .input-area {
        padding: 16px;
        gap: 12px;
    }
    
    #userInput {
        padding: 16px 50px 16px 20px;
    }
    
    .send-button {
        width: 50px;
        height: 50px;
    }
    
    .quick-questions-container {
        padding: 16px;
    }
    
    .quick-question {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Modal responsive */
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .modal-content {
        padding: 20px;
        max-height: 50vh;
    }

    .connection-cards {
        grid-template-columns: 1fr;
    }

    .package-cards {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        padding: 0 15px;
    }

    .progress-steps::before,
    .progress-bar {
        left: 15px;
        right: 15px;
    }

    .step-label {
        font-size: 10px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    /* New Step 4 Responsive */
    .extra-data-control {
        gap: 15px;
    }
    
    .extra-data-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .extra-data-display {
        padding: 15px 25px;
        min-width: 140px;
    }
    
    #extraDataInput {
        font-size: 28px;
        width: 80px;
    }
    
    .extra-data-display span {
        font-size: 18px;
    }
    
    .extra-data-amount {
        font-size: 28px;
    }
    
    .tiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .addons-grid {
        grid-template-columns: 1fr;
    }
    
    #packageDetails {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
.chat-area::-webkit-scrollbar {
    width: 8px;
}

.chat-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.chat-area::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--slt-blue-light), var(--slt-green-light));
    border-radius: 4px;
}

.chat-area::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--slt-blue), var(--slt-green));
}

/* Hide welcome message when chat starts */
.welcome-message.hidden {
    display: none;
}

/* Existing Customer Card */
.estimate-summary-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.summary-header h3 {
    margin: 0;
    color: var(--slt-blue);
}

.summary-content {
    padding: 10px 0;
}

/* Button styles */
.btn-outline {
    background: white;
    border: 1px solid var(--slt-blue);
    color: var(--slt-blue);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--slt-blue-light);
    border-color: var(--slt-blue-dark);
}

/* Quick actions container */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-secondary:hover {
    background: #4a5568;
}

/* ============================================ */
/* SONIC VOICE ASSISTANT - INLINE STYLES        */
/* ============================================ */

.voice-assistant-container {
    background: white;
    border-radius: 16px;
    margin: 16px 20px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    animation: slideIn 0.3s ease;
}

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

.voice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.voice-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slt-green);
    font-weight: 600;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--slt-green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.voice-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #718096;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s;
}

.voice-close-btn:hover {
    background: #f7fafc;
    color: #2d3748;
}

.voice-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transcription-container {
    background: #f7fafc;
    border-radius: 12px;
    padding: 16px;
    position: relative;
}

.transcription-text {
    font-size: 16px;
    line-height: 1.5;
    color: #2d3748;
    min-height: 48px;
    padding-right: 80px;
    word-break: break-word;
}

.language-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 4px;
}

.audio-visualizer {
    background: #edf2f7;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

#audioCanvas {
    width: 100%;
    height: 50px;
    border-radius: 4px;
}

.voice-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.voice-control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #4299e1;
    color: white;
}

.voice-control-btn:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.voice-control-btn.stop-btn {
    background: #e53e3e;
}

.voice-control-btn.stop-btn:hover {
    background: #c53030;
}

.voice-control-btn i {
    font-size: 16px;
}

.processing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #718096;
    font-size: 14px;
    margin-top: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--slt-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Voice badge on mic button */
.voice-toggle {
    position: relative;
}

.voice-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--slt-green);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .voice-assistant-container {
        margin: 12px;
        padding: 12px;
    }
    
    .voice-controls {
        flex-wrap: wrap;
    }
    
    .voice-control-btn {
        padding: 8px 16px;
    }
}

/* ============================================
   LIVE CHAT – AGENT CONVERSATION (SLT THEMED)
   ============================================ */

/* Live Chat Header */
.live-chat-header {
    background: linear-gradient(135deg, var(--slt-green), var(--slt-blue));
    padding: 16px 24px;
    margin: 0 0 16px 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: var(--green-shadow);
    animation: slideDown 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.live-chat-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-chat-status h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
}

.live-chat-status p {
    font-size: 0.8rem;
    opacity: 0.95;
    color: rgba(255,255,255,0.9);
}

.live-pulse-dot {
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.end-chat-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.end-chat-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Agent Message Bubble */
.message.agent-message {
    background: white;
    color: var(--slt-black);
    align-self: flex-start;
    border-bottom-left-radius: 8px;
    border: 1px solid rgba(0, 51, 160, 0.1);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--slt-green);
    max-width: 75%;
    padding: 18px 22px;
    border-radius: 20px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.message.agent-message .message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.message.agent-message .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--slt-green), var(--slt-blue-light));
    color: white;
}

.message.agent-message .sender-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--slt-gray-dark);
}

.message.agent-message .message-content {
    line-height: 1.6;
    font-size: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message.agent-message .message-time {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 8px;
    text-align: right;
}

/* System Message Style */
.message.system-message {
    align-self: center;
    background: var(--slt-green-lighter);
    color: var(--slt-green);
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 30px;
    max-width: 90%;
    border: none;
    border-left: none;
    box-shadow: none;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
    margin: 8px 0;
}

.message.system-message .message-content {
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message.system-message .message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: center;
    color: rgba(0, 168, 89, 0.7);
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .live-chat-header {
        padding: 14px 18px;
        margin: 0 0 12px 0;
    }
    
    .end-chat-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .message.agent-message {
        max-width: 85%;
        padding: 16px 20px;
    }
    
    .message.system-message {
        font-size: 0.8rem;
        padding: 6px 16px;
        max-width: 95%;
    }
}

/* ============================================
   LOGIN OVERLAY STYLES (ADD AT THE END)
   ============================================ */

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f7ef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 51, 160, 0.2);
    border: 1px solid rgba(0, 51, 160, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo .logo-icon {
    background: none;           /* remove gradient background */
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    font-size: 0;               /* hide any fallback text */
}

.login-logo h2 {
    color: var(--slt-blue);
    font-size: 28px;
    margin-bottom: 5px;
}

.login-logo p {
    color: #718096;
    font-size: 14px;
}

.login-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--slt-gray-dark);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--slt-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.1);
}

.form-group input:disabled {
    background: #F7FAFC;
    cursor: not-allowed;
}

.login-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn.primary {
    background: linear-gradient(135deg, var(--slt-blue), var(--slt-green));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 51, 160, 0.2);
}

.login-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 160, 0.3);
}

.login-btn.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guest-section {
    text-align: center;
}

.guest-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0 20px;
    color: #A0AEC0;
}

.guest-divider::before,
.guest-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.guest-btn {
    width: 100%;
    padding: 14px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--slt-gray-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.guest-btn:hover {
    border-color: var(--slt-green);
    background: var(--slt-green-lighter);
    color: var(--slt-green);
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #A0AEC0;
}

.login-footer a {
    color: var(--slt-blue);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2100;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
    max-width: 350px;
}

.toast-notification.success {
    border-left-color: var(--slt-green);
}

.toast-notification.error {
    border-left-color: #e53e3e;
}

.toast-notification.info {
    border-left-color: var(--slt-blue);
}

.toast-notification .toast-icon {
    font-size: 20px;
}

.toast-notification .toast-message {
    flex: 1;
    color: var(--slt-gray-dark);
}

.toast-notification .toast-close {
    cursor: pointer;
    color: #A0AEC0;
    transition: color 0.2s;
}

.toast-notification .toast-close:hover {
    color: var(--slt-gray-dark);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.login-btn.secondary {
    background: white;
    color: var(--slt-blue);
    border: 2px solid var(--slt-blue-light);
}
.login-btn.secondary:hover {
    background: var(--slt-blue-lighter);
}

/* =============================================
   OTP MEDIUM SELECTION CARDS
   ============================================= */
#otpMediumSection .login-form {
    padding: 20px 0;
}

#otpMediumSection .form-group label {
    display: block;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* Container for the radio cards */
#otpMediumSection div[style*="margin: 15px 0;"] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Style each radio card */
#otpMediumSection label[id$="Label"] {
    display: flex !important;
    align-items: center;
    padding: 14px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    margin: 0;
}

#otpMediumSection label[id$="Label"]:hover {
    border-color: var(--slt-green, #00A651);
    background: #f0faf4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.1);
}

/* Selected state – when the radio is checked (we'll need a tiny JS to toggle class, 
   or use :has() if supported, but we can fake it with JS. 
   Instead we can rely on the radio input being checked and use adjacent sibling styling */
#otpMediumSection label[id$="Label"] input[type="radio"]:checked {
    /* The radio itself is small, we can style its parent label when checked */
}

/* Better: style the label when the radio is checked using :has() (modern browsers) */
#otpMediumSection label[id$="Label"]:has(input[type="radio"]:checked) {
    border-color: var(--slt-green, #00A651) !important;
    background: #e6f7ef !important;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

/* Fallback if :has() not supported – we can use a small JS to add a class 'selected' to the label.
   But the easiest is to rely on the browser default radio + style around it. 
   We'll also add an icon and better typography */

#otpMediumSection label[id$="Label"] input[type="radio"] {
    accent-color: var(--slt-green, #00A651);
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

/* Text next to the radio */
#otpMediumSection label[id$="Label"] span {
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Add an icon before the text */
#otpMediumSection label[id$="Label"] span::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--slt-green, #00A651);
}

#smsOptionText::before {
    content: "\f3cd";  /* fa-mobile-alt */
}

#emailOptionText::before {
    content: "\f0e0";  /* fa-envelope */
}

/* Send OTP button */

#otpMediumSection .login-btn.primary:disabled {
    background: #A0AEC0;
    cursor: not-allowed;
}

/* Back link */
#otpMediumSection a {
    color: var(--slt-blue, #0033A0);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
}

#otpMediumSection a:hover {
    text-decoration: underline;
}

.chat-header .logo-icon {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

/* Center the logo icon on the login screen */
.login-logo .logo-icon {
    margin: 0 auto 15px auto;   /* centers the icon container */
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo .logo-icon img {
    max-width: 100%;
    height: auto;
}

/* Ensure the login-logo itself is centered */
.login-logo {
    text-align: center;
}

/* ========================================== */
/* WIDGET MODE (embedded in iframe)            */
/* ========================================== */
body.widget-mode {
  font-size: 13px;
}

/* Shrink the header */
body.widget-mode .chat-header {
  padding: 10px 15px;
}
body.widget-mode .header-content h1 {
  font-size: 16px;
}
body.widget-mode .header-content p {
  font-size: 11px;
  display: none;           /* hide sub‑title to save space */
}

/*body.widget-mode .logo-icon {
  width: 32px;
  height: 32px;
  font-size: 16px;
}*/

body.widget-mode .header-pattern {
  height: 3px;
}

/* Welcome message – keep visible but smaller */
body.widget-mode .welcome-message {
  display: block;          /* override any previous hide */
}
body.widget-mode .welcome-message h2 {
  font-size: 14px;
  margin-bottom: 6px;
}
body.widget-mode .welcome-message p {
  font-size: 12px;
  margin: 0;
}

/* Compact chat area */
body.widget-mode .chat-area {
  padding: 10px;
}

/* Smaller messages */
body.widget-mode .message-content {
  font-size: 13px;
  padding: 8px 10px;
}

/* Compact input area */
body.widget-mode .input-area {
  padding: 8px 10px;
}
body.widget-mode #userInput {
  font-size: 13px;
  padding: 8px 12px;
}
body.widget-mode .send-button {
  width: 36px;
  height: 36px;
}

/* Quick‑questions – keep visible but compact */
body.widget-mode .quick-questions-container {
  display: block;           /* override any previous hide */
  padding: 6px 10px;
}
body.widget-mode .quick-questions-title {
  font-size: 12px;
  margin-bottom: 4px;
}
body.widget-mode .quick-question {
  font-size: 12px;
  padding: 4px 8px;
  margin-right: 4px;
}

/* Hide the login overlay logo subtitle (optional) */
body.widget-mode .login-logo p {
  display: none;
}

/* Reduce padding inside user messages */
body.widget-mode .message.user-message .message-content {
  padding: 6px 10px;          /* was probably larger */
  margin-bottom: 4px;         /* reduce gap between messages */
}

/* Reduce gap between avatar and message */
body.widget-mode .message.user-message .message-header {
  margin-bottom: 2px;
}

/* Shrink the time stamp */
body.widget-mode .message-time {
  font-size: 10px;
  margin-top: 2px;
}

body.widget-mode .user-avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

body.widget-mode .bot-avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

/* ===== TEMPORARY: Hide voice/mic features ===== */
.mic-icon,
.voice-toggle,
.voice-badge,
.voice-assistant-container {
  display: none !important;
}
/* ============================================== */