/* ==========================================================================
   TRỢ LÝ AI DU LỊCH ĐAN ĐIỀN - PURE VANILLA CSS (FIGMA DESIGN TO CODE)
   ========================================================================== */

:root {
    --primary-dark: #004371;
    --primary-blue: #0071B4;
    --title-blue: #0D4F74;
    --accent-blue: #307399;
    --text-dark: #00233B;
    --text-muted: #6E8C9D;
    --bg-light-blue: #EFF6FB;
    --border-card: #DCECF2;
    --border-item: #D1E1E8;
    --border-active: #7EC2DD;
    --shadow-main: 0px 8px 17.5px rgba(11, 94, 122, 0.08);
    --shadow-active: 0px 0px 8px rgba(11, 94, 122, 0.15);
    --radius-card: 16px;
    --radius-item: 12px;
    --radius-pill: 999px;
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Main Container */
.dandien-app {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

/* Thẻ Card trắng bao bọc toàn bộ giao diện */
.ai-assistant-card {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-main);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    margin: 20px 0 40px;
}

/* ==========================================================================
   1. HEADER BANNER GRADIENT
   ========================================================================== */
.ai-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    border-radius: var(--radius-card);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

/* Hiệu ứng tia sáng trang trí nền banner */
.ai-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ai-banner__avatar-wrap {
    flex-shrink: 0;
}

.ai-banner__avatar {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.ai-banner__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ai-banner__tagline {
    letter-spacing: 0.5px;
    color: #C9EAFF;
    font-family: var(--font-body);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
}

.ai-banner__title {
    color: #FFF;
    font-family: var(--font-heading);
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0;
}

.ai-banner__desc {
    color: #D9EDF7;
    font-family: var(--font-body);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 0;
}

/* ==========================================================================
   2. TIÊU ĐỀ CHUNG & ICON BADGE
   ========================================================================== */
.ai-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-section__header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.ai-section__icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-section__icon-badge--pink {
    background-color: #FFDFDF;
}

.ai-section__icon-badge--green {
    background-color: #D4F6D1;
}

.ai-section__icon-badge--orange {
    background-color: #FFECD7;
}

.ai-section__title {
    font-size: 19px;
    font-weight: 700;
    color: var(--title-blue);
    flex: 1;
    margin: 0;
}

.ai-section__hint {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

/* ==========================================================================
   3. PHẦN SỞ THÍCH TRẢI NGHIỆM (EXPERIENCE CARDS)
   ========================================================================== */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
}

.experience-card {
    background: #FFFFFF;
    border: 1px solid var(--border-item);
    border-radius: var(--radius-card);
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    user-select: none;
}

.experience-card:hover {
    border-color: var(--border-active);
    background-color: #F8FBFE;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(11, 94, 122, 0.08);
}

/* Trạng thái Active được chọn */
.experience-card.is-active {
    background-color: var(--bg-light-blue);
    border: 1.5px solid var(--border-active);
    box-shadow: var(--shadow-active);
}

.experience-card__icon-box {
    width: 42px;
    height: 42px;
    background: #E6F1F9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.experience-card.is-active .experience-card__icon-box {
    background: #D7EBF8;
}

.experience-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.experience-card__title {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-M2, #00233B);
    font-family: var(--font-body);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

.experience-card__desc {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-note, #307399);
    font-family: var(--font-body);
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

/* ==========================================================================
   4. PHẦN THÔNG TIN CHUYẾN ĐI (TRIP CONFIG)
   ========================================================================== */
.trip-config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
}

.trip-config-item {
    background: var(--bg-light-blue);
    border: 1px solid var(--border-item);
    border-radius: var(--radius-item);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trip-config-item__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.trip-config-item__subtext {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-left: auto;
    white-space: nowrap;
}

/* Dropdown chọn thời gian */
.trip-config-select-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.trip-config-select {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E1EBEF;
    border-radius: 8px;
    padding: 7px 28px 7px 12px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: #0B3F55;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease;
}

.trip-config-select:focus {
    border-color: var(--accent-blue);
}

.trip-config-select-arrow {
    position: absolute;
    right: 10px;
    pointer-events: none;
}

/* Bộ đếm số người (+ / -) */
.trip-counter {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.trip-counter__btn {
    width: 28px;
    height: 28px;
    background: #FFFFFF;
    border: 1px solid #B8D9E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--title-blue);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    outline: none;
}

.trip-counter__btn:hover {
    background: var(--title-blue);
    color: #FFFFFF;
    border-color: var(--title-blue);
}

.trip-counter__btn:active {
    transform: scale(0.92);
}

.trip-counter__value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 16px;
    text-align: center;
}

/* ==========================================================================
   5. CÂU HỎI GỢI Ý & KHUNG CHAT PROMPT
   ========================================================================== */
.ai-prompt-box {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-prompt-box__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Chips gợi ý */
.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-chip {
    background: var(--bg-light-blue);
    border: 1px solid var(--border-item);
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-blue);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.suggestion-chip:hover {
    background: var(--accent-blue);
    color: #FFFFFF;
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(48, 115, 153, 0.2);
}

/* ==========================================================================
   PLANNER SELECTED PILLS (CHUẨN HỆ THỐNG AI DU LỊCH)
   ========================================================================== */
.planner-selected-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    transition: all 0.3s ease;
}

.planner-selected-pills:empty {
    display: none;
    margin-bottom: 0;
}

.planner-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-active);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--title-blue);
    box-shadow: 0 2px 8px rgba(11, 94, 122, 0.08);
    animation: pillFadeIn 0.3s ease;
    transition: all 0.25s ease;
    cursor: default;
}

.planner-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 94, 122, 0.14);
    border-color: var(--primary-blue);
}

.planner-pill__icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-blue);
}

.planner-pill__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #E8F4FA;
    color: var(--title-blue);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

.planner-pill__remove:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.planner-pill--question {
    border-color: rgba(237, 137, 54, 0.45);
    background: #FFFBF5;
}

.planner-pill--question:hover {
    border-color: #ED8936;
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.16);
    background: #FFF8EE;
}

.planner-pill--question .planner-pill__icon svg {
    stroke: #ED8936;
}

@keyframes pillFadeIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(4px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Form nhập liệu Prompt */
.ai-prompt-form {
    background: var(--bg-light-blue);
    border: 1px solid var(--border-item);
    border-radius: var(--radius-card);
    padding: 8px 10px 8px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.ai-prompt-form:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(48, 115, 153, 0.15);
    background: #FFFFFF;
}

.ai-prompt-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    outline: none;
    padding: 8px 0;
}

.ai-prompt-input::placeholder {
    color: var(--accent-blue);
    opacity: 0.8;
}

.ai-prompt-submit {
    width: 44px;
    height: 44px;
    background: var(--accent-blue);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    outline: none;
}

.ai-prompt-submit:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.ai-prompt-submit:active {
    transform: scale(0.95);
}

.ai-prompt-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-prompt-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   5.1. KHUNG CẤU HÌNH BAN ĐẦU (PLANNER VIEW)
   ========================================================================== */
.ai-planner-view {
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: fadeIn 0.3s ease;
}

.ai-planner-view.d-none {
    display: none !important;
}

/* ==========================================================================
   6. KHÔNG GIAN HỘI THOẠI & TƯƠNG TÁC THÔNG MINH (MULTI-TURN AI CHAT THREAD)
   ========================================================================== */
.ai-chat-thread {
    background: #FFFFFF;
    border-radius: 18px;
    animation: fadeIn 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.ai-chat-thread.d-none {
    display: none !important;
}

/* Header luồng trò chuyện */
.ai-thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #E2EDF3;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-thread-header__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-thread-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0071B4, #307399);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 113, 180, 0.25);
}

.ai-thread-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--title-blue);
    line-height: 1.3;
}

.ai-thread-subtitle {
    font-size: 12.5px;
    color: #64748B;
    font-weight: 500;
}

.ai-thread-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Nút Quay lại Tùy chỉnh chuyến đi */
.ai-thread-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EFF6FB;
    border: 1px solid #BEE0F3;
    color: #0071B4;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-thread-back-btn:hover {
    background: #0071B4;
    color: #FFFFFF;
    border-color: #0071B4;
    box-shadow: 0 3px 10px rgba(0, 113, 180, 0.25);
    transform: translateY(-1px);
}

.ai-thread-back-btn svg {
    transition: transform 0.2s ease;
}

.ai-thread-back-btn:hover svg {
    transform: translateX(-2px);
}

.ai-thread-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F1F6F9;
    border: 1px solid #D1E3ED;
    color: #307399;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-thread-action-btn:hover {
    background: #E0EFF7;
    color: #0071B4;
    border-color: #B8D8EA;
}

.ai-thread-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #94A3B8;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.ai-thread-close-btn:hover {
    color: #E53E3E;
}

/* Danh sách tin nhắn qua lại */
.ai-messages-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 4px;
    scroll-behavior: smooth;
}

.ai-messages-list::-webkit-scrollbar {
    width: 6px;
}
.ai-messages-list::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 3px;
}
.ai-messages-list::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

/* 1. Tin nhắn của Người dùng (User Message) */
.ai-msg-row {
    display: flex;
    width: 100%;
}

.ai-msg-row--user {
    justify-content: flex-end;
}

.ai-msg-bubble--user {
    background: linear-gradient(135deg, #0071B4, #2A6C91);
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: 18px 18px 4px 18px;
    max-width: 82%;
    box-shadow: 0 4px 14px rgba(0, 113, 180, 0.16);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-msg-user-text {
    font-size: 16px;
    line-height: 1.55;
    font-weight: 500;
}

.ai-msg-user-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ai-msg-user-tag {
    font-size: 11.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 2. Tin nhắn của Trợ lý AI (Assistant Message) */
.ai-msg-row--assistant {
    justify-content: flex-start;
    gap: 12px;
}

.ai-msg-assistant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E8F4FA;
    border: 1.5px solid #0071B4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.ai-msg-assistant-card {
    background: #F8FBFE;
    border: 1px solid #DCEAF2;
    border-radius: 4px 18px 18px 18px;
    padding: 16px 20px;
    max-width: 92%;
    box-shadow: 0 2px 8px rgba(11, 94, 122, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-msg-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #64748B;
    font-weight: 600;
    border-bottom: 1px dashed #E2EDF3;
    padding-bottom: 6px;
}

.ai-msg-assistant-content {
    font-size: 16px;
    color: #2D3748;
    line-height: 1.65;
}

.ai-msg-assistant-content p {
    margin-bottom: 8px;
}
.ai-msg-assistant-content p:last-child {
    margin-bottom: 0;
}
.ai-msg-assistant-content ul {
    margin: 6px 0 10px 18px;
}
.ai-msg-assistant-content li {
    margin-bottom: 5px;
    list-style-type: circle;
}
.ai-msg-assistant-content strong {
    color: var(--title-blue);
}

.ai-msg-assistant-content a.ai-external-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    background: #E8F4FA;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #CDE4F1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.ai-msg-assistant-content a.ai-external-link:hover {
    background: var(--primary-blue);
    color: #FFFFFF;
    border-color: var(--primary-blue);
}

/* 3. Khối gợi ý câu hỏi tiếp theo (Smart Follow-up Chips) */
.ai-followup-suggestions {
    background: #FFFFFF;
    border: 1px solid #E1EDF4;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.ai-followup-suggestions__title {
    font-size: 14px;
    font-weight: 700;
    color: #ED8936;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-followup-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ai-followup-chip-btn {
    background: #FFFBF5;
    border: 1px solid #FCD9B8;
    color: #9C4221;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.3;
}

.ai-followup-chip-btn:hover {
    background: #ED8936;
    color: #FFFFFF;
    border-color: #ED8936;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(237, 137, 54, 0.25);
}

/* Thanh Toolbar thao tác (Sao chép, In...) */
.ai-msg-actions-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

.ai-msg-tool-btn {
    background: transparent;
    border: 1px solid #E2E8F0;
    color: #64748B;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.ai-msg-tool-btn:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    color: #0071B4;
}

/* Loading Typing Indicator */
.ai-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
}
.ai-typing-dot {
    width: 7px;
    height: 7px;
    background: #307399;
    border-radius: 50%;
    animation: typingBounce 1.2s infinite ease-in-out;
}
.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Thanh Tinh Chỉnh Nhanh Option (Refine Box) */
.ai-refine-box {
    background: #F8FBFE;
    border: 1px dashed #B8D8EA;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-refine-box__title {
    font-size: 14px;
    font-weight: 700;
    color: #0D4F74;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-refine-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ai-refine-chip {
    background: #FFFFFF;
    border: 1px solid #CDE4F1;
    color: #1A365D;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ai-refine-chip:hover {
    background: #0071B4;
    color: #FFFFFF;
    border-color: #0071B4;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 113, 180, 0.2);
}

/* Ô nhập tiếp tục hội thoại (Follow-up Input) */
.ai-followup-box {
    margin-top: 4px;
}

.ai-followup-form {
    background: #F1F6F9;
    border: 1.5px solid #CBDCE6;
    border-radius: 30px;
    padding: 4px 6px 4px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.ai-followup-form:focus-within {
    border-color: #0071B4;
    box-shadow: 0 0 0 3px rgba(0, 113, 180, 0.15);
    background: #FFFFFF;
}

.ai-followup-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-dark);
    outline: none;
    padding: 8px 0;
}

.ai-followup-input::placeholder {
    color: #718096;
    font-size: 13.5px;
}

.ai-followup-submit {
    width: 38px;
    height: 38px;
    background: #0071B4;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    outline: none;
}

.ai-followup-submit:hover {
    background: #0D4F74;
    transform: scale(1.05);
}

.ai-followup-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   7. MAGIC BUBBLE ANIMATION (GSAP)
   ========================================================================== */
.magic-bubble {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 113, 180, 0.28), 0 0 0 1px rgba(126, 194, 221, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

/* Hiệu ứng nảy nhẹ khi bubble bay tới đích */
.bubble-pulse-target {
    animation: targetPulse 0.4s ease-out;
}

@keyframes targetPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
        border-color: var(--primary-blue);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet (Màn hình dưới 992px) */
@media (max-width: 992px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trip-config-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (Màn hình dưới 640px) */
@media (max-width: 640px) {
    body {
        padding: 12px 8px;
    }

    .ai-assistant-card {
        padding: 16px;
        gap: 18px;
    }

    .ai-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 12px;
    }

    .ai-banner__title {
        font-size: 20px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .trip-config-grid {
        grid-template-columns: 1fr;
    }

    .ai-section__header {
        flex-wrap: wrap;
    }

    .ai-section__title {
        font-size: 17px;
    }

    .suggestion-chips {
        gap: 6px;
    }

    .suggestion-chip {
        font-size: 12.5px;
        padding: 6px 12px;
    }
}