/* ==========================================================================
   KAVANA — /order
   ========================================================================== */

.order {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(2rem, 6vw, 5rem)) var(--gutter) 0;
}
@media (min-width: 960px) {
  .order { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .order-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.order-title {
  margin: 0;
  font-size: clamp(2.4rem, 1rem + 5vw, 5rem);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.order-lede {
  max-width: 34ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--muted);
}

/* ---------- Form ---------- */
.order-form {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  border-radius: calc(var(--r) * 1.5) 0 calc(var(--r) * 1.5) 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.field { display: grid; gap: 0.5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field legend,
.field-label {
  padding: 0;
  margin-bottom: 0.1rem;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--ink-2);
}
.field b { color: var(--gold); font-weight: 400; }
.field-row { display: grid; gap: 1.4rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chip:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.order-form input:not([type="radio"], [type="checkbox"]),
.order-form select,
.order-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7em 0.95em;
  border: 1px solid var(--line);
  border-radius: 12px 0 12px 0;
  background: var(--bg);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.order-form textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(209 176 107 / 0.2);
}
.order-form [aria-invalid="true"] { border-color: #f08a6c !important; }
.field-error { margin: 0; font-size: var(--text-xs); color: #f08a6c; }

.order-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
@media (max-width: 520px) { .order-actions .btn { flex: 1 1 100%; } .order-actions { justify-content: center; } }
.order-actions { align-items: center; }
.order-alt {
  padding: 0.6rem 0.4rem;
  border: 0;
  background: none;
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.order-alt:hover { color: var(--ink); }
.field-optional { font-size: var(--text-xs); color: var(--muted); }

/* ---------- Kartu referensi dari /reels ---------- */
.ref-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 14px 0 14px 0;
  background: var(--surface);
}
.ref-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px 0 8px 0;
  background: var(--bg-2);
}
.ref-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ref-kicker { margin: 0; font-size: var(--text-xs); color: var(--gold); letter-spacing: 0.06em; }
.ref-title { margin: 0.1rem 0 0; font-size: var(--text-sm); font-weight: 400; color: var(--ink-2); }
.ref-remove { font-size: var(--text-xs); color: var(--muted); padding: 0.5rem; }
.ref-remove:hover { color: var(--ink); }
