/* Modernized Create Order page styling aligning with index/details */
:root {
  --surface: #fff;
  --surface-alt: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #2563eb;
}

.create-page header.page-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--text); }

.card { border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card + .card { margin-top: 16px; }
.card-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 16px; }
.card-header h3 { margin: 0; font-weight: 700; font-size: 1rem; color: var(--text); }
.card-body { padding: 16px; background: var(--surface); }

/* Use existing form grid but refine spacing */
.order-form .form-grid { gap: 14px; }
.order-form label { font-size: .9rem; color: var(--muted); font-weight: 600; }
.order-form .input, .order-form .select, .order-form .textarea { border-radius: 10px; border: 1px solid var(--border); }
.order-form .input:focus, .order-form .select:focus, .order-form .textarea:focus { outline: 2px solid rgba(37,99,235,.25); border-color: var(--primary); }

/* Fieldset visuals inside card body */
.form-section { border: 1px dashed var(--border); border-radius: 10px; padding: 12px; }
.form-legend { font-weight: 700; font-size: .95rem; color: var(--text); }

/* Details table */
.order-details-wrap .table thead th { background: var(--surface-alt); text-transform: uppercase; font-size: .75rem; letter-spacing: .04em; }
.order-details-wrap .table tbody td { vertical-align: middle; }

/* Actions */
.form-actions { text-align: right; }
.form-actions .btn-primary { background: #007aff; color: #fff; font-weight: 700; border: none; padding: 12px 28px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,122,255,.25); }

/* Responsive tweaks */
@media (max-width: 768px) {
  .card-body { padding: 12px; }
}

