/* ============================================================
   Caspian Edge — RFQ Premium Upgrade
   Enhancement only — does not override global layout
   ============================================================ */

/* ── ACCORDION SECTIONS ── */
.ce-rfq-section{
  padding:0;
  border-bottom:1px solid #e2e8f0;
  overflow:hidden;
}
.ce-rfq-section:last-child{border-bottom:0;}

.ce-rfq-acc-head{
  display:flex;
  align-items:center;
  gap:16px;
  padding:22px 28px;
  cursor:pointer;
  user-select:none;
  background:#fff;
  transition:background .18s;
  border:0;
  width:100%;
  text-align:left;
}
.ce-rfq-acc-head:hover{background:#f8fafc;}
.ce-rfq-acc-head.is-open{background:#f8fafc;}

.ce-rfq-acc-num{
  display:flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#e8eef6;
  color:#334155;
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
  flex-shrink:0;
  transition:background .18s,color .18s;
}
.ce-rfq-acc-head.is-open .ce-rfq-acc-num,
.ce-rfq-acc-head.is-done .ce-rfq-acc-num{
  background:#06101d;
  color:#fff;
}

.ce-rfq-acc-title{
  flex:1;
}
.ce-rfq-acc-title strong{
  display:block;
  font-size:16px;
  font-weight:900;
  color:#06101d;
  letter-spacing:-.02em;
}
.ce-rfq-acc-title span{
  font-size:12px;
  color:#94a3b8;
  font-weight:500;
}

.ce-rfq-acc-arrow{
  font-size:18px;
  color:#94a3b8;
  transform:rotate(0deg);
  transition:transform .22s;
}
.ce-rfq-acc-head.is-open .ce-rfq-acc-arrow{transform:rotate(180deg);}

.ce-rfq-acc-body{
  overflow:hidden;
  max-height:0;
  padding:0 28px;
  opacity:0;
  pointer-events:none;
  transition:max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
}
.ce-rfq-acc-body.is-open{
  max-height:4000px;
  padding:0 28px 28px;
  opacity:1;
  pointer-events:auto;
}

.ce-rfq-acc-desc{
  color:#64748b;
  font-size:14px;
  line-height:1.6;
  margin:0 0 20px;
}

/* keep h2 inside accordion but style it smaller */
.ce-rfq-section h2{
  font-size:18px;
  color:#06101d;
  margin:0 0 6px;
  letter-spacing:-.02em;
}

/* ── UPLOAD ZONE PREMIUM ── */
.ce-upload-zone{
  position:relative;
  border:2px dashed #b9c7d6;
  background:#f8fafc;
  border-radius:20px;
  padding:36px 24px;
  text-align:center;
  transition:.22s ease;
  cursor:pointer;
}
.ce-upload-zone:hover,.ce-upload-zone.is-dragover{
  border-color:#145a8d;
  background:#eef7ff;
}
.ce-upload-icon{
  display:block;
  margin:0 auto 14px;
  width:44px;
  height:44px;
  opacity:.45;
}
.ce-upload-zone strong{
  display:block;
  font-size:16px;
  color:#06101d;
  margin-bottom:6px;
}
.ce-upload-zone span{
  display:block;
  font-size:13px;
  color:#64748b;
  line-height:1.55;
  margin-bottom:14px;
}
.ce-upload-formats{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:center;
  margin-bottom:16px;
}
.ce-upload-badge{
  display:inline-block;
  background:#e8eef6;
  color:#334155;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  padding:5px 8px;
  border-radius:6px;
  border:1px solid #d1dce8;
}
.ce-upload-zone input[type=file]{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
  width:100%;
  height:100%;
}
.ce-upload-file-list{
  margin-top:14px;
  text-align:left;
  display:grid;
  gap:6px;
}
.ce-upload-file-item{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:10px;
  padding:10px 12px;
  font-size:13px;
  color:#334155;
  font-weight:600;
}
.ce-upload-file-icon{
  font-size:16px;
  flex-shrink:0;
}
.ce-upload-progress{
  flex:1;
  height:3px;
  background:#e2e8f0;
  border-radius:2px;
  overflow:hidden;
  margin-top:2px;
}
.ce-upload-progress-bar{
  height:100%;
  background:#145a8d;
  border-radius:2px;
  animation:uploadFill .8s ease forwards;
}
@keyframes uploadFill{
  from{width:0}
  to{width:100%}
}

/* ── SIDEBAR ENTERPRISE UPGRADE ── */
.ce-rfq-side-card .ce-std-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.ce-std-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#f0f4f8;
  border:1px solid #d1dce8;
  border-radius:8px;
  padding:8px 12px;
  font-size:12px;
  font-weight:900;
  color:#06101d;
  letter-spacing:.02em;
}
.ce-std-badge-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#145a8d;
  flex-shrink:0;
}
.ce-rfq-side-stat{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-top:10px;
}
.ce-rfq-side-stat strong{
  font-size:28px;
  font-weight:900;
  color:#fff;
  letter-spacing:-.04em;
  line-height:1;
}
.ce-rfq-side-stat span{
  font-size:12px;
  color:#8bbcff;
  font-weight:700;
}
.ce-rfq-side-divider{
  border:0;
  border-top:1px solid rgba(255,255,255,.12);
  margin:16px 0;
}
.ce-rfq-side-doc-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:13px;
  color:#dbe5ef;
}
.ce-rfq-side-doc-row:last-child{border-bottom:0;}
.ce-rfq-side-check{
  width:18px;
  height:18px;
  border-radius:50%;
  background:rgba(139,188,255,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  flex-shrink:0;
}

/* ── MULTI-LINE TABLE UPGRADE ── */
.ce-rfq-items-header{
  display:grid;
  grid-template-columns:1.4fr .4fr .5fr .5fr .6fr .6fr .6fr 1fr 36px;
  gap:10px;
  padding:10px 14px;
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
}
.ce-rfq-items-header span{
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#94a3b8;
}
.ce-rfq-item-row{
  border-bottom:1px solid #f0f4f8;
}
.ce-rfq-item-row:nth-child(even){background:#fafbfd;}
.ce-rfq-item-row:last-child{border-bottom:0;}

/* ── REVIEW BOX ── */
.ce-rfq-review-box{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:20px;
  margin-bottom:20px;
}
.ce-rfq-review-box h3{
  font-size:13px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
  margin:0 0 14px;
}
.ce-rfq-review-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid #e8eef6;
  font-size:13px;
}
.ce-rfq-review-row:last-child{border-bottom:0;}
.ce-rfq-review-row span:first-child{color:#94a3b8;font-weight:600;}
.ce-rfq-review-row span:last-child{color:#06101d;font-weight:800;}

.ce-rfq-confidence{
  background:#eff6ff;
  border:1px solid #bfdbfe;
  border-radius:12px;
  padding:14px 16px;
  font-size:13px;
  color:#1e40af;
  line-height:1.55;
  margin-bottom:18px;
}

.ce-rfq-submit{
  width:100%;
  padding:16px 24px;
  font-size:15px;
  letter-spacing:-.01em;
  border-radius:12px;
}

/* ── ENGINEERING HELPER NOTES ── */
.ce-rfq-helper{
  display:none;
  margin-top:14px;
  background:#fefce8;
  border:1px solid #fde68a;
  border-left:3px solid #f59e0b;
  border-radius:10px;
  padding:12px 14px;
  font-size:13px;
  color:#78350f;
  line-height:1.55;
}
.ce-rfq-helper.is-active{display:block;}

/* ── MOBILE CRITICAL ── */
@media(max-width:980px){
  .ce-rfq-acc-head{padding:18px 20px;}
  .ce-rfq-acc-body{padding:0 20px 22px;}
  .ce-rfq-items-header{display:none;}
  .ce-rfq-item-row{grid-template-columns:1fr 1fr;gap:8px;}
  .ce-rfq-item-row .ce-rfq-remove{grid-column:1/-1;}
}
@media(max-width:600px){
  .ce-rfq-acc-head{padding:16px;}
  .ce-rfq-acc-body{padding:0 16px 18px;}
  .ce-rfq-acc-num{width:28px;height:28px;font-size:10px;}
  .ce-rfq-acc-title strong{font-size:14px;}
  .ce-upload-zone{padding:24px 16px;}
  .ce-rfq-item-row{grid-template-columns:1fr;}
  .ce-rfq-side-stat strong{font-size:22px;}
  .ce-rfq-review-row{flex-direction:column;align-items:flex-start;gap:2px;}
}
