/* ==========================================================================
   TAE GLOBAL EDUCATION - APPOINTMENT BOOKING & AI AUTOMATION STYLES
   Engineered for Desktop, Tablet, and Mobile (Responsive & Accessible)
   ========================================================================== */

:root {
    --tae-primary: #303890;
    --tae-primary-dark: #222766;
    --tae-secondary: #00aeef;
    --tae-secondary-dark: #008cc0;
    --tae-accent-green: #10b981;
    --tae-text-dark: #0f172a;
    --tae-text-muted: #64748b;
    --tae-bg-light: #f8fafc;
    --tae-border: #e2e8f0;
    --tae-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --tae-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --tae-shadow-lg: 0 20px 35px -5px rgba(48, 56, 144, 0.2);
    --tae-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   1. APPOINTMENT BOOKING WIZARD & MODAL
   -------------------------------------------------------------------------- */

.tae-appointment-wrapper {
    font-family: var(--tae-font);
    color: var(--tae-text-dark);
    max-width: 860px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--tae-shadow-md);
    border: 1px solid var(--tae-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.tae-appointment-header {
    background: linear-gradient(135deg, var(--tae-primary), #1e2570);
    color: #ffffff;
    padding: 30px 35px;
    position: relative;
}

.tae-appointment-header h2 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 1.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tae-appointment-header p {
    color: #cbd5e1;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tae-appointment-badge {
    position: absolute;
    top: 25px;
    right: 30px;
    background: rgba(0, 174, 239, 0.2);
    border: 1px solid rgba(0, 174, 239, 0.5);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tae-booking-steps-bar {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid var(--tae-border);
}

.tae-step-item {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tae-text-muted);
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tae-step-item.active {
    color: var(--tae-primary);
    background: #ffffff;
    border-bottom-color: var(--tae-secondary);
}

.tae-step-item.completed {
    color: var(--tae-accent-green);
}

.tae-step-item .step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.tae-step-item.active .step-num {
    background: var(--tae-primary);
    color: #ffffff;
}

.tae-step-item.completed .step-num {
    background: var(--tae-accent-green);
    color: #ffffff;
}

.tae-appointment-body {
    padding: 30px 35px;
}

.tae-step-panel {
    display: none;
    animation: taeFadeIn 0.3s ease forwards;
}

.tae-step-panel.active {
    display: block;
}

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

/* Service / Mode Cards */
.tae-grid-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.tae-mode-card {
    border: 2px solid var(--tae-border);
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.tae-mode-card:hover {
    border-color: var(--tae-secondary);
    background: #f8fafc;
    transform: translateY(-2px);
}

.tae-mode-card.selected {
    border-color: var(--tae-primary);
    background: rgba(48, 56, 144, 0.04);
    box-shadow: 0 0 0 2px var(--tae-primary);
}

.tae-mode-card .card-icon {
    font-size: 1.5rem;
    color: var(--tae-secondary);
}

.tae-mode-card.selected .card-icon {
    color: var(--tae-primary);
}

.tae-mode-card h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tae-primary);
}

.tae-mode-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--tae-text-muted);
    line-height: 1.4;
}

/* Date & Time Slot Selector */
.tae-slots-section {
    margin-top: 24px;
}

.tae-date-picker-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
}

.tae-date-card {
    min-width: 82px;
    border: 2px solid var(--tae-border);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tae-date-card:hover {
    border-color: var(--tae-secondary);
}

.tae-date-card.selected {
    border-color: var(--tae-primary);
    background: var(--tae-primary);
    color: #ffffff;
}

.tae-date-card .day-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--tae-text-muted);
}

.tae-date-card.selected .day-name {
    color: rgba(255, 255, 255, 0.85);
}

.tae-date-card .day-num {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 4px 0;
    color: var(--tae-primary);
}

.tae-date-card.selected .day-num {
    color: #ffffff;
}

.tae-date-card .month-name {
    font-size: 0.75rem;
    color: var(--tae-text-muted);
}

.tae-date-card.selected .month-name {
    color: #ffffff;
}

.tae-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.tae-time-slot {
    border: 1px solid var(--tae-border);
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tae-text-dark);
    transition: all 0.2s ease;
}

.tae-time-slot:hover {
    border-color: var(--tae-secondary);
    background: #f0f9ff;
    color: var(--tae-primary);
}

.tae-time-slot.selected {
    background: var(--tae-primary);
    color: #ffffff;
    border-color: var(--tae-primary);
    box-shadow: 0 4px 12px rgba(48, 56, 144, 0.25);
}

/* Form inputs */
.tae-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

@media (max-width: 640px) {
    .tae-form-row {
        grid-template-columns: 1fr;
    }
}

.tae-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.tae-form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tae-text-dark);
}

.tae-form-group input,
.tae-form-group select,
.tae-form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--tae-border);
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
}

.tae-form-group input:focus,
.tae-form-group select:focus,
.tae-form-group textarea:focus {
    outline: none;
    border-color: var(--tae-primary);
    box-shadow: 0 0 0 3px rgba(48, 56, 144, 0.1);
}

/* Summary & Payment Card */
.tae-summary-box {
    background: var(--tae-bg-light);
    border: 1px solid var(--tae-border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 24px;
}

.tae-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 0.92rem;
}

.tae-summary-row:last-child {
    border-bottom: none;
    padding-top: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tae-primary);
}

.tae-summary-label {
    color: var(--tae-text-muted);
}

.tae-summary-val {
    font-weight: 600;
    color: var(--tae-text-dark);
    text-align: right;
}

/* Payment Gateway Selector */
.tae-gateway-selector {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.tae-gateway-option {
    flex: 1;
    border: 2px solid var(--tae-border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.tae-gateway-option:hover {
    border-color: var(--tae-secondary);
}

.tae-gateway-option.selected {
    border-color: var(--tae-primary);
    background: rgba(48, 56, 144, 0.04);
}

.tae-gateway-option i {
    font-size: 1.8rem;
    color: var(--tae-primary);
    margin-bottom: 6px;
    display: block;
}

.tae-gateway-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tae-primary);
}

/* Wizard Buttons */
.tae-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--tae-border);
}

.tae-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
}

.tae-btn-primary {
    background: var(--tae-primary);
    color: #ffffff !important;
}

.tae-btn-primary:hover {
    background: var(--tae-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(48, 56, 144, 0.3);
}

.tae-btn-secondary {
    background: var(--tae-secondary);
    color: #ffffff !important;
}

.tae-btn-secondary:hover {
    background: var(--tae-secondary-dark);
}

.tae-btn-outline {
    background: transparent;
    border: 1px solid var(--tae-border);
    color: var(--tae-text-muted);
}

.tae-btn-outline:hover {
    background: #f1f5f9;
    color: var(--tae-text-dark);
}

.tae-btn-pay {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 1.05rem;
    padding: 14px 30px;
    border-radius: 12px;
    width: 100%;
}

.tae-btn-pay:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* Appointment Pass (Success State) */
.tae-appointment-pass {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tae-pass-success-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
}

.tae-pass-ref-pill {
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tae-primary);
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.tae-pass-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    text-align: left;
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
    border: 1px solid var(--tae-border);
}

@media (max-width: 640px) {
    .tae-pass-grid {
        grid-template-columns: 1fr;
    }
}

.tae-pass-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* --------------------------------------------------------------------------
   2. FLOATING APPOINTMENT LAUNCHER BUTTON
   -------------------------------------------------------------------------- */

.tae-floating-appointment-btn {
    position: fixed;
    bottom: 96px;
    right: 28px;
    background: linear-gradient(135deg, var(--tae-primary), #1e2570);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 8px 24px rgba(48, 56, 144, 0.35);
    display: flex;
    align-items: center;
    gap: 9px;
    z-index: 99980;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tae-floating-appointment-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(48, 56, 144, 0.45);
    background: linear-gradient(135deg, var(--tae-secondary), var(--tae-primary));
}

.tae-floating-appointment-btn .live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
    animation: taePulseDot 1.8s infinite;
}

@keyframes taePulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Modal Overlay */
.tae-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: taeOverlayIn 0.25s ease;
}

.tae-modal-overlay.open {
    display: flex;
}

@keyframes taeOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tae-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 860px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 20px;
}

.tae-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 22px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

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

/* --------------------------------------------------------------------------
   3. AI AUTOMATION - 24/7 AI COUNSELOR CHAT WIDGET
   -------------------------------------------------------------------------- */

.tae-ai-launcher {
    position: fixed;
    bottom: 24px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tae-secondary), var(--tae-primary));
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99970;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #ffffff;
}

.tae-ai-launcher:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 174, 239, 0.55);
}

.tae-ai-launcher i {
    font-size: 1.55rem;
    transition: transform 0.3s ease;
}

.tae-ai-launcher .ai-badge-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

/* AI Chat Window */
.tae-ai-chat-window {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 380px;
    max-width: calc(100vw - 36px);
    height: 570px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
    border: 1px solid var(--tae-border);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99975;
    font-family: var(--tae-font);
    animation: taeChatSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tae-ai-chat-window.open {
    display: flex;
}

@keyframes taeChatSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tae-ai-chat-header {
    background: linear-gradient(135deg, var(--tae-primary), #1e2570);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.tae-ai-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00aeef, #303890);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.tae-ai-avatar .online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.tae-ai-title-wrap h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.tae-ai-title-wrap span {
    font-size: 0.76rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tae-ai-header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tae-ai-ctrl-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: background 0.2s ease;
}

.tae-ai-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages Container */
.tae-ai-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 14px;
    -webkit-overflow-scrolling: touch;
}

.tae-ai-msg {
    display: flex;
    gap: 10px;
    max-width: 88%;
}

.tae-ai-msg.bot {
    align-self: flex-start;
}

.tae-ai-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.tae-msg-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.tae-ai-msg.bot .tae-msg-bubble {
    background: #ffffff;
    color: var(--tae-text-dark);
    border: 1px solid var(--tae-border);
    border-top-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tae-ai-msg.user .tae-msg-bubble {
    background: var(--tae-primary);
    color: #ffffff;
    border-top-right-radius: 4px;
}

.tae-msg-bubble p {
    margin: 0 0 8px 0;
}

.tae-msg-bubble p:last-child {
    margin-bottom: 0;
}

.tae-msg-bubble ul {
    margin: 6px 0;
    padding-left: 18px;
}

.tae-msg-bubble li {
    margin-bottom: 4px;
}

.tae-msg-bubble strong {
    color: var(--tae-primary);
}

.tae-ai-msg.user .tae-msg-bubble strong {
    color: #ffffff;
}

/* Quick Suggestion Chips */
.tae-ai-chips-wrap {
    padding: 10px 14px;
    background: #ffffff;
    border-top: 1px solid var(--tae-border);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.tae-ai-chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--tae-primary);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tae-ai-chip:hover {
    background: var(--tae-primary);
    color: #ffffff;
    border-color: var(--tae-primary);
}

/* Input Bar */
.tae-ai-input-bar {
    padding: 12px 14px;
    background: #ffffff;
    border-top: 1px solid var(--tae-border);
    display: flex;
    gap: 10px;
    align-items: center;
}

.tae-ai-input-bar input {
    flex: 1;
    border: 1px solid var(--tae-border);
    border-radius: 25px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.tae-ai-input-bar input:focus {
    border-color: var(--tae-secondary);
}

.tae-ai-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--tae-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tae-ai-send-btn:hover {
    background: var(--tae-secondary);
    transform: scale(1.05);
}

/* Embedded Action Card inside AI Chat */
.tae-ai-card-action {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    text-align: center;
}

.tae-ai-card-action h5 {
    margin: 0 0 6px 0;
    color: var(--tae-primary);
    font-size: 0.92rem;
}

.tae-ai-card-action p {
    font-size: 0.8rem;
    color: var(--tae-text-muted);
    margin: 0 0 10px 0;
}

.tae-ai-card-btn {
    display: block;
    background: var(--tae-secondary);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.tae-ai-card-btn:hover {
    background: var(--tae-primary);
}

/* Typing indicator */
.tae-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 16px;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tae-typing-indicator span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: taeBounce 1.4s infinite ease-in-out both;
}

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

@keyframes taeBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .tae-floating-appointment-btn {
        bottom: 84px;
        right: 16px;
        padding: 10px 16px;
        font-size: 0.82rem;
    }
    .tae-ai-launcher {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .tae-ai-chat-window {
        bottom: 76px;
        right: 12px;
        left: 12px;
        width: calc(100vw - 24px);
        height: 500px;
    }
    .tae-appointment-header {
        padding: 22px 20px;
    }
    .tae-appointment-body {
        padding: 20px 18px;
    }
}
