/* =====================================================
   ERP GGN — Quotation Form Wizard Styles
   File: css/quotation-form.css
   ===================================================== */

/* ============ STEPPER ============ */
.qw-stepper{
  display:flex; align-items:center; justify-content:space-between;
  gap:0;
  padding:4px 0;
}
.qw-step-item{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  flex-shrink:0;
}
.qw-step-circle{
  width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:800;
  background:#F1F5F9; color:#94A3B8;
  border:2px solid #E2E8F0;
  transition:all .25s;
}
.qw-step-label{
  font-size:9.5px; font-weight:700; color:#94A3B8;
  text-transform:uppercase; letter-spacing:.4px;
}
.qw-step-item.active .qw-step-circle{
  background:linear-gradient(135deg,#C9A227,#E8B33D);
  color:#0A2540; border-color:#C9A227;
  box-shadow:0 3px 10px rgba(201,162,39,.35);
}
.qw-step-item.active .qw-step-label{ color:#0A2540; }
.qw-step-item.done .qw-step-circle{
  background:linear-gradient(135deg,#16A34A,#22C55E);
  color:#fff; border-color:#16A34A;
}
.qw-step-item.done .qw-step-label{ color:#16A34A; }
.qw-step-line{
  flex:1; height:2px;
  background:#E2E8F0;
  margin:0 6px 18px;
  transition:background .25s;
}
.qw-step-line.done{ background:#16A34A; }

/* ============ FORM SECTION ============ */
.qw-section{ padding:4px 0; }
.qw-section-title{
  font-size:12px; font-weight:800; color:#0A2540;
  text-transform:uppercase; letter-spacing:.6px;
  margin-bottom:14px; padding-bottom:8px;
  border-bottom:1px solid #F1F5F9;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}

/* ============ FIELD ============ */
.qw-field{ margin-bottom:12px; }
.qw-label{
  display:block; font-size:11px; font-weight:700;
  color:#0A2540; text-transform:uppercase; letter-spacing:.5px;
  margin-bottom:5px;
}
.qw-input{
  width:100%; padding:11px 14px;
  border:1.5px solid #E2E8F0; border-radius:11px;
  font-size:13.5px; font-family:inherit;
  color:#0A2540; background:#F8FAFC; outline:none;
  transition:border-color .2s, background .2s, box-shadow .2s;
  box-sizing:border-box;
  resize:vertical;
}
.qw-input:focus{
  border-color:#3E7CB1; background:#fff;
  box-shadow:0 0 0 4px rgba(62,124,177,.12);
}
.qw-input[readonly]{
  background:#F1F5F9; color:#64748B; cursor:not-allowed;
}
.qw-select{
  appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;
  background-position:right 12px center;
  padding-right:36px;
  cursor:pointer;
}
.qw-row-2{
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
}
.qw-hint{
  font-size:10.5px; color:#94A3B8;
  margin-top:4px; font-style:italic;
  line-height:1.4;
}

/* Checkbox */
.qw-checkbox-wrap{
  display:inline-flex; align-items:center; gap:8px;
  cursor:pointer; user-select:none;
}
.qw-checkbox-wrap input{ display:none; }
.qw-checkbox-box{
  width:18px; height:18px;
  border:2px solid #CBD5E1; border-radius:5px;
  display:flex; align-items:center; justify-content:center;
  transition:all .2s; flex-shrink:0;
}
.qw-checkbox-box::after{
  content:''; width:5px; height:9px;
  border:solid #fff; border-width:0 2px 2px 0;
  transform:rotate(45deg) scale(0);
  margin-top:-2px;
  transition:transform .15s;
}
.qw-checkbox-wrap input:checked + .qw-checkbox-box{
  background:linear-gradient(135deg,#C9A227,#E8B33D);
  border-color:#C9A227;
}
.qw-checkbox-wrap input:checked + .qw-checkbox-box::after{
  transform:rotate(45deg) scale(1);
}

/* ============ ITEM ROW ============ */
.qw-btn-add-item{
  padding:6px 12px;
  border:1.5px solid #C9A227; border-radius:8px;
  background:#FFFBEB; color:#92400E;
  font-size:11px; font-weight:800;
  cursor:pointer; font-family:inherit;
  display:inline-flex; align-items:center; gap:5px;
  transition:all .15s;
  text-transform:none;
  letter-spacing:0;
}
.qw-btn-add-item:hover{ background:#FEF3C7; }
.qw-btn-add-item svg{
  width:12px; height:12px;
  stroke:currentColor; fill:none;
  stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round;
}

.qw-item-row{
  background:#F8FAFC;
  border:1px solid #E2E8F0;
  border-radius:12px;
  padding:12px;
  margin-bottom:12px;
  position:relative;
}
.qw-item-header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:10px;
}
.qw-item-num{
  display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:50%;
  background:linear-gradient(135deg,#0A2540,#1B4B7E);
  color:#fff; font-size:10px; font-weight:800;
}
.qw-btn-del-item{
  width:26px; height:26px; border-radius:8px;
  border:none; background:#FEE2E2;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:#991B1B;
  transition:background .15s;
}
.qw-btn-del-item:hover{ background:#FECACA; }
.qw-btn-del-item svg{
  width:14px; height:14px;
  stroke:currentColor; fill:none;
  stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round;
}
.qw-item-total{
  margin-top:8px; padding-top:8px;
  border-top:1px dashed #CBD5E1;
  font-size:12px; color:#64748B;
  text-align:right;
}
.qw-item-total strong{
  color:#0A2540; font-size:13px; font-weight:800;
}

/* ============ STEP 4 — CALC ============ */
.qw-summary{
  background:#F8FAFC; border-radius:12px;
  padding:12px 14px; margin-bottom:14px;
}
.qw-summary-row{
  display:flex; justify-content:space-between; align-items:center;
  font-size:12px; color:#64748B;
  padding:4px 0;
}
.qw-summary-row strong{ color:#0A2540; font-weight:700; }

.qw-calc-block{
  background:#F8FAFC; border-radius:12px;
  padding:12px 14px; margin-bottom:14px;
}
.qw-calc-row{
  display:flex; justify-content:space-between; align-items:center;
  font-size:12.5px; color:#475569;
  padding:5px 0;
}
.qw-calc-row strong{ color:#0A2540; font-weight:700; }
.qw-calc-row.qw-calc-total{
  font-size:14px;
  margin-top:6px; padding-top:10px;
  border-top:2px solid #E2E8F0;
}
.qw-calc-row.qw-calc-total span{ font-weight:800; color:#0A2540; }
.qw-calc-row.qw-calc-total strong{ font-size:16px; font-weight:800; color:#0A2540; }

.qw-disc-row{
  display:flex; gap:10px; align-items:center;
}
.qw-disc-row .qw-input:first-child{ flex:0 0 auto; }
.qw-disc-row .qw-input:last-child{ flex:1; }

/* ============ FOOTER BUTTONS ============ */
.qw-btn-draft{
  padding:12px 18px;
  border:1.5px solid #E2E8F0; border-radius:11px;
  background:#fff; color:#475569;
  font-size:13px; font-weight:800;
  cursor:pointer; font-family:inherit;
  display:inline-flex; align-items:center; gap:8px;
  transition:all .15s;
}
.qw-btn-draft:hover{
  border-color:#C9A227;
  background:#FFFBEB;
  color:#92400E;
}

/* ============ SISTEM PEMBAYARAN RADIO ============ */
.qw-payment-options{
  display:flex; flex-direction:column; gap:8px;
}
.qw-payment-option{
  display:flex; align-items:center; gap:12px;
  padding:12px 14px;
  border:1.5px solid #E2E8F0; border-radius:12px;
  background:#F8FAFC; cursor:pointer;
  transition:all .2s;
}
.qw-payment-option:hover{ background:#F1F5F9; }
.qw-payment-option input[type="radio"]{ display:none; }
.qw-payment-radio{
  width:18px; height:18px; border-radius:50%;
  border:2px solid #CBD5E1; background:#fff;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  transition:all .2s;
}
.qw-payment-radio::after{
  content:''; width:8px; height:8px; border-radius:50%;
  background:#fff; transform:scale(0);
  transition:transform .15s;
}
.qw-payment-option.active{
  border-color:#3E7CB1; background:#F0F9FF;
}
.qw-payment-option.active .qw-payment-radio{
  border-color:#3E7CB1; background:#3E7CB1;
}
.qw-payment-option.active .qw-payment-radio::after{
  transform:scale(1);
}
.qw-payment-info{ flex:1; min-width:0; }
.qw-payment-title{
  font-size:12.5px; font-weight:800; color:#0A2540;
  letter-spacing:-.1px;
}
.qw-payment-option.active .qw-payment-title{ color:#1B4B7E; }
.qw-payment-desc{
  font-size:10.5px; color:#64748B; margin-top:2px;
  line-height:1.3;
}

/* ============ SEND DIALOG ============ */
.sd-btn{
  display:flex; align-items:center; gap:12px;
  width:100%; padding:12px 14px;
  border:1.5px solid #E2E8F0; border-radius:12px;
  background:#fff; cursor:pointer;
  font-family:inherit; text-align:left;
  margin-bottom:8px;
  transition:all .15s;
}
.sd-btn:hover{
  border-color:#3E7CB1;
  background:#F0F9FF;
  transform:translateX(2px);
}
.sd-btn:disabled{
  opacity:.5; cursor:not-allowed; transform:none;
  border-color:#E2E8F0; background:#F8FAFC;
}
.sd-btn-icon{
  width:40px; height:40px; border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0;
}
.sd-btn-content{ flex:1; min-width:0; }
.sd-btn-title{
  font-size:13px; font-weight:800; color:#0A2540;
  letter-spacing:-.2px;
}
.sd-btn-desc{
  font-size:10.5px; color:#64748B; margin-top:2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.sd-btn-arrow{
  width:16px; height:16px;
  stroke:#94A3B8; fill:none;
  stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round;
  flex-shrink:0;
}
.sd-btn:hover .sd-btn-arrow{ stroke:#3E7CB1; }

/* ============ RESPONSIVE ============ */
@media (max-width:520px){
  .qw-row-2{ grid-template-columns:1fr; }
  .qw-step-label{ font-size:8.5px; }
  .qw-step-line{ margin:0 3px 18px; }
}