.order-wrap{max-width:720px;margin:0 auto;padding:2.5rem 1.2rem 4rem}
.order-theme-card{
  display:flex;gap:1.1rem;align-items:center;
  background:var(--surface);
  border:1px solid var(--border);border-radius:var(--radius);
  padding:1.1rem 1.2rem;margin:1.4rem 0 2rem;
  box-shadow:var(--shadow);
}
.order-theme-card img{width:76px;height:100px;object-fit:cover;object-position:top;border-radius:8px;border:1px solid var(--border-soft);flex-shrink:0}
.order-theme-card .ot-name{font-weight:600;font-size:1rem}
.order-theme-card .ot-cat{font-size:var(--fs-tiny);color:var(--faint)}
.order-theme-card .ot-price{color:var(--ink);font-weight:700;margin-top:.25rem}
.form-section{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:1.8rem;
  margin-bottom:1.3rem;
  box-shadow:var(--shadow);
}
.form-section > h2{
  font-size:1.02rem;font-weight:600;margin-bottom:.3rem;
  display:flex;align-items:center;gap:.7rem;
}
.form-section > h2 .step-n{
  width:28px;height:28px;border-radius:50%;flex-shrink:0;
  background:var(--ink);
  color:#fff;font-size:.78rem;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;
}
.form-section > p.sec-desc{color:var(--muted);font-size:var(--fs-small);margin-bottom:1.3rem;line-height:1.65}
.field{margin-bottom:1.15rem}
.field:last-child{margin-bottom:0}
.field label{display:block;font-size:var(--fs-small);font-weight:600;margin-bottom:.45rem;color:var(--text)}
.field label .req{color:#c0392b}
.field input,.field select,.field textarea{
  width:100%;
  background:#fff;
  border:1px solid #dcdcdc;
  border-radius:8px;
  color:var(--text);
  padding:.78rem 1rem;
  font-size:.94rem;
  font-family:inherit;
  transition:border-color .2s,box-shadow .2s;
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--ink);
  box-shadow:0 0 0 3px rgba(0,0,0,.06);
}
.field input.err,.field select.err,.field textarea.err{border-color:#c0392b;box-shadow:0 0 0 3px rgba(192,57,43,.08)}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:#c0392b;background:#fff8f8;box-shadow:0 0 0 3px rgba(192,57,43,.12)}
.field.invalid .photo-box{border-color:#c0392b;background:#fff8f8}
.field .hint{font-size:var(--fs-tiny);color:var(--faint);margin-top:.35rem;line-height:1.6}
.field .err-msg{display:none;font-size:var(--fs-tiny);color:#c0392b;margin-top:.35rem}
.field.invalid .err-msg{display:block;font-weight:600}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.photo-box{
  border:1.5px dashed #d5d5d5;border-radius:12px;
  padding:1.2rem 1rem;text-align:center;cursor:pointer;
  transition:border-color .2s,background .2s;
  background:#fbfbfb;
}
.photo-box:hover{border-color:var(--ink);background:#f6f6f6}
.photo-box.has-img{border-style:solid;border-color:#b5b5b5;padding:.5rem;background:#fff}
.photo-box img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:8px;display:block}
.photo-box .ph-label{font-size:var(--fs-small);font-weight:600;margin:.6rem 0 .2rem}
.photo-box.has-img .ph-label{margin:.5rem 0 .1rem}
.photo-box .ph-hint{font-size:var(--fs-tiny);color:var(--faint)}
.photo-box input[type=file]{display:none}
.photo-thumbs{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.7rem}
.photo-thumbs .thumb{position:relative;width:72px;height:90px}
.photo-thumbs .thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px;border:1px solid var(--border)}
.photo-thumbs .thumb button{
  position:absolute;top:-8px;right:-8px;width:24px;height:24px;border-radius:50%;
  background:#c0392b;color:#fff;border:none;font-size:.8rem;cursor:pointer;line-height:1;
}
.order-summary{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:1.3rem 1.4rem;
  margin:1.4rem 0;
  box-shadow:var(--shadow);
}
.order-summary .row{display:flex;justify-content:space-between;padding:.35rem 0;font-size:var(--fs-small);color:var(--muted)}
.order-summary .row span:last-child{color:var(--text);font-weight:600}
.order-summary .row.total{border-top:1px solid var(--border-soft);margin-top:.6rem;padding-top:.9rem}
.order-summary .row.total span{font-weight:700;font-size:1.05rem;color:var(--ink)}
.btn-submit{
  width:100%;padding:1.05rem;font-size:.95rem;font-weight:600;letter-spacing:.5px;
  border:none;border-radius:8px;cursor:pointer;
  background:var(--ink);color:#fff;
  transition:background .2s,opacity .2s;
}
.btn-submit:hover:not(:disabled){background:#2c2c2c}
.btn-submit:disabled{opacity:.55;cursor:wait}
.form-note{text-align:center;color:var(--faint);font-size:var(--fs-tiny);margin-top:1rem;line-height:1.7}
.hidden{display:none !important}
.qris-pay{
  text-align:center;
  background:#fbfbfb;
  border:1px dashed #d5d5d5;
  border-radius:12px;
  padding:1.6rem 1.2rem;
}
.qris-pay img{
  max-width:230px;width:100%;margin:0 auto 1rem;
  border-radius:10px;background:#fff;padding:.6rem;
  border:1px solid var(--border-soft);
}
.qris-pay .hint{font-size:var(--fs-small);color:var(--muted);line-height:1.7;margin-bottom:0}
.success-card{
  text-align:center;padding:3rem 1.5rem;
  background:var(--surface);
  border:1px solid var(--border);border-radius:14px;
  box-shadow:var(--shadow);
}
.success-card .ok-ring{
  width:74px;height:74px;border-radius:50%;margin:0 auto 1.4rem;
  background:#eef7f1;border:2px solid #1a9e54;
  display:flex;align-items:center;justify-content:center;
  font-size:1.9rem;color:#1a9e54;
}
.success-card h2{font-size:1.35rem;margin-bottom:.7rem;font-weight:600}
.success-card .code{
  display:inline-block;font-size:1.25rem;font-weight:700;letter-spacing:2px;
  color:var(--ink);background:var(--surface-soft);
  border:1px dashed #b5b5b5;border-radius:10px;
  padding:.7rem 1.6rem;margin:.6rem 0 1.2rem;
}
.success-card p{color:var(--muted);font-size:var(--fs-small);line-height:1.75;max-width:440px;margin:0 auto 1.6rem}
@media(max-width:560px){
  .order-wrap{padding:1.6rem .9rem 3rem}
  .form-section{padding:1.3rem 1.1rem}
  .field-row{grid-template-columns:1fr}
  .photo-grid{grid-template-columns:1fr 1fr;gap:.7rem}
  .order-theme-card{padding:.9rem}
  .order-theme-card img{width:64px;height:84px}
}

.pay-modal-backdrop{
  position:fixed;top:0;left:0;right:0;bottom:0;
  background:rgba(0,0,0,.68);
  backdrop-filter:blur(5px);
  display:flex;align-items:center;justify-content:center;
  z-index:9999;padding:1rem;
}
.pay-modal-box{
  background:#fff;border-radius:20px;max-width:440px;width:100%;
  padding:2.2rem 1.8rem;text-align:center;box-shadow:0 24px 50px rgba(0,0,0,.3);
  animation:popIn .25s ease-out;
}
@keyframes popIn{
  from{transform:scale(.92);opacity:0}
  to{transform:scale(1);opacity:1}
}
.pay-modal-icon{
  width:64px;height:64px;background:#f0fbf4;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:2rem;margin:0 auto 1.2rem;
}
.pay-modal-box h3{font-size:1.3rem;margin-bottom:.6rem;color:#1c2530}
.pay-modal-box p{color:#64748b;font-size:.92rem;line-height:1.6;margin-bottom:1.5rem}
.pay-modal-btns{display:flex;gap:.8rem;justify-content:center}
.pay-modal-btns button{
  flex:1;padding:.85rem 1.2rem;border-radius:10px;font-weight:600;
  font-size:.95rem;cursor:pointer;border:none;transition:all .2s;
}
.pay-modal-btns .btn-cancel{background:#f1f5f9;color:#475569}
.pay-modal-btns .btn-cancel:hover{background:#e2e8f0;color:#1e293b}
.pay-modal-btns .btn-confirm{background:#27ae60;color:#fff;box-shadow:0 4px 12px rgba(39,174,96,.3)}
.pay-modal-btns .btn-confirm:hover{background:#219653}
.spinner-ring{
  width:52px;height:52px;border:4px solid #edf2f7;border-top-color:#27ae60;
  border-radius:50%;margin:1.2rem auto;animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.success-icon-badge{
  width:64px;height:64px;border-radius:50%;background:#eafaf1;color:#27ae60;
  display:flex;align-items:center;justify-content:center;font-size:2rem;
  margin:0 auto 1rem;border:2px solid #27ae60;
}
.order-code-badge{
  display:inline-block;padding:.6rem 1.4rem;background:#f8fafc;
  border:1.5px dashed #cbd5e1;border-radius:8px;font-weight:700;
  letter-spacing:1.5px;color:#0f172a;font-size:1.15rem;margin-bottom:1.5rem;
}
.btn-wa-modal{
  display:flex;align-items:center;justify-content:center;gap:.6rem;
  background:#25d366;color:#fff;text-decoration:none;padding:.9rem 1.4rem;
  border-radius:12px;font-weight:700;font-size:1.02rem;
  box-shadow:0 4px 15px rgba(37,211,102,.35);transition:transform .15s,background .2s;
}
.btn-wa-modal:hover{background:#20bd5a;transform:translateY(-1px)}
.btn-back-katalog{
  display:inline-block;margin-top:1rem;color:#64748b;font-size:.85rem;
  text-decoration:none;
}
.btn-back-katalog:hover{color:#1e293b;text-decoration:underline}

/* DYNAMIC SUB-BOXES & BANK SELECTOR */
.sub-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.4rem;
  margin-top: 1.2rem;
  position: relative;
}
.sub-box-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed #cbd5e1;
}
.bank-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.6rem;
  margin-top: 0.6rem;
  margin-bottom: 1rem;
}
.bank-card-opt {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
  background: #fff;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s;
  user-select: none;
}
.bank-card-opt:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-2px);
}
.bank-card-opt.active {
  border-color: #10b981;
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.bank-card-opt img {
  height: 24px;
  max-width: 80px;
  object-fit: contain;
}
.bank-card-opt span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
}
.bank-card-opt.active span {
  color: #065f46;
  font-weight: 700;
}
.preview-qris-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  margin-top: 0.8rem;
}
.preview-qris-box img {
  max-width: 180px;
  width: 100%;
  border-radius: 8px;
  display: inline-block;
  border: 1px solid #e2e8f0;
}

