/* PM Registry Core: service order forms. Colours follow the theme when it sets them. */
.pmrc-sform {
  --pmrc-ink: var(--navy, #0E2A44);
  --pmrc-accent: var(--red, #D7261E);
  --pmrc-line: var(--line, #D9E3EC);
  --pmrc-soft: var(--lake, #EEF4F9);
  --pmrc-muted: var(--muted, #536579);
  margin: 0 0 1.4em; color: var(--pmrc-ink);
}
.pmrc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.pmrc-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pmrc-w-half { grid-column: span 1; }
.pmrc-field > label, .pmrc-choices legend { font-weight: 600; }
.pmrc-field input[type=text], .pmrc-field input[type=email], .pmrc-field input[type=tel], .pmrc-field input[type=number], .pmrc-field input[type=date], .pmrc-field select, .pmrc-field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--pmrc-line); border-radius: 12px; background-color: #fff; color: inherit;
}
.pmrc-field input:focus, .pmrc-field select:focus, .pmrc-field textarea:focus { outline: none; border-color: var(--pmrc-ink); box-shadow: 0 0 0 4px rgba(14, 42, 68, .1); }
.pmrc-help { color: var(--pmrc-muted); font-size: .9em; }
.pmrc-field abbr.required { color: var(--pmrc-accent); text-decoration: none; border: 0; }
.pmrc-field[hidden] { display: none !important; }

.pmrc-section { margin-top: 6px; }
.pmrc-section h3 { margin: 0; font-size: 1.15em; }
.pmrc-section p { margin: 0; color: var(--pmrc-muted); }

.pmrc-choices { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.pmrc-choices legend { margin-bottom: 8px; padding: 0; }
.pmrc-choice { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--pmrc-line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s; font-weight: 500; }
.pmrc-choice:hover { border-color: var(--pmrc-ink); }
.pmrc-choice input { width: 18px; height: 18px; accent-color: var(--pmrc-accent); margin: 0; flex: none; }
.pmrc-choice em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--pmrc-accent); white-space: nowrap; }
.pmrc-choice:has(input:checked) { border-color: var(--pmrc-ink); background: var(--pmrc-soft); }
.pmrc-t-radio .pmrc-choices, .pmrc-t-checkboxes .pmrc-choices { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pmrc-t-radio .pmrc-choices legend, .pmrc-t-checkboxes .pmrc-choices legend { grid-column: 1 / -1; }

/* Steps */
.pmrc-progress { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 8px; counter-reset: none; }
.pmrc-progress li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .9em; font-weight: 600; color: var(--pmrc-muted); padding-top: 10px; border-top: 3px solid var(--pmrc-line); transition: border-color .3s, color .3s; }
.pmrc-progress li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pmrc-soft); font-size: .85em; flex: none; transition: background-color .3s, color .3s; }
.pmrc-progress li.is-current { color: var(--pmrc-ink); border-color: var(--pmrc-accent); }
.pmrc-progress li.is-current span { background: var(--pmrc-accent); color: #fff; }
.pmrc-progress li.is-done { border-color: var(--pmrc-ink); color: var(--pmrc-ink); }
.pmrc-progress li.is-done span { background: var(--pmrc-ink); color: #fff; }
.pmrc-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.pmrc-step-title { font-size: 1.3em; font-weight: 700; margin: 0 0 14px; padding: 0; outline: none; }
.pmrc-step:not([hidden]) { animation: pmrc-in .35s ease both; }
.pmrc-step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.pmrc-btn { font: inherit; font-weight: 600; padding: 12px 22px; border-radius: 999px; cursor: pointer; border: 2px solid var(--pmrc-ink); background: #fff; color: var(--pmrc-ink); transition: background-color .2s, color .2s, transform .2s; }
.pmrc-btn:hover { transform: translateY(-1px); }
.pmrc-btn-next { margin-left: auto; background: var(--pmrc-ink); color: #fff; }
.pmrc-btn-add { justify-self: start; border-style: dashed; margin-top: 4px; }

/* Repeatable groups */
.pmrc-group { gap: 12px; }
.pmrc-group-head h3 { margin: 0; font-size: 1.15em; }
.pmrc-group-head p { margin: 4px 0 0; }
.pmrc-rows { display: grid; gap: 14px; }
.pmrc-row { border: 1.5px solid var(--pmrc-line); border-radius: 16px; padding: 16px; background: #fff; }
.pmrc-row.is-new { animation: pmrc-in .3s ease both; }
.pmrc-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pmrc-row-remove { background: none; border: 0; color: var(--pmrc-accent); font: inherit; font-size: .9em; font-weight: 600; cursor: pointer; padding: 4px; }
.pmrc-row-remove[hidden], .pmrc-btn[hidden] { display: none; }

.pmrc-total { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 14px 18px; border-radius: 14px; background: var(--pmrc-soft); font-size: 1.05em; }
.pmrc-total strong { font-size: 1.3em; }
.pmrc-total[hidden] { display: none; }

@keyframes pmrc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .pmrc-grid { grid-template-columns: 1fr; }
  .pmrc-w-half { grid-column: 1 / -1; }
  .pmrc-progress li { font-size: 0; gap: 0; }
  .pmrc-progress li span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pmrc-step:not([hidden]), .pmrc-row.is-new { animation: none; }
}

/* ---------- Standalone order form ---------- */
.pmrc-order { margin: 0; }
.pmrc-standalone { background: #fff; border: 1px solid var(--pmrc-line); border-radius: 24px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 40px 70px -50px rgba(14, 42, 68, .55); margin: 0; }
.pmrc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pmrc-btn-submit { margin-left: auto; background: var(--pmrc-accent); border-color: var(--pmrc-accent); color: #fff; padding: 14px 28px; box-shadow: 0 6px 16px -8px rgba(215, 38, 30, .7); }
.pmrc-btn-submit:hover { filter: brightness(.92); }
.pmrc-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; color: var(--pmrc-muted); font-size: .9em; }
.pmrc-alert { padding: 14px 18px; border-radius: 14px; background: #FDECEA; color: #8a1f11; }
.pmrc-inline-error { color: #8a1f11; background: #FDECEA; border-radius: 10px; padding: 8px 12px; font-size: .9em; }
.pmrc-inline-error[hidden] { display: none; }
.pmrc-full-wrap { background: var(--pmrc-soft); border-radius: 14px; padding: 14px 16px; }
.pmrc-full-name { font-size: 1.25em; font-weight: 700; min-height: 1.3em; display: block; }
.pmrc-full-name:empty::before { content: "Your name will appear here"; color: var(--pmrc-muted); font-weight: 400; font-size: .8em; }

.pmrc-review-intro { color: var(--pmrc-muted); margin: 0 0 16px; }
.pmrc-review { display: grid; gap: 14px; }
.pmrc-review-block { border: 1.5px solid var(--pmrc-line); border-radius: 16px; padding: 16px 18px; }
.pmrc-review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pmrc-review-head h4 { margin: 0; font-size: 1.05em; }
.pmrc-review-edit { background: none; border: 0; color: var(--pmrc-accent); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.pmrc-review-edit:hover { background: var(--pmrc-soft); }
.pmrc-review dl { margin: 0; display: grid; gap: 0; }
.pmrc-review dl > div { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--pmrc-soft); }
.pmrc-review dl > div:first-child { border-top: 0; }
.pmrc-review dt { color: var(--pmrc-muted); }
.pmrc-review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pmrc-review-total { margin-top: 16px; }
@media (max-width: 640px) { .pmrc-review dl > div { grid-template-columns: 1fr; gap: 2px; } }
