/* ============================================================
   rfq-demo.css  —  AI-Powered RFQ Assistant Demo
   /en/demo-rfq-assistant.html
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.rfq_hero {
  background: #1C2B1A;
  padding: 130px 0 60px;
  position: relative;
  overflow: hidden;
}
.rfq_hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(90,142,73,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.rfq_hero_eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ED464;
  background: rgba(126,212,100,0.12);
  border: 1px solid rgba(126,212,100,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
.rfq_hero_headline {
  font-size: 42px;
  font-weight: 800;
  color: #FAFAF5;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.rfq_hero_headline em {
  font-style: normal;
  color: #7ED464;
}
.rfq_hero_sub {
  font-size: 17px;
  color: rgba(250,250,245,0.72);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}
.rfq_hero_proof {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.rfq_hero_proof_item {
  display: flex;
  flex-direction: column;
}
.rfq_hero_proof_num {
  font-size: 22px;
  font-weight: 800;
  color: #FAFAF5;
}
.rfq_hero_proof_label {
  font-size: 12px;
  color: rgba(250,250,245,0.5);
}

/* ── Hero score card teaser ──────────────────────────────── */
.rfq_score_card_preview {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.rfq_score_card_top {
  background: #3E5E3A;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rfq_score_card_top_dot {
  width: 9px; height: 9px;
  background: #7ED464;
  border-radius: 50%;
}
.rfq_score_card_top_label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.rfq_score_card_body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rfq_score_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #F5F5F2;
  font-size: 13px;
}
.rfq_score_row strong { color: #333; }
.rfq_score_row span { color: #555; }
.rfq_score_badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.rfq_score_badge.green  { background: #e6f4e0; color: #3E5E3A; }
.rfq_score_badge.yellow { background: #fff3cd; color: #856404; }
.rfq_score_badge.red    { background: #fde8e4; color: #C23B22; }
.rfq_readiness_bar_wrap {
  padding: 14px 20px 18px;
  background: #F5F5F2;
}
.rfq_readiness_label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.rfq_readiness_bar_bg {
  height: 8px;
  background: #e0ddd8;
  border-radius: 4px;
  overflow: hidden;
}
.rfq_readiness_bar_fill {
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, #3E5E3A, #7ED464);
  border-radius: 4px;
  transition: width 1s ease;
}

/* ── Step flow strip ─────────────────────────────────────── */
.rfq_steps_strip {
  background: #F5F5F2;
  border-top: 1px solid #DAD8D3;
  border-bottom: 1px solid #DAD8D3;
  padding: 48px 0;
}
.rfq_step_item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.rfq_step_num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: #3E5E3A;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.rfq_step_text h5 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}
.rfq_step_text p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* ── Demo section ────────────────────────────────────────── */
.rfq_demo_section {
  background: #fff;
  padding: 70px 0;
}
.rfq_demo_label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3E5E3A;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.rfq_live_dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #7ED464;
  border-radius: 50%;
  margin-right: 7px;
  flex-shrink: 0;
  position: relative;
}
.rfq_live_dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #7ED464;
  opacity: 0;
  animation: rfq_live_pulse 2s ease-out infinite;
}
@keyframes rfq_live_pulse {
  0%   { transform: scale(0.6); opacity: 0.7; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
.rfq_live_dot.offline             { background: #C23B22; }
.rfq_live_dot.offline::after      { border-color: #C23B22; }
.rfq_demo_title {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.rfq_demo_sub {
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ── Chat panel ──────────────────────────────────────────── */
.rfq_chat_panel {
  border: 1px solid #e0ddd8;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 28px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  height: 560px;
}
.rfq_chat_header {
  background: #3E5E3A;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.rfq_chat_avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  position: relative;
}
.rfq_chat_avatar_dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 9px; height: 9px;
  background: #7ED464;
  border-radius: 50%;
  border: 2px solid #3E5E3A;
}
.rfq_chat_header_text { display: flex; flex-direction: column; gap: 1px; }
.rfq_chat_title    { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.rfq_chat_subtitle { font-size: 11.5px; color: rgba(255,255,255,0.75); }

.rfq_chat_window {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  background: #F2F2F0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

/* Messages */
.rfq_msg_bot_wrap  { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rfq_msg_user_wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rfq_msg_label { font-size: 11px; color: #888; margin: 0 4px; }
.rfq_msg_bot_bubble {
  background: #fff;
  color: #333;
  border: 1px solid #e0ddd8;
  border-radius: 4px 18px 18px 18px;
  padding: 11px 15px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 88%;
}
.rfq_msg_user_bubble {
  background: #f5e5c2;
  color: #2a1f00;
  border-radius: 18px 4px 18px 18px;
  padding: 11px 15px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 88%;
}

/* Suggestion chips */
.rfq_suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.rfq_chip {
  background: #fff;
  border: 1.5px solid #3E5E3A;
  color: #3E5E3A;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.rfq_chip:hover { background: #3E5E3A; color: #fff; }

/* Request Quotation CTA inside chat */
.rfq_quote_cta_row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 0;
}
.rfq_quote_cta_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #3E5E3A;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.rfq_quote_cta_btn:hover { background: #5A8E49; }
.rfq_quote_cta_btn.outline {
  background: #fff;
  color: #3E5E3A;
  border: 1.5px solid #3E5E3A;
}
.rfq_quote_cta_btn.outline:hover { background: #f0f5ef; }

/* Typing indicator */
.rfq_typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: 4px 18px 18px 18px;
  width: fit-content;
}
.rfq_typing span {
  width: 7px; height: 7px;
  background: #aaa;
  border-radius: 50%;
  animation: rfq_bounce 1.2s infinite;
}
.rfq_typing span:nth-child(2) { animation-delay: 0.2s; }
.rfq_typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes rfq_bounce {
  0%,80%,100% { transform: translateY(0); }
  40%          { transform: translateY(-6px); }
}

/* Input form */
.rfq_chat_form {
  background: #fff;
  border-top: 1px solid #e0ddd8;
  padding: 12px 14px;
  flex-shrink: 0;
}
.rfq_chat_input_row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.rfq_chat_input {
  flex: 1;
  border: 1.5px solid #e0ddd8;
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 14px;
  outline: none;
  font-family: 'Open Sans', sans-serif;
  transition: border-color 0.15s;
}
.rfq_chat_input:focus { border-color: #3E5E3A; }
.rfq_chat_send {
  width: 38px; height: 38px;
  background: #3E5E3A;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.rfq_chat_send:hover { background: #5A8E49; }
.rfq_chat_info {
  font-size: 11.5px;
  color: #aaa;
  margin-top: 7px;
  padding: 0 4px;
}

/* ── RFQ extraction panel (right column) ────────────────── */
.rfq_panel {
  border: 1px solid #e0ddd8;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 28px rgba(0,0,0,0.07);
}
.rfq_panel_header {
  background: #1C2B1A;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rfq_panel_title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.rfq_panel_score_badge {
  background: rgba(126,212,100,0.2);
  border: 1px solid rgba(126,212,100,0.4);
  color: #7ED464;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}
.rfq_panel_body {
  padding: 18px;
}
.rfq_field_row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #F0EDE8;
  font-size: 13px;
  gap: 8px;
}
.rfq_field_row:last-child { border-bottom: none; }
.rfq_field_key {
  color: #888;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.rfq_field_val { color: #1a1a1a; text-align: right; line-height: 1.4; }
.rfq_field_val.missing { color: #C23B22; font-style: italic; }

.rfq_readiness_section {
  background: #F5F5F2;
  padding: 14px 18px;
  border-top: 1px solid #e0ddd8;
}
.rfq_readiness_title {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.rfq_readiness_track {
  height: 8px;
  background: #e0ddd8;
  border-radius: 4px;
  overflow: hidden;
}
.rfq_readiness_fill {
  height: 100%;
  background: linear-gradient(90deg, #3E5E3A, #7ED464);
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ── Handover / contact form section ────────────────────── */
.rfq_handover_section {
  background: #F5F5F2;
  border-top: 1px solid #DAD8D3;
  padding: 70px 0;
}
.rfq_handover_title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.rfq_handover_sub {
  font-size: 15px;
  color: #555;
  margin-bottom: 32px;
  line-height: 1.6;
}
.rfq_form_card {
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.rfq_form_section_title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F0EDE8;
}
.rfq_pre_fill_note {
  background: #e6f4e0;
  border: 1px solid #b8d9b2;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #3E5E3A;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rfq_pre_fill_note i { font-size: 15px; }
.rfq_submit_btn {
  background: #C23B22;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
  margin-top: 8px;
}
.rfq_submit_btn:hover    { background: #a82f1a; }
.rfq_submit_btn:disabled { background: #ccc; cursor: not-allowed; }

/* ── Processing spinner ──────────────────────────────────── */
.rfq_processing_overlay {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  font-size: 14px;
  color: #555;
  background: #F5F5F2;
  border-radius: 8px;
  margin-top: 16px;
}
.rfq_processing_overlay.visible { display: flex; }
.rfq_spinner {
  width: 22px; height: 22px;
  border: 3px solid #e0ddd8;
  border-top-color: #3E5E3A;
  border-radius: 50%;
  animation: rfq_spin 0.8s linear infinite;
}
@keyframes rfq_spin { to { transform: rotate(360deg); } }

/* ── Email preview cards ─────────────────────────────────── */
.rfq_email_results        { display: none; margin-top: 36px; }
.rfq_email_results.visible { display: block; }
.rfq_email_card {
  border: 1px solid #e0ddd8;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.rfq_email_card_header {
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.rfq_email_card_header.customer { background: #3E5E3A; color: #fff; }
.rfq_email_card_header.sales    { background: #1C2B1A; color: #fff; }
.rfq_email_card_header .badge_small {
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
}
.rfq_email_card_meta {
  padding: 12px 18px;
  background: #F8F8F6;
  border-bottom: 1px solid #e0ddd8;
  font-size: 12.5px;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rfq_email_card_meta strong { color: #1a1a1a; }
.rfq_email_card_body {
  padding: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  white-space: pre-wrap;
  font-family: 'Open Sans', sans-serif;
}
.rfq_success_banner {
  background: #e6f4e0;
  border: 1px solid #b8d9b2;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #3E5E3A;
  font-weight: 600;
  margin-bottom: 24px;
}
.rfq_success_banner i { font-size: 20px; }

/* ── Before vs After ─────────────────────────────────────── */
.rfq_before_after {
  background: #1C2B1A;
  padding: 70px 0;
}
.rfq_ba_header {
  text-align: center;
  margin-bottom: 44px;
}
.rfq_ba_title {
  font-size: 30px;
  font-weight: 800;
  color: #FAFAF5;
  margin-bottom: 8px;
}
.rfq_ba_sub {
  font-size: 16px;
  color: rgba(250,250,245,0.6);
  margin: 0;
}
.rfq_ba_col {
  border-radius: 14px;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rfq_ba_col.before {
  background: rgba(194,59,34,0.1);
  border: 1px solid rgba(194,59,34,0.3);
}
.rfq_ba_col.after {
  background: rgba(62,94,58,0.25);
  border: 1px solid rgba(126,212,100,0.3);
}
.rfq_ba_col_label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250,250,245,0.7);
}
.rfq_ba_col_icon { font-size: 18px; }
.rfq_ba_exchange {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rfq_ba_line {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rfq_ba_line.customer { align-items: flex-start; }
.rfq_ba_line.sales    { align-items: flex-end; }
.rfq_ba_who {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(250,250,245,0.4);
}
.rfq_ba_say {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 90%;
}
.rfq_ba_line.customer .rfq_ba_say {
  background: rgba(255,255,255,0.1);
  color: #FAFAF5;
}
.rfq_ba_line.sales .rfq_ba_say {
  background: rgba(194,59,34,0.2);
  color: rgba(250,250,245,0.85);
}
.rfq_ba_checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.rfq_ba_checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #FAFAF5;
}
.rfq_ba_checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(126,212,100,0.2);
  border: 1px solid rgba(126,212,100,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #7ED464;
}
.rfq_ba_outcome {
  margin-top: auto;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.rfq_ba_outcome.bad {
  background: rgba(194,59,34,0.15);
  border: 1px solid rgba(194,59,34,0.3);
  color: rgba(250,200,195,0.9);
}
.rfq_ba_outcome.good {
  background: rgba(126,212,100,0.12);
  border: 1px solid rgba(126,212,100,0.3);
  color: rgba(180,240,160,0.9);
}

/* ── Load Sample button ───────────────────────────────────── */
.rfq_sample_btn {
  background: transparent;
  color: #3E5E3A;
  border: 1.5px solid #3E5E3A;
  border-radius: 22px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.rfq_sample_btn:hover    { background: #3E5E3A; color: #fff; }
.rfq_sample_btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Suggested follow-up questions ───────────────────────── */
.rfq_suggested_qs {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f0f5ef;
  border: 1px solid #b8d9b2;
  border-radius: 10px;
}
.rfq_suggested_qs_label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #3E5E3A;
  margin-bottom: 8px;
}
.rfq_suggested_qs_item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: #2a4026;
  line-height: 1.5;
  margin-bottom: 5px;
}
.rfq_suggested_qs_item:last-child { margin-bottom: 0; }
.rfq_suggested_qs_num {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: #3E5E3A;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .rfq_hero           { padding: 100px 0 40px; }
  .rfq_hero_headline  { font-size: 30px; }
  .rfq_score_card_preview { margin-top: 36px; }
  .rfq_panel          { margin-top: 24px; }
  .rfq_form_card      { padding: 20px; }
  .rfq_before_after   { padding: 50px 0; }
}
@media (max-width: 767px) {
  .rfq_chat_panel     { height: 480px; }
  .rfq_step_item      { margin-bottom: 24px; }
  .rfq_ba_col         { margin-bottom: 16px; }
  .rfq_sample_btn     { margin-top: 16px; }
  /* Hide floating chat button — page has its own chat demo */
  #floatingChatBtn    { display: none !important; }
}
