/* assets/css/registration.css - Per-screen styles for signup wizards */
:root {
  --mr-accent: #e52a1a;
  --mr-border: #e5e7eb;
  --mr-muted: #6b7280;
}

/* Step indicator */
.mr-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mr-step { width: 28px; height: 28px; border-radius: 9999px; border: 1px solid var(--mr-border); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--mr-muted); background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.mr-step:hover { border-color: var(--mr-accent); }
.mr-step-active { background: var(--mr-accent); border-color: var(--mr-accent); color: #fff; }
/* Ensure gap between steps row and error alert */
.mr-steps + .mr-error { margin-top: 15px; }

/* Grids for inputs */
.mr-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mr-grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 520px) {
  .mr-grid-2 { grid-template-columns: 1fr; }
  .mr-grid-3 { grid-template-columns: 1fr; }
}

/* Form groups and labels */
.mr-form-group { display: flex; flex-direction: column; gap: 6px; }
.mr-form-label { display: block; font-weight: 600; color: var(--mr-muted); }

/* Actions footer */
.mr-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 12px; }

/* Checkbox styling wrapper */
.mr-checkbox { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.mr-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--mr-accent); }
.mr-checkbox span { color: #111827; }

/* Spacing before signature section */
.mr-checkbox + .mr-form-label { margin-top: 12px; display: block; }
/* When switching to section heading (h2.mr-card-title) instead of label */
.mr-checkbox + .mr-card-title { margin-top: 16px; display: block; }

/* OTP block spacing within Step 3 */
.mr-otp-block { margin-top: 10px; }
/* OTP resend link and helper text */
.mr-otp-resend { margin-top: 6px; }
.mr-otp-resend a { color: var(--mr-accent); font-weight: 600; text-decoration: none; }
.mr-otp-resend a:hover { text-decoration: underline; }
.mr-text-muted { color: var(--mr-muted); font-size: 12px; }

/* E-signature */
.mr-esign-wrapper { border: 1px solid var(--mr-border); border-radius: 12px; padding: 12px; background: #fff; max-width: 560px; margin: 0 auto 12px; }
.mr-esign-canvas { width: 100%; height: 160px; border: 1px dashed var(--mr-border); border-radius: 8px; background: #fff; display: block; }

/* Registration form consistency: make selects match inputs */
.mr-dashboard-card .mr-form-control { background: #f9fafb; border-radius: 10px; border: 1px solid var(--mr-border); }
.mr-dashboard-card select.mr-form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #f9fafb;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Error box styling (full-width red alert) */
.mr-error {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  margin-bottom: 12px;
}

/* Spacing between labels and option groups (checkboxes/radios/buttons) */
.mr-form-label + .mr-grid-2 { margin-top: 12px; margin-bottom: 8px; }
.mr-form-label + .mr-checkbox { margin-top: 6px; }
.mr-grid-2 + .mr-form-label { margin-top: 12px; display: block; }
.mr-grid-2 + .mr-checkbox,
.mr-checkbox + .mr-checkbox { margin-top: 8px; }
/* Ensure gap if two grids are consecutive */
.mr-grid-2 + .mr-grid-2 { margin-top: 12px; }

/* Neutral option buttons for Step 2 selections */
.mr-option-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--mr-border);
  border-radius: 10px;
  background: #f9fafb;
  color: var(--mr-text);
  font-weight: 600;
  cursor: pointer;
}
.mr-option-btn:hover { background: #f3f4f6; }
.mr-option-btn.is-active {
  background: var(--mr-accent);
  border-color: var(--mr-accent);
  color: #fff;
}
.mr-option-btn:focus { outline: none; box-shadow: none; }
.mr-option-btn.is-active:hover { background: #d91f10; border-color: #d91f10; }

/* Simplify focus state for inputs inside wizard card (no thick glow) */
.mr-dashboard-card .mr-form-control:focus {
  border-color: var(--mr-accent);
  box-shadow: none;
}
