/* [CHATBOT-20261029] AI 客服小編：引導按鈕、表單、照片上傳（沿用對話視窗原本的藍色系） */
.ai-chat-body { scroll-behavior: auto; }
.ai-msg-bot .ai-msg-bubble { cursor: default; }
.aqc-code { background: #E2E8F0; padding: 1px 4px; border-radius: 4px; font-family: monospace; font-size: 12px; }
.aqc-step { display: inline-block; font-size: 11px; font-weight: 700; color: #0369A1; background: #E0F2FE; border-radius: 10px; padding: 0 7px; margin-right: 4px; vertical-align: 1px; }
.aqc-tip .ai-msg-bubble { background: #FFFBEB !important; border-color: #FDE68A !important; color: #78350F !important; font-size: 13px; }

/* 按鈕組 */
.aqc-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-left: 34px; margin-top: -6px; animation: aiMsgIn .25s ease; }
.aqc-btn { appearance: none; border: 1.5px solid #BAE6FD; background: #FFFFFF; color: #0369A1; border-radius: 18px; padding: 7px 13px;
    font-size: 13px; font-weight: 600; line-height: 1.35; cursor: pointer; text-align: left; text-decoration: none !important;
    display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s, border-color .15s, transform .1s; font-family: inherit; }
.aqc-btn:hover { background: #0284C7; border-color: #0284C7; color: #FFFFFF; }
.aqc-btn:active { transform: scale(.97); }
.aqc-btn-primary { background: #0284C7; border-color: #0284C7; color: #FFFFFF; }
.aqc-btn-primary:hover { background: #0369A1; border-color: #0369A1; }
.aqc-btn-ghost { border-color: #E2E8F0; color: #64748B; font-weight: 500; font-size: 12.5px; padding: 5px 11px; }
.aqc-btn-ghost:hover { background: #F1F5F9; color: #334155; border-color: #CBD5E1; }
.aqc-actions.is-used .aqc-btn { opacity: .45; pointer-events: none; }
.aqc-actions.is-used .aqc-btn.is-picked { opacity: 1; background: #E0F2FE; color: #0369A1; border-color: #7DD3FC; }
.aqc-nav { margin-top: -8px; }

/* 主選單：兩欄卡片 */
.aqc-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aqc-menu .aqc-btn { border-radius: 12px; padding: 10px 11px; font-size: 13px; min-height: 46px; }
.aqc-menu .aqc-ico { font-size: 17px; line-height: 1; flex-shrink: 0; }
.aqc-options .aqc-btn { border-radius: 12px; }

/* 表單卡片 */
.aqc-form-row { padding-left: 34px; animation: aiMsgIn .3s ease; }
.aqc-form { background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 14px; padding: 14px 14px 12px; box-shadow: 0 2px 10px rgba(2, 132, 199, .08); }
.aqc-form-hd { font-size: 14.5px; font-weight: 700; color: #0F172A; margin-bottom: 8px; }
.aqc-summary { list-style: none; margin: 0 0 12px; padding: 8px 10px; background: #F8FAFC; border-radius: 8px; font-size: 12px; line-height: 1.6; }
.aqc-summary li { display: flex; justify-content: space-between; gap: 10px; }
.aqc-summary li span { color: #94A3B8; flex-shrink: 1; }
.aqc-summary li b { color: #0F172A; font-weight: 600; text-align: right; }
.aqc-field { margin-bottom: 11px; }
.aqc-label { display: block; font-size: 12.5px; font-weight: 700; color: #334155; margin-bottom: 4px; }
.aqc-req { color: #DC2626; font-style: normal; }
.aqc-input { width: 100%; box-sizing: border-box; border: 1.5px solid #CBD5E1; border-radius: 9px; padding: 8px 10px; font-size: 14px; color: #0F172A;
    background: #FFFFFF; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
.aqc-input:focus { border-color: #0284C7; box-shadow: 0 0 0 3px rgba(2, 132, 199, .12); }
textarea.aqc-input { resize: vertical; min-height: 64px; }
.aqc-help { font-size: 11.5px; color: #94A3B8; margin-top: 3px; line-height: 1.45; }
.aqc-err { font-size: 12px; color: #DC2626; margin-top: 3px; font-weight: 600; }
.aqc-field.has-err .aqc-input { border-color: #F87171; }
.aqc-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.aqc-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #334155; border: 1.5px solid #E2E8F0; border-radius: 16px; padding: 4px 10px; cursor: pointer; }
.aqc-check input { accent-color: #0284C7; margin: 0; }
.aqc-check:has(input:checked) { border-color: #7DD3FC; background: #F0F9FF; color: #0369A1; }
.aqc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* 照片 */
.aqc-thumbs { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0; }
.aqc-thumbs:empty { display: none; }
.aqc-thumb { position: relative; width: 62px; height: 62px; border-radius: 8px; background: #F1F5F9 center / cover no-repeat; border: 1px solid #E2E8F0; overflow: hidden; }
.aqc-thumb.is-loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border: 2px solid #BAE6FD; border-top-color: #0284C7; border-radius: 50%; animation: aqcSpin .8s linear infinite; }
.aqc-thumb.is-file { background: #F0F9FF; }
.aqc-thumb-name { position: absolute; left: 3px; right: 3px; bottom: 3px; font-size: 9px; color: #0369A1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aqc-thumb-x { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(15, 23, 42, .65); color: #fff; font-size: 13px;
    line-height: 18px; text-align: center; cursor: pointer; z-index: 1; }
.aqc-upload { display: flex; align-items: center; justify-content: center; border: 1.5px dashed #7DD3FC; background: #F0F9FF; color: #0369A1; border-radius: 10px;
    padding: 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; }
.aqc-upload:hover { background: #E0F2FE; }
@keyframes aqcSpin { to { transform: rotate(360deg); } }

.aqc-form-err { background: #FEF2F2; color: #B91C1C; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin-bottom: 8px; font-weight: 600; }
.aqc-submit { width: 100%; border: none; background: linear-gradient(135deg, #0284C7, #0369A1); color: #fff; font-size: 14.5px; font-weight: 700; border-radius: 10px;
    padding: 11px; cursor: pointer; font-family: inherit; box-shadow: 0 4px 12px rgba(2, 132, 199, .25); }
.aqc-submit:disabled { opacity: .65; cursor: wait; }
.aqc-privacy { font-size: 11px; color: #94A3B8; text-align: center; margin-top: 7px; }
.aqc-sent { font-size: 14.5px; font-weight: 700; color: #065F46; text-align: center; padding: 6px 0; }
.aqc-sent span { display: block; font-size: 12px; color: #64748B; font-weight: 600; margin-top: 3px; }

/* 快捷列：每個服務一顆 */
.ai-quick-chips .ai-chip-btn { font-weight: 600; }

@media (max-width: 768px) {
    .aqc-input { font-size: 16px; }              /* iOS 輸入框小於 16px 會自動放大畫面 */
    .aqc-actions, .aqc-form-row { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .aqc-actions, .aqc-form-row { animation: none; }
}
