@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #E60000;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --background-light: #F9FAFB;
}
html { height: 100%; }
body { font-family: 'Inter', sans-serif; background-color: #fff; margin: 0; height: 100%; color: var(--text-dark); }
.onboarding-container { width: 100%; height: 100%; background-color: #fff; display: flex; flex-direction: column; overflow: hidden; }
.simple-header { text-align: center; padding: 16px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.simple-header h1 { font-size: 18px; font-weight: 600; margin: 0; }
.progress-container { padding: 8px 24px; flex-shrink: 0; }
#progress-labels { display: flex; justify-content: space-between; margin-bottom: 4px; }
.progress-label { font-size: 12px; font-weight: 500; color: var(--text-muted); transition: color 0.4s ease-in-out; }
.progress-label.active { color: var(--primary-color); font-weight: 600; }
#progress-indicator { display: flex; gap: 8px; }
.progress-segment { flex: 1; height: 6px; border-radius: 3px; background-color: #E5E7EB; transition: background-color 0.4s ease-in-out; }
.progress-segment.active { background-color: var(--primary-color); }
#content-area { flex: 1; position: relative; overflow-y: auto; }
#welcome-screen, #choice-screen, #chat-view, #recovery-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; box-sizing: border-box; }
#welcome-screen, #choice-screen, #recovery-screen { padding: 24px 24px 48px; text-align: center; animation: fadeIn 0.5s ease-out; }
.welcome-header { margin-bottom: 12px; }
.welcome-avatar { width: 80px; height: 80px; border-radius: 50%; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.concierge-name-tag { margin-top: 16px; font-size: 12px; font-weight: 600; }
.initial-bubble { background: var(--background-light); padding: 15px 20px; border-radius: 20px; border-bottom-left-radius: 6px; max-width: 100%; margin: 12px auto 0 auto; line-height: 1.6; font-size: 18px; text-align: center; }
.initial-choices { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.choice-button { width: 100%; padding: 16px; border-radius: 12px; border: 1px solid var(--primary-color); background-color: #fff; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; box-sizing: border-box; }
.choice-button:hover { border-color: var(--border-color); }
.choice-button.single-line { flex-direction: row; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.button-main-text { font-size: 16px; font-weight: 600; color: var(--text-dark); }
.button-sub-text { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.ukrainian-prompt { font-weight: 600; margin-top: 24px; margin-bottom: -12px; }
.chat-body-styled { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column-reverse; background-color: var(--background-light); }
@keyframes fadeIn { from { opacity: 0; } to: { opacity: 1; } }
.message-wrapper { margin-bottom: 12px; display: flex; max-width: 100%; align-items: flex-end; }
.concierge { justify-content: flex-start; }
.user { justify-content: flex-end; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; margin-right: 10px; flex-shrink: 0; }
.bubble { padding: 12px 16px; border-radius: 20px; max-width: 85%; line-height: 1.6; font-size: 16px; }
.concierge .bubble { background: #fff; color: var(--text-dark); border: 1px solid #E5E7EB; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.user .bubble { background: var(--primary-color); color: white; border-bottom-right-radius: 6px; }
.concierge .bubble.question-bubble { font-weight: 500; background-color: #fcebeb; border: none; }
.chat-input-area-styled { position: sticky; bottom: 0; width: 100%; padding: 12px; border-top: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); box-sizing: border-box; }
#quick-replies-container { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-reply-btn { flex: 1 1 45%; margin: 0; padding: 14px 8px; min-height: 50px; border-radius: 10px; background: #fff; border: 1px solid var(--border-color); color: var(--text-dark); cursor: pointer; font-size: 15px; font-weight: 500; transition: all 0.2s; text-align: center; box-sizing: border-box; }
.quick-reply-btn:hover, .quick-reply-btn.selected { background-color: var(--primary-color); border-color: var(--primary-color); color: white; }
.continue-btn { flex-basis: 100%; background-color: var(--primary-color); color: white; font-weight: 600; padding: 16px; border: none; }
.quick-reply-btn.primary-action { background-color: var(--primary-color); color: white; border-color: var(--primary-color); font-weight: 600; animation: pulse 1.5s infinite; }
.quick-reply-btn.primary-action:hover { background-color: #c40000; border-color: #c40000; animation: none; }
.quick-reply-btn.primary-action .button-main-text { color: white; }
.quick-reply-btn.primary-action .button-sub-text { color: rgba(255, 255, 255, 0.85); }
.review-draft-container { background-color: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.review-draft-container:focus-within { animation: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.2); }
.review-draft-textarea { width: 100%; height: 150px; padding: 0; border: none; background: transparent; font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.6; resize: none; outline: none; }
.typing-indicator .bubble { display: flex; align-items: center; padding: 12px 15px; }

/* --- ОСНОВНА ЗМІНА ТУТ --- */
.dot {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #9CA3AF;
    border-radius: 50%;
    /* Повертаємо нескінченний цикл */
    animation: bounce 1.3s infinite ease-in-out; 
}
/* --- КІНЕЦЬ ЗМІНИ --- */

.dot:nth-child(2) { animation-delay: 0.1s; }
.dot:nth-child(3) { animation-delay: 0.2s; }

@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1.0); } }
@keyframes pulse-border { 0%, 100% { border-color: var(--border-color); box-shadow: 0 2px 4px rgba(0,0,0,0.05); } 50% { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(230, 0, 0, 0.2); } }
.review-draft-container.pulsing-highlight { animation: pulse-border 2s infinite ease-in-out; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.4); } 70% { box-shadow: 0 0 0 8px rgba(230, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(230, 0, 0, 0); } }
.hidden { display: none !important; }

.google-fallback { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border-color); }
.google-fallback p { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin: 0 0 16px 0; }
.google-fallback button { background: none; border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 16px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: var(--text-dark); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.google-fallback button:hover { border-color: #4285F4; color: #4285F4; }

