:root{
  --dy-primary:#0a4da2;
  --dy-secondary:#1e6fed;
  --dy-accent:#3b82f6;
  --dy-dark:#0f172a;
  --dy-muted:#64748b;
}

body.inquiry-public-body{
  min-height:100vh;
  margin:0;
  color:#0f172a;
  background:#f8fafc;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Microsoft YaHei",sans-serif;
}

.inquiry-landing{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:
    radial-gradient(circle at 15% 12%,rgba(59,130,246,.24),transparent 28%),
    radial-gradient(circle at 88% 18%,rgba(30,111,237,.18),transparent 28%),
    linear-gradient(135deg,#0f172a 0%,#1e293b 48%,#0a4da2 100%);
}

.inquiry-nav{
  width:min(1500px,calc(100vw - 72px));
  margin:0 auto;
  padding:22px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.inquiry-brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  font-size:24px;
  font-weight:800;
}

.brand-mark{
  width:48px;
  height:48px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#fff;
  color:var(--dy-primary);
  box-shadow:0 16px 30px rgba(15,23,42,.2);
  overflow:hidden;
  flex-shrink:0;
}

.brand-mark .brand-logo-img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  padding:4px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:28px;
}

.nav-links a{
  color:rgba(255,255,255,.78);
  text-decoration:none;
  font-size:15px;
  transition:color .2s ease;
}

.nav-links a:hover{
  color:#fff;
}

.nav-admin-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.28);
  color:#fff;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
  white-space:nowrap;
}

.nav-admin-btn:hover{
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.5);
  color:#fff;
  transform:translateY(-1px);
}

.inquiry-hero-grid{
  width:min(1500px,calc(100vw - 72px));
  margin:0 auto;
  flex:1;
  display:grid;
  grid-template-columns:minmax(460px,1fr) minmax(640px,760px);
  gap:56px;
  align-items:center;
  padding:34px 0 72px;
}

.hero-copy{
  color:#fff;
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 18px;
  padding:8px 12px;
  border-radius:999px;
  color:#bfdbfe;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.15);
  font-weight:600;
}

.hero-copy h1{
  margin:0 0 22px;
  font-size:clamp(46px,4.8vw,74px);
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.04em;
}

.hero-copy h1 span{
  color:#60a5fa;
}

.hero-desc{
  max-width:760px;
  margin:0 0 28px;
  color:rgba(255,255,255,.78);
  font-size:clamp(16px,1.25vw,19px);
  line-height:1.8;
}

.hero-tags{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  max-width:640px;
}

.hero-tags div{
  min-height:108px;
  padding:16px 16px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.085);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(10px);
}

.hero-tags i{
  color:#60a5fa;
  font-size:20px;
  margin-bottom:8px;
}

.hero-tags b,
.hero-tags span{
  display:block;
}

.hero-tags b{
  color:#fff;
  margin-bottom:4px;
}

.hero-tags span{
  color:rgba(255,255,255,.62);
  font-size:13px;
  line-height:1.45;
}

.quote-card{
  width:100%;
  max-width:760px;
  min-height:clamp(640px,72vh,820px);
  overflow:hidden;
  border-radius:26px;
  background:#fff;
  border:1px solid rgba(226,232,240,.9);
  box-shadow:0 18px 44px rgba(0,0,0,.22);
  transition:transform .35s ease,box-shadow .35s ease;
  justify-self:end;
}

.quote-card:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 52px rgba(0,0,0,.26);
}

.quote-card-head{
  padding:24px 26px;
  display:flex;
  align-items:center;
  gap:16px;
  color:#fff;
  background:linear-gradient(90deg,var(--dy-primary),var(--dy-secondary));
}

.bot-avatar{
  width:50px;
  height:50px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.18);
  flex:0 0 auto;
}

.quote-card-head h2{
  margin:0;
  font-size:22px;
  font-weight:800;
}

.quote-card-head p{
  margin:4px 0 0;
  color:rgba(255,255,255,.78);
  font-size:15px;
}

/* 防御：聊天气泡里不允许出现外部脚本注入的图/iframe；用户上传的货况图（.chat-user-image）除外 */
.chat-bubble img:not(.chat-user-image),
.chat-bubble svg,
.chat-bubble iframe,
.chat-bubble embed,
.chat-bubble object{
  display:none !important;
}

.chat-messages{
  height:clamp(360px,44vh,560px);
  padding:22px 24px;
  display:flex;
  flex-direction:column;
  gap:14px;
  overflow:auto;
  background:linear-gradient(180deg,#f8fafc 0%,#eef4fb 100%);
}

.chat-row{
  display:flex;
  align-items:flex-end;
  gap:10px;
  max-width:92%;
  animation:chatRowIn .28s ease-out both;
}

.chat-row.user{
  align-self:flex-end;
  flex-direction:row-reverse;
}

.chat-row.assistant{
  align-self:flex-start;
}

.chat-row.system{
  align-self:center;
  max-width:85%;
}

@keyframes chatRowIn{
  0%{opacity:0;transform:translateY(8px);}
  100%{opacity:1;transform:translateY(0);}
}

.chat-avatar{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:16px;
  box-shadow:0 6px 14px rgba(15,23,42,.12);
  background:linear-gradient(135deg,#0a4da2 0%,#1e6fed 100%);
  overflow:hidden;
  position:relative;
}

.chat-avatar .avatar-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* 图片在时，隐藏图标兜底 */
.chat-avatar .avatar-img + .avatar-fallback{
  display:none;
}

/* 图片加载失败时（onerror 添加 no-img），切换为图标 */
.chat-avatar.no-img{
  background:linear-gradient(135deg,#0a4da2 0%,#1e6fed 100%);
}
.chat-avatar.no-img .avatar-fallback{
  display:block !important;
  font-size:16px;
}

.chat-row.user .chat-avatar{
  background:linear-gradient(135deg,#94a3b8 0%,#64748b 100%);
}

.chat-row.system .chat-avatar{
  display:none;
}

.chat-bubble-wrap{
  display:flex;
  flex-direction:column;
  min-width:0;
  max-width:100%;
}

.chat-row.user .chat-bubble-wrap{
  align-items:flex-end;
}

.chat-bubble-name{
  font-size:12px;
  color:#94a3b8;
  margin:0 4px 4px;
  font-weight:600;
  letter-spacing:.4px;
}

.chat-row.user .chat-bubble-name{
  color:#64748b;
}

.chat-bubble{
  padding:12px 15px;
  border-radius:16px;
  line-height:1.55;
  font-size:15px;
  white-space:pre-wrap;
  word-break:break-word;
  position:relative;
  box-shadow:0 6px 16px rgba(15,23,42,.06);
}

.chat-row.assistant .chat-bubble{
  background:#fff;
  color:#1f2937;
  border:1px solid #e5e7eb;
  border-bottom-left-radius:4px;
}

.chat-row.thinking .chat-bubble{
  padding:10px 16px;
  background:linear-gradient(135deg,#fff 0%,#f4f8ff 100%);
  border-color:#dbeafe;
  box-shadow:0 4px 14px rgba(10,77,162,.08);
  min-width:auto;
}

.typing-status{
  display:inline-flex;
  align-items:center;
  gap:0;
}

.typing-text{
  font-size:14px;
  font-weight:500;
  color:#475569;
  letter-spacing:.02em;
  line-height:1;
}

.typing-dots{
  display:inline-flex;
  align-items:center;
  gap:3px;
  margin-left:4px;
  height:14px;
  padding-top:1px;
}

.typing-dots span{
  width:4px;
  height:4px;
  border-radius:50%;
  background:#3b82f6;
  animation:dyTypingDotPulse 1.25s infinite ease-in-out;
}

.typing-dots span:nth-child(1){
  animation-delay:0s;
}

.typing-dots span:nth-child(2){
  animation-delay:.18s;
}

.typing-dots span:nth-child(3){
  animation-delay:.36s;
}

@keyframes dyTypingDotPulse{
  0%,70%,100%{
    transform:scale(.7);
    opacity:.35;
  }
  35%{
    transform:scale(1);
    opacity:1;
  }
}

/* legacy class kept for cached pages */
.typing-indicator{
  display:inline-flex;
  align-items:center;
  gap:3px;
  height:14px;
}

.typing-indicator span{
  width:4px;
  height:4px;
  border-radius:50%;
  background:#3b82f6;
  opacity:.35;
  animation:dyTypingDotPulse 1.25s infinite ease-in-out;
}

.typing-indicator span:nth-child(2){
  animation-delay:.18s;
}

.typing-indicator span:nth-child(3){
  animation-delay:.36s;
}

@keyframes dyTypingBounce{
  0%,80%,100%{
    transform:translateY(0);
    opacity:.35;
  }
  40%{
    transform:translateY(-5px);
    opacity:1;
  }
}

@keyframes dyTypingText{
  0%,100%{
    opacity:.55;
  }
  50%{
    opacity:1;
  }
}

.chat-row.user .chat-bubble{
  background:linear-gradient(135deg,#0a4da2 0%,#1e6fed 100%);
  color:#fff;
  border-bottom-right-radius:4px;
  box-shadow:0 10px 20px rgba(10,77,162,.22);
}

.chat-user-parsed{
  margin-top:8px;
  padding:8px 10px;
  border-radius:8px;
  background:rgba(255,255,255,.14);
  font-size:12px;
  line-height:1.45;
  color:rgba(255,255,255,.95);
}
.chat-user-parsed i{
  margin-right:6px;
  opacity:.9;
}
.chat-bubble-has-image .chat-user-parsed{
  background:#f3f6fb;
  color:#334155;
}

.chat-bubble-has-image{
  padding:6px;
  background:#fff !important;
  color:#1f2937 !important;
  border:1px solid #e5e7eb;
  box-shadow:0 6px 16px rgba(15,23,42,.06) !important;
}

.chat-row.user .chat-bubble-has-image{
  border-bottom-right-radius:4px;
  border-bottom-left-radius:16px;
}

.chat-user-image-wrap{
  position:relative;
  line-height:0;
  border-radius:10px;
  overflow:hidden;
}

.chat-user-image{
  display:block;
  min-width:120px;
  min-height:80px;
  max-width:min(240px,72vw);
  max-height:280px;
  width:auto;
  height:auto;
  border-radius:10px;
  object-fit:contain;
  background:#f8fafc;
}

.chat-user-image-wrap.is-pending .chat-user-image{
  opacity:.88;
}

.chat-user-image-pending{
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.15),rgba(10,77,162,.08));
  pointer-events:none;
}

.chat-user-image-caption{
  margin-top:8px;
  padding:0 4px 2px;
  font-size:14px;
  line-height:1.45;
  color:#334155;
  white-space:pre-wrap;
  word-break:break-word;
}

.chat-user-image-placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:120px;
  min-height:80px;
  padding:12px;
  border-radius:10px;
  background:#f8fafc;
  color:#64748b;
  font-size:13px;
}

.chat-user-image-placeholder i{
  font-size:22px;
  opacity:.75;
}

.chat-messages.drag-over{
  outline:2px dashed rgba(10,77,162,.35);
  outline-offset:-6px;
  background:linear-gradient(180deg,#eef4fb 0%,#e8f0fa 100%);
}

.chat-row.system .chat-bubble{
  background:#eff6ff;
  color:#1d4ed8;
  border:1px dashed #bfdbfe;
  font-size:13px;
  text-align:center;
}

/* 兼容老结构：若仍有 .chat-message 直接节点也能正常显示 */
.chat-message{
  max-width:86%;
  padding:12px 15px;
  border-radius:16px;
  line-height:1.55;
  font-size:15px;
  white-space:pre-wrap;
  word-break:break-word;
}

.chat-message.user{
  align-self:flex-end;
  background:linear-gradient(135deg,#0a4da2 0%,#1e6fed 100%);
  color:#fff;
  border-bottom-right-radius:4px;
  box-shadow:0 10px 20px rgba(10,77,162,.22);
}

.chat-message.assistant{
  align-self:flex-start;
  background:#fff;
  color:#1f2937;
  border:1px solid #e5e7eb;
  border-bottom-left-radius:4px;
  box-shadow:0 6px 16px rgba(15,23,42,.06);
}

.chat-message.system{
  align-self:center;
  background:#eff6ff;
  color:#1d4ed8;
  border:1px dashed #bfdbfe;
  font-size:13px;
}

.chat-composer{
  border-top:1px solid #e2e8f0;
  padding:12px 16px 16px;
  background:#fff;
}

.composer-bar{
  display:flex;
  align-items:flex-end;
  gap:8px;
}

.composer-input-row{
  flex:1;
  min-width:0;
  display:flex;
  align-items:flex-end;
  gap:8px;
}

.composer-icon-btn{
  flex-shrink:0;
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  background:#f8fafc;
  color:#475569;
  display:grid;
  place-items:center;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}

.composer-icon-btn i{
  pointer-events:none;
}

.composer-icon-btn:hover{
  background:#eff6ff;
  border-color:#93c5fd;
  color:var(--dy-primary);
}

.composer-icon-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.chat-messages.drag-over{
  outline:2px dashed #93c5fd;
  outline-offset:-4px;
  background:#eff6ff!important;
}

.chat-composer textarea{
  flex:1;
  min-width:0;
  min-height:88px;
  max-height:200px;
  padding:12px 14px;
  border-radius:14px;
  resize:vertical;
  overflow-y:auto;
  border-color:#e2e8f0;
  box-shadow:none!important;
  font-size:16px;
  line-height:1.55;
}

.chat-composer textarea:focus{
  border-color:var(--dy-primary);
  box-shadow:0 0 0 4px rgba(10,77,162,.1)!important;
}

.send-btn{
  position:relative;
  flex-shrink:0;
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  border:0;
  border-radius:12px;
  color:#fff;
  background:var(--dy-primary);
  display:grid;
  place-items:center;
  box-shadow:0 10px 20px rgba(10,77,162,.22);
  transition:background .2s ease,transform .2s ease;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  z-index:2;
}

.send-btn i{
  pointer-events:none;
}

.send-btn:disabled{
  cursor:not-allowed;
  opacity:.85;
}

.send-btn:hover{
  background:#083f86;
  transform:translateY(-1px);
}

.attach-preview{
  margin-bottom:8px;
  padding:8px 10px;
  border-radius:10px;
  background:#f1f5f9;
  font-size:.85rem;
}
.attach-preview img{
  max-height:120px;
  border-radius:6px;
  margin-top:6px;
}
.composer-image-preview{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.composer-image-thumb-wrap{
  position:relative;
  flex-shrink:0;
}
.composer-image-thumb{
  display:block;
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #dbeafe;
  background:#fff;
}
.composer-image-remove{
  position:absolute;
  top:-6px;
  right:-6px;
  width:22px;
  height:22px;
  padding:0;
  border:none;
  border-radius:50%;
  background:rgba(15,23,42,.72);
  color:#fff;
  font-size:12px;
  line-height:22px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.composer-image-remove:hover{
  background:rgba(185,28,28,.9);
}
.composer-image-hint{
  color:#64748b;
  font-size:.8rem;
  line-height:1.4;
}

.chat-bubble-prompt,
.chat-bubble-rich{
  max-width:100%;
  padding:14px 16px;
}

.chat-bubble-has-slip{
  max-width:100%;
}

.chat-msg-intro{
  white-space:pre-wrap;
  line-height:1.55;
  font-size:15px;
  color:#1f2937;
}

.chat-msg-intro + .chat-quote-card,
.chat-msg-intro + .chat-business-fact-card,
.chat-msg-intro + .chat-booking-cta,
.chat-quote-card + .chat-business-fact-card,
.chat-business-fact-card + .chat-booking-cta,
.chat-quote-card + .chat-booking-cta{
  margin-top:12px;
}

.chat-business-fact-card{
  border:1px solid #bfdbfe;
  border-radius:12px;
  background:#f8fbff;
  padding:12px 14px;
  color:#1e3a5f;
  box-shadow:0 4px 14px rgba(10,77,162,.05);
}

.chat-business-fact-title{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:13px;
  font-weight:750;
  color:#0a4da2;
}

.chat-business-fact-badge{
  margin-left:auto;
  border-radius:999px;
  padding:2px 8px;
  background:#dcfce7;
  color:#166534;
  font-size:11px;
  font-weight:700;
}

.chat-business-fact-card ul{
  margin:9px 0 0;
  padding-left:18px;
  display:grid;
  gap:5px;
  font-size:13px;
  line-height:1.5;
}

.chat-business-fact-meta{
  margin-top:9px;
  padding-top:8px;
  border-top:1px solid #dbeafe;
  color:#64748b;
  font-size:11px;
}

.chat-quote-card{
  border-radius:12px;
  overflow:hidden;
  border:1px solid #dbeafe;
  background:linear-gradient(165deg,#f8fbff 0%,#eff6ff 100%);
  box-shadow:0 4px 14px rgba(10,77,162,.06);
}

.chat-quote-card-head{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  background:linear-gradient(90deg,#0a4da2 0%,#1e6fed 100%);
  color:#fff;
  font-size:13px;
  font-weight:700;
}

.chat-quote-card-head i{
  font-size:14px;
  opacity:.92;
}

.chat-quote-port{
  margin-left:auto;
  padding:2px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  font-size:12px;
  font-weight:700;
  letter-spacing:.5px;
}

.chat-quote-metrics{
  display:grid;
  gap:0;
  padding:4px 0;
}

.chat-quote-metric{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  border-bottom:1px solid #e0f2fe;
  font-size:13px;
}

.chat-quote-metric:last-child{
  border-bottom:0;
}

.chat-quote-metric-label{
  color:#64748b;
  flex-shrink:0;
  font-weight:600;
}

.chat-quote-metric-value{
  color:#0f172a;
  font-weight:700;
  text-align:right;
  line-height:1.45;
}

.chat-quote-metric-price .chat-quote-metric-value{
  color:#0a4da2;
  font-size:14px;
}

.chat-quote-metric-tier .chat-quote-metric-label{
  color:#64748b;
}

.chat-quote-metric-tier .chat-quote-metric-value{
  color:#334155;
  font-weight:600;
}

.chat-quote-metric-bump{
  background:#fffbeb;
  border-color:#fde68a;
}

.chat-quote-metric-bump .chat-quote-metric-label{
  color:#b45309;
  font-weight:600;
}

.chat-quote-metric-bump .chat-quote-metric-value{
  color:#92400e;
  font-weight:600;
}

.chat-quote-metric-surcharge{
  background:#f8fafc;
}

.chat-quote-surcharge-list{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.chat-quote-surcharge-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 8px;
  border-radius:999px;
  background:#f1f5f9;
  border:1px solid #dbeafe;
  color:#334155;
  font-size:11px;
  line-height:1.2;
}

.chat-quote-surcharge-name{
  font-weight:700;
}

.chat-quote-surcharge-delta{
  color:#0a4da2;
  font-weight:800;
}

.chat-quote-disclaimer{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:8px 14px 10px;
  font-size:11px;
  line-height:1.45;
  color:#475569;
  border-top:1px solid #e0f2fe;
  background:rgba(255,255,255,.72);
}

.chat-quote-disclaimer i{
  margin-top:2px;
  color:#0a4da2;
  font-size:12px;
  flex-shrink:0;
}

.chat-quote-cargo{
  padding:8px 14px 12px;
  font-size:12px;
  color:#475569;
  border-top:1px dashed #bfdbfe;
  background:rgba(255,255,255,.55);
}

.chat-booking-cta{
  border-radius:12px;
  padding:12px 14px;
  background:#fff;
  border:1px solid #e2e8f0;
  box-shadow:0 2px 10px rgba(15,23,42,.04);
}

.chat-booking-cta-lead{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}

.chat-booking-cta-icon{
  width:40px;
  height:40px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  color:#0a4da2;
  background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);
  font-size:18px;
}

.chat-booking-cta-lead strong{
  display:block;
  font-size:14px;
  color:#0f172a;
  margin-bottom:2px;
}

.chat-booking-cta-lead p{
  margin:0;
  font-size:12px;
  line-height:1.45;
  color:#64748b;
}

.chat-slip-intro{
  white-space:pre-wrap;
  line-height:1.55;
}

.chat-slip-summary{
  margin-top:12px;
  padding:12px 14px;
  border-radius:12px;
  background:linear-gradient(165deg,#f8fbff 0%,#f0f9ff 100%);
  border:1px solid #bae6fd;
  box-shadow:0 4px 14px rgba(3,105,161,.06);
}

.chat-slip-summary-title{
  font-size:13px;
  font-weight:700;
  color:#0369a1;
  margin-bottom:8px;
}

.chat-slip-port{
  font-size:13px;
  color:#0f172a;
  margin-bottom:8px;
}

.chat-slip-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:5px 0;
  border-bottom:1px dashed #e0f2fe;
  font-size:13px;
}

.chat-slip-row:last-child{
  border-bottom:0;
}

.chat-slip-label{
  color:#64748b;
  flex-shrink:0;
}

.chat-slip-value{
  color:#0f172a;
  font-weight:600;
  text-align:right;
}

.chat-booking-prompt p{
  margin:0 0 10px;
  font-size:14px;
  line-height:1.55;
  color:#0f172a;
}

.chat-booking-hint{
  margin-top:10px!important;
  font-size:12px;
  color:#64748b!important;
}

.chat-booking-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.chat-booking-cta .chat-booking-actions{
  margin-bottom:0;
}

.chat-slip-actions{
  margin-top:12px;
  padding-top:10px;
  border-top:1px dashed #bae6fd;
}

.chat-action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  border:1px solid transparent;
  transition:background .15s ease,box-shadow .15s ease,transform .12s ease;
}

.chat-action-btn:active{
  transform:scale(.98);
}

.chat-action-primary{
  flex:1 1 auto;
  min-width:140px;
  color:#fff;
  background:linear-gradient(135deg,#0a4da2 0%,#1e6fed 100%);
  border-color:#0a4da2;
  box-shadow:0 6px 16px rgba(10,77,162,.22);
}

.chat-action-primary:hover{
  background:linear-gradient(135deg,#083d82 0%,#1a5fd4 100%);
  box-shadow:0 8px 20px rgba(10,77,162,.28);
}

.chat-action-secondary{
  flex:1 1 auto;
  min-width:120px;
  color:#0a4da2;
  background:#fff;
  border-color:#93c5fd;
}

.chat-action-secondary:hover{
  background:#eff6ff;
}

.chat-action-outline{
  color:#0a4da2;
  background:#fff;
  border-color:#93c5fd;
}

.chat-action-outline:hover{
  background:#eff6ff;
}
.quote-result-panel{
  display:none;
}

.quote-card.has-active-quote .quote-result-panel{
  display:block;
  padding:16px 20px 0;
}

.quote-result-time{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  padding:8px 12px;
  border-radius:10px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#1e40af;
  font-size:13px;
  font-weight:600;
  line-height:1.4;
}

.quote-result-time i{
  opacity:.85;
}

.chat-quote-time-bar{
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  background:#f8fbff;
  border-bottom:1px solid #dbeafe;
  color:#475569;
  font-size:12px;
  font-weight:600;
  line-height:1.35;
}

.chat-quote-time-bar i{
  color:#2563eb;
  font-size:12px;
  flex-shrink:0;
}

.parse-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.parse-badge{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:8px 12px;
  font-size:13px;
}

.parse-badge.missing{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#c2410c;
}

.summary-box{
  margin-top:12px;
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  border-radius:14px;
  padding:12px 14px;
  font-size:14px;
  color:#334155;
}

.result-card-body{
  padding:16px 20px 20px;
}

.result-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.result-item{
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px 16px;
  background:#ffffff;
}

.result-item-full{
  grid-column:1 / -1;
}

.result-label{
  display:block;
  color:#64748b;
  font-size:12px;
  margin-bottom:6px;
}

.result-value{
  display:block;
  color:#0f172a;
  font-size:16px;
  line-height:1.45;
  white-space:pre-line;
}

.quote-source-hint{
  margin-top:10px;
  padding:8px 10px;
  font-size:12px;
  line-height:1.5;
  color:#64748b;
  background:#f1f5f9;
  border-radius:10px;
  border:1px solid #e2e8f0;
}

.draft-readonly{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.draft-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:8px 12px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  color:#0f172a;
  font-size:13px;
}

.draft-chip b{
  color:#64748b;
  font-weight:500;
}

.result-actions{
  margin-top:18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.service-section{
  padding:64px 24px;
  background:#fff;
}

.service-head{
  max-width:760px;
  margin:0 auto 42px;
  text-align:center;
}

.service-head h2{
  margin:0 0 12px;
  font-size:clamp(30px,4vw,44px);
  font-weight:900;
  letter-spacing:-.03em;
}

.service-head p{
  margin:0;
  color:#64748b;
  font-size:17px;
}

.service-grid{
  width:min(1180px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
}

.service-grid article{
  padding:26px;
  border-radius:22px;
  background:#f8fafc;
  border:1px solid #eef2f7;
  transition:box-shadow .25s ease,transform .25s ease;
}

.service-grid article:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 38px rgba(15,23,42,.08);
}

.service-grid i{
  width:54px;
  height:54px;
  border-radius:16px;
  display:grid;
  place-items:center;
  margin-bottom:20px;
  color:var(--dy-primary);
  background:rgba(10,77,162,.1);
  font-size:24px;
}

.service-grid h3{
  margin:0 0 10px;
  font-size:20px;
  font-weight:800;
}

.service-grid p{
  margin:0;
  color:#64748b;
  line-height:1.65;
}

.draft-success{
  background:#ecfdf5;
  border:1px solid #bbf7d0;
  color:#166534;
  border-radius:14px;
  padding:14px 16px;
  margin-top:18px;
  white-space:pre-line;
}

.price-compare-box{
  margin-top:12px;
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  line-height:1.6;
  background:#fffbeb;
  border:1px solid #fde68a;
  color:#92400e;
}
.price-compare-box.ok{
  background:#ecfdf5;
  border-color:#bbf7d0;
  color:#166534;
}
.price-compare-box strong{
  font-weight:700;
}

.booking-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.42);
  z-index:1040;
}

.booking-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:1050;
}

.booking-modal-card{
  width:min(460px,100%);
  background:#fff;
  border-radius:18px;
  border:1px solid #e5e7eb;
  box-shadow:0 24px 48px rgba(15,23,42,.18);
}

.booking-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 20px 0;
}

.booking-modal-head h3{
  margin:0;
  font-size:20px;
  font-weight:700;
}

.booking-modal-body{
  padding:14px 20px 18px;
}

.booking-modal-foot{
  padding:0 20px 20px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

@media (max-width: 991.98px){
  .inquiry-landing{
    min-height:100dvh;
  }

  .inquiry-nav{
    width:calc(100vw - 24px);
    padding:14px 0;
  }

  .inquiry-brand{
    font-size:18px;
    gap:10px;
  }

  .brand-mark{
    width:40px;
    height:40px;
    border-radius:12px;
  }

  .nav-links{
    display:none;
  }

  .nav-admin-btn{
    padding:6px 12px;
    font-size:13px;
  }
  .nav-admin-btn span{
    display:none;
  }

  .inquiry-hero-grid{
    width:calc(100vw - 24px);
    grid-template-columns:1fr;
    gap:20px;
    padding:12px 0 calc(20px + env(safe-area-inset-bottom, 0px));
    align-items:stretch;
  }

  .hero-copy{
    text-align:center;
  }

  .hero-copy h1{
    font-size:clamp(32px,9vw,44px);
    margin-bottom:14px;
  }

  .hero-desc{
    font-size:15px;
    line-height:1.65;
    margin-bottom:18px;
  }

  .hero-kicker{
    font-size:13px;
    margin-bottom:12px;
  }

  .hero-tags{
    grid-template-columns:1fr;
    max-width:none;
    gap:10px;
  }

  .hero-tags div{
    min-height:auto;
    padding:12px 14px;
  }

  .quote-card{
    max-width:none;
    min-height:auto;
    border-radius:20px;
    justify-self:stretch;
    display:flex;
    flex-direction:column;
    max-height:none;
  }

  .quote-card:hover{
    transform:none;
  }

  .quote-card-head{
    padding:16px 18px;
  }

  .quote-card-head h2{
    font-size:18px;
  }

  .quote-card-head p{
    font-size:13px;
  }

  .chat-messages{
    flex:1 1 auto;
    height:auto;
    min-height:min(52vh,480px);
    max-height:min(58vh,520px);
    padding:16px 14px;
  }

  .chat-composer{
    position:sticky;
    bottom:0;
    z-index:20;
    padding:10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow:0 -8px 24px rgba(15,23,42,.08);
  }

  .chat-composer textarea{
    min-height:80px;
    max-height:180px;
    font-size:16px;
    line-height:1.55;
  }

  .composer-bar{
    gap:6px;
  }

  .composer-input-row{
    gap:6px;
  }

  .chat-message,
  .chat-row{
    max-width:100%;
  }

  .chat-bubble{
    font-size:15px;
  }

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

  .service-section{
    padding:40px 16px calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .service-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .service-grid article{
    padding:20px;
  }

  .booking-modal{
    align-items:flex-end;
    padding:0;
  }

  .booking-modal-card{
    width:100%;
    max-height:92dvh;
    border-radius:18px 18px 0 0;
    overflow:auto;
  }

  .booking-modal-foot{
    padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 575.98px){
  .hero-tags{
    display:none;
  }

  .hero-desc{
    font-size:14px;
  }

  .chat-messages{
    min-height:min(48vh,400px);
    max-height:min(54vh,460px);
  }
}

@media (min-width: 992px) and (max-width: 1199.98px){
  .inquiry-hero-grid{
    gap:34px;
    grid-template-columns:minmax(420px,1fr) minmax(560px,680px);
  }

  .service-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px){
  .inquiry-nav,
  .inquiry-hero-grid{
    width:min(1320px,calc(100vw - 56px));
  }

  .inquiry-hero-grid{
    grid-template-columns:minmax(440px,1fr) minmax(620px,740px);
    gap:38px;
  }

  .hero-copy h1{
    font-size:clamp(50px,5vw,76px);
  }

  .quote-card{
    min-height:clamp(620px,70vh,780px);
  }

  .chat-messages{
    height:clamp(340px,42vh,520px);
  }
}
