/* =========================================================
   GNetindo — Form PO
   ========================================================= */

.po-form-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.po-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--blue-700);
  padding: 22px 24px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.form-section__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-heading);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
}
.field label .req { color: var(--red-600); }

.field input,
.field select,
.field textarea {
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-body);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  background: var(--bg-surface);
}
.field textarea { resize: vertical; }
.field input[readonly] { color: var(--text-muted); cursor: not-allowed; }
.field select { color-scheme: light dark; }

/* ---- sticky summary panel ---- */
.po-summary { position: sticky; top: 24px; }

.po-summary__card {
  background: var(--hero-bg-b);
  color: var(--white);
  padding: 24px;
  border-top: 3px solid var(--red-600);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.po-summary__label {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 600;
}

.po-summary__number {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--cyan-400);
  word-break: break-all;
}

.po-summary__hint {
  font-size: 12px;
  color: var(--gray-400);
  margin: 4px 0 18px;
  line-height: 1.5;
}

.po-timeline {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.po-timeline li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: var(--gray-400);
}
.po-timeline li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 10px; height: 10px;
  border: 2px solid var(--gray-400);
  border-radius: 50%;
  background: var(--navy-950);
}
.po-timeline li.is-active { color: var(--white); font-weight: 600; }
.po-timeline li.is-active::before { border-color: var(--cyan-400); background: var(--cyan-400); }

.btn-submit {
  background: var(--red-600);
  color: var(--white);
  border: none;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s var(--ease);
}
.btn-submit:hover { background: var(--red-500); }

.po-summary__note {
  font-size: 11.5px;
  color: var(--gray-400);
  margin: 10px 0 0;
  line-height: 1.5;
}

/* ---- toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--hero-bg-b);
  color: var(--white);
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid var(--red-600);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 50;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

@media (max-width: 900px) {
  .po-form-layout { grid-template-columns: 1fr; }
  .po-summary { position: static; }
}
