/* Form pemesanan bersama (katalog, /level-N, /p/{slug}).
   Disesuaikan dengan dua bahasa visual sekaligus:
   - situs utama  : variabel --gold, --muted, --ink, --panel-light
   - halaman level: variabel --a, --accent, --surface (setiap tema punya sendiri)
   Semua properti memakai fallback berantai supaya keduanya tetap terbaca. */

.oc-form {
  display: grid;
  gap: 18px;
  margin: 0;
}

.oc-field {
  display: grid;
  gap: 7px;
}

.oc-field > label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, var(--accent, #b7b2c4));
}

.oc-field > input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  background: var(--panel-light, var(--surface, rgba(255, 255, 255, .045)));
  color: var(--ivory, var(--cream, #f6f1e7));
  caret-color: var(--gold, var(--a, #e3bb73));
  font: inherit;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.oc-field > input::placeholder {
  color: #9aa3b7;
  opacity: 1;
}

/* Isi otomatis browser (Chrome/Safari) memaksa warna sendiri;
   tanpa ini teks bisa hilang di atas input gelap. */
.oc-field > input:-webkit-autofill,
.oc-field > input:-webkit-autofill:hover,
.oc-field > input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ivory, var(--cream, #f6f1e7));
  -webkit-box-shadow: 0 0 0 1000px var(--panel-solid, #101c30) inset;
  caret-color: var(--gold, var(--a, #e3bb73));
  transition: background-color 99999s ease-out, color 99999s ease-out;
}

.oc-field > input:focus {
  outline: none;
  border-color: var(--gold, var(--a, #e3bb73));
  box-shadow: 0 0 0 3px var(--line-gold, rgba(227, 187, 115, .26));
}

.oc-field > input[aria-invalid="true"] {
  border-color: var(--danger, #f19595);
  box-shadow: 0 0 0 3px var(--danger-soft, rgba(241, 149, 149, .12));
}

.oc-hint {
  font-size: .74rem;
  line-height: 1.55;
  color: var(--dim, var(--accent, #8e899d));
}

.oc-field-error {
  color: var(--danger, #f19595);
}

.oc-account-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--line-gold, rgba(227, 187, 115, .26));
  background: rgba(227, 187, 115, .07);
  font-size: .8rem;
  line-height: 1.65;
  color: var(--muted, var(--accent, #b7b2c4));
}

.oc-account-note b {
  color: var(--gold-light, var(--a, #f5dda9));
  font-weight: 700;
}

.oc-account-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--line-gold, rgba(227, 187, 115, .26));
  color: var(--gold, var(--a, #e3bb73));
}

.oc-account-icon svg {
  width: 16px;
  height: 16px;
}

.oc-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 22px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: #1c1408;
  background: linear-gradient(135deg, var(--gold-light, var(--a, #f5dda9)), var(--gold, var(--a, #e3bb73)));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .26);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.oc-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
  filter: brightness(1.04);
}

.oc-submit:disabled {
  opacity: .68;
  cursor: progress;
}

.oc-submit strong {
  font-weight: 800;
  opacity: .9;
}

.oc-submit svg {
  width: 17px;
  height: 17px;
}

.oc-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  font-size: .74rem;
  line-height: 1.6;
  color: var(--dim, var(--accent, #8e899d));
}

.oc-note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--gold, var(--a, #e3bb73));
}

.oc-error {
  margin: 0;
  padding: 12px 15px;
  border-radius: 13px;
  border: 1px solid var(--danger, #f19595);
  background: var(--danger-soft, rgba(241, 149, 149, .12));
  color: var(--danger, #f19595);
  font-size: .84rem;
  line-height: 1.55;
}

.oc-status {
  margin: 0;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--muted, var(--accent, #b7b2c4));
}

.oc-status.is-error {
  color: var(--danger, #f19595);
}

/* Langkah setelah pembayaran (halaman checkout katalog) */
.checkout-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .84rem;
  line-height: 1.65;
  color: var(--muted, var(--accent, #b7b2c4));
}

.checkout-steps strong {
  color: var(--ivory, var(--cream, #f6f1e7));
}

.checkout-step-dot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--line-gold, rgba(227, 187, 115, .26));
  color: var(--gold, var(--a, #e3bb73));
}

.checkout-step-dot svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 560px) {
  .oc-form { gap: 15px; }
  .oc-field > input { padding: 13px 14px; }
  .oc-submit { padding: 14px 16px; font-size: .86rem; }
}
