.mca-ms-wrapper,
.mca-multistep-form { width: 100%; box-sizing: border-box; }
.mca-ms-card { direction: rtl; position: relative; overflow: hidden; max-width: 100%; box-sizing: border-box; }
.mca-ms-hp { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; left: -9999px !important; }
.mca-ms-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.mca-ms-header-icon { width: 54px; height: 54px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: rgba(2,168,118,.12); flex: 0 0 54px; font-size: 22px; }
.mca-ms-header-icon svg { width: 1em; height: 1em; fill: currentColor; }
.mca-ms-title { margin: 0 0 6px; font-size: 22px; line-height: 1.5; font-weight: 800; }
.mca-ms-subtitle { margin: 0; line-height: 1.9; }
.mca-ms-progress { margin-bottom: 24px; }
.mca-ms-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: #64748b; font-size: 13px; }
.mca-ms-progress-track { width: 100%; height: 9px; border-radius: 999px; overflow: hidden; }
.mca-ms-progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; transition: width .28s ease; }
.mca-ms-steps-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.mca-ms-step-pill { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid rgba(148,163,184,.35); border-radius: 14px; background: rgba(248,250,252,.82); font-size: 13px; line-height: 1.6; transition: .2s ease; }
.mca-ms-step-pill.is-active { border-color: rgba(2,168,118,.55); background: rgba(2,168,118,.08); }
.mca-ms-step-pill.is-done { opacity: .8; }
.mca-ms-step-number { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e2e8f0; color: #fff; font-size: 12px; font-weight: 800; flex: 0 0 26px; }
.mca-ms-progress-compact .mca-ms-steps-nav { display: none; }
.mca-ms-body { min-height: 80px; }
.mca-ms-step { display: none; animation: mcaMsFade .22s ease; }
.mca-ms-step.is-active { display: block; }
@keyframes mcaMsFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.mca-ms-step-head { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; }
.mca-ms-step-icon { width: 38px; height: 38px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: #02A876; background: rgba(2,168,118,.1); flex: 0 0 38px; }
.mca-ms-step-head h4 { margin: 0; font-size: 17px; font-weight: 800; color: #0f172a; }
.mca-ms-step-head p { margin: 3px 0 0; color: #64748b; line-height: 1.8; }
.mca-ms-fields-grid { width: 100%; max-width: 100%; box-sizing: border-box; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: flex-start; gap: 18px; overflow: visible; }
.mca-ms-field { grid-column: span var(--mca-ms-span, 12); width: auto; min-width: 0; max-width: 100%; box-sizing: border-box; }
.mca-ms-field-hidden { display: none !important; }
.mca-ms-field.is-hidden-by-condition { display: none !important; }
.mca-ms-label { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 14px; font-weight: 700; line-height: 1.7; }
.mca-ms-label b { color: #e11d48; font-weight: 900; }
.mca-ms-field-icon { display: inline-flex; align-items: center; justify-content: center; color: #02A876; }
.mca-ms-field-icon svg { width: 1em; height: 1em; fill: currentColor; }
.mca-ms-input-wrap { position: relative; }
.mca-ms-control { display: block; width: 100%; min-height: 46px; box-sizing: border-box; padding: 11px 13px; outline: none; border: 1px solid rgba(148,163,184,.45); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; font: inherit; }
textarea.mca-ms-control { min-height: 120px; resize: vertical; }
.mca-ms-control:focus { border-color: rgba(2,168,118,.8); box-shadow: 0 0 0 4px rgba(2,168,118,.12); }
.mca-ms-help { display: block; margin-top: 7px; color: #64748b; line-height: 1.8; }
.mca-ms-field-error { min-height: 18px; margin-top: 6px; color: #d92d20; font-size: 12px; line-height: 1.6; }
.mca-ms-field.has-error .mca-ms-control,
.mca-ms-field.has-error .mca-ms-upload-box,
.mca-ms-field.has-error .mca-ms-signature-pad { border-color: #f04438 !important; box-shadow: 0 0 0 4px rgba(240,68,56,.10); }
.mca-ms-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.mca-ms-choice,
.mca-ms-acceptance { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 12px; border: 1px solid rgba(148,163,184,.35); border-radius: 14px; background: rgba(248,250,252,.8); line-height: 1.7; }
.mca-ms-choice input,
.mca-ms-acceptance input { accent-color: #02A876; }
.mca-ms-acceptance { width: 100%; box-sizing: border-box; align-items: flex-start; }
.mca-ms-province-city { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mca-ms-upload-box { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 142px; padding: 18px; border: 1px dashed rgba(148,163,184,.7); text-align: center; cursor: pointer; transition: .18s ease; }
.mca-ms-upload-box.is-drag { transform: translateY(-1px); border-color: #02A876; box-shadow: 0 10px 30px rgba(2,168,118,.12); }
.mca-ms-upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mca-ms-upload-icon { font-size: 28px; margin-bottom: 8px; }
.mca-ms-upload-text { font-weight: 700; color: #334155; }
.mca-ms-upload-box em { margin-top: 5px; font-style: normal; color: #64748b; font-size: 12px; }
.mca-ms-signature { width: 100%; }
.mca-ms-signature-pad { width: 100%; max-width: 100%; height: 180px; display: block; box-sizing: border-box; border: 1px solid rgba(148,163,184,.45); background: #fff; touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.mca-ms-clear-signature { margin-top: 8px; border: none; background: #eef2f7; color: #334155; border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.mca-ms-response { display: none; margin-top: 20px; }
.mca-ms-message { padding: 13px 15px; border-radius: 14px; border: 1px solid; line-height: 1.9; }
.mca-ms-message-success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.mca-ms-message-error { background: #fff1f0; border-color: #fecdca; color: #b42318; }
.mca-ms-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.mca-ms-btn { border: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; cursor: pointer; transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease; text-decoration: none; }
.mca-ms-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(15,23,42,.12); }
.mca-ms-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }
.mca-ms-btn svg { width: 1em; height: 1em; fill: currentColor; }
.mca-ms-submit { display: none; margin-right: auto; }
.mca-ms-prev { display: none; }
@media (max-width: 1024px) {
  .mca-ms-field { grid-column: span var(--mca-ms-span-tablet, 12); }
}
@media (max-width: 767px) {
  .mca-ms-card { padding: 18px !important; border-radius: 18px !important; }
  .mca-ms-header { align-items: flex-start; }
  .mca-ms-header-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 15px; }
  .mca-ms-title { font-size: 18px; }
  .mca-ms-steps-nav { grid-template-columns: 1fr; }
  .mca-ms-step-pill-text { white-space: normal; }
  .mca-ms-field { grid-column: span var(--mca-ms-span-mobile, 12); }
  .mca-ms-province-city { grid-template-columns: 1fr; }
  .mca-ms-actions { flex-direction: column-reverse; align-items: stretch; }
  .mca-ms-btn { width: 100%; }
  .mca-ms-choices { flex-direction: column; }
  .mca-ms-choice { width: 100%; box-sizing: border-box; }
}
