/* ───────── Fullscreen wizard ───────── */
.qo-fullscreen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qo-progress {
  position: relative;
  height: 6px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
  margin: 20px 0 30px;
}

.qo-progress-bar {
  height: 100%;
  background: #1a56db;
  width: 20%;
  transition: width .25s ease;
}

/* Steps dots (1–5) */
.qo-steps-dots {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
}
.qo-steps-dots li {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6ebf5;
  color: #667;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all .25s ease;
}
.qo-steps-dots li.active {
  background: #1a56db;
  color: #fff;
  transform: scale(1.1);
}

/* Koraci */
.qo-step { display: none; animation: fadeStep .3s ease; }
.qo-step.active { display: block; }
@keyframes fadeStep {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Navigacija dugmad */
.qo-step-nav {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.qo-step-nav .qo-next,
.qo-step-nav .qo-prev,
.qo-submit {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
}

/* Dugme Dalje + Submit */
.qo-step-nav .qo-next,
.qo-submit {
  background: #111;
  color: #fff;
  border: none;
}
.qo-step-nav .qo-next:hover,
.qo-submit:hover {
  background: #0073e6;
}

/* Dugme Nazad */
.qo-step-nav .qo-prev {
  background: #fff;
  color: #111;
  border: 2px solid #111;
}
.qo-step-nav .qo-prev:hover {
  background: #111;
  color: #fff;
}

/* ───────── Forma i proizvodi ───────── */
#insta-quick-order {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,.06);
}
#insta-quick-order h3, #insta-quick-order h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}
#insta-quick-order label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #444;
}
#insta-quick-order input,
#insta-quick-order select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

/* Dodaj proizvod */
#add-item {
  background: transparent;
  color: #0b63d1;
  border: 2px dashed #0b63d1;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}
#add-item:hover {
  background: #0b63d1;
  color: #fff;
  border-style: solid;
}

/* Kartica proizvoda */
.order-item {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.product-results {
  border: 1px solid #e5e5e5;
  background: #fff;
  margin-top: -5px;
  border-radius: 8px;
  max-height: 220px;
  overflow: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  display: none;
}
.product-result {
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.product-result:hover { background: #f5f7fb; }
.product-result img { margin-right: 8px; border-radius: 4px; }

/* Summary */
.item-summary {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.summary-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.summary-actions button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease;
}
.summary-actions .edit-item {
  background: #e8f1ff;
  color: #1a56db;
}
.summary-actions .edit-item:hover {
  background: #1a56db;
  color: #fff;
}
.summary-actions .remove-item {
  background: #fdeaea;
  color: #d93025;
}
.summary-actions .remove-item:hover {
  background: #d93025;
  color: #fff;
}

/* Review box */
.qo-review-box {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.qo-review-col h4 { margin:0 0 8px; }
.qo-review-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.qo-review-list li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}
.qo-review-list img.qo-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
}

/* Poruke */
#order-message span {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
}
#order-message span[style*="color:green"] {
  background: #e8f9e9;
  color: #2c7a2c!important;
}
#order-message span[style*="color:red"] {
  background: #fdeaea;
  color: #d93025!important;
}

/* Success Step (thank you) */
#qo-success-step {
  display: none;
  animation: fadeStep .3s ease;
}
#qo-success-step.active { display: block; }
#qo-success-step .qo-review-box {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px 30px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  text-align: center;
}
#qo-success-step h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1a56db;
}
#qo-success-step p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}
#qo-success-step .qo-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #1a56db;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background .25s ease;
}
#qo-success-step .qo-btn:hover {
  background: #0b63d1;
}

/* Mobile */
@media (max-width:768px){
  .qo-review-box { grid-template-columns:1fr }
  .qo-submit { width:100% }
  .qo-step-nav { flex-direction: column; }
  .qo-step-nav .qo-next,
  .qo-step-nav .qo-prev,
  .qo-submit { width:100%; text-align:center }
}
@media (max-width:480px){
  .summary-actions button {
    width:24px;
    height:24px;
    font-size:12px;
  }
}
