/* Shared Arabic RTL notification components for the registration flow. */
.reg-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Toasts */
.reg-toasts{position:fixed;z-index:2000;inset-inline-start:16px;inset-inline-end:16px;bottom:16px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;pointer-events:none;direction:rtl}
.reg-toast{pointer-events:auto;display:flex;align-items:flex-start;gap:10px;max-width:min(460px,100%);background:#fff;color:#0F172A;border-radius:14px;padding:12px 14px;box-shadow:0 12px 30px rgba(15,39,66,.18);border-inline-start:5px solid #12B8E2;font-family:'Cairo',system-ui,sans-serif;font-size:14px;line-height:1.7;animation:reg-toast-in .2s ease-out}
.reg-toast--success{border-color:#16a34a}
.reg-toast--warning{border-color:#d97706}
.reg-toast--error{border-color:#dc2626}
.reg-toast__icon{flex:0 0 24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:800;color:#fff;background:#12B8E2;font-size:13px}
.reg-toast--success .reg-toast__icon{background:#16a34a}
.reg-toast--warning .reg-toast__icon{background:#d97706}
.reg-toast--error .reg-toast__icon{background:#dc2626}
.reg-toast__text{flex:1}
.reg-toast__close{border:0;background:transparent;font-size:20px;line-height:1;cursor:pointer;color:#64748b;padding:0 4px;min-width:32px;min-height:32px}
.reg-toast__close:focus-visible{outline:2px solid #12B8E2;border-radius:6px}
.reg-toast--hide{opacity:0;transform:translateY(8px);transition:.2s ease}
@keyframes reg-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Inline field errors */
.reg-field-error{color:#b91c1c;font-size:13px;margin-top:6px;line-height:1.6}
.reg-field-error::before{content:"⚠ ";}
.has-error input:not([type=radio]):not([type=checkbox]),
.has-error select,.has-error textarea,
.has-error .select2-selection{border-color:#dc2626!important;box-shadow:0 0 0 3px rgba(220,38,38,.12)!important}
.q-item.has-error{border-color:#fca5a5!important;background:#fff7f7!important}

/* Stage-level error summary */
.reg-error-summary{border:2px solid #dc2626;background:#fef2f2;color:#7f1d1d;border-radius:14px;padding:14px 16px;margin-bottom:16px;outline:none}
.reg-error-summary:focus{box-shadow:0 0 0 3px rgba(220,38,38,.25)}
.reg-error-summary__title{font-size:15px;margin:0 0 8px;color:#991b1b}
.reg-error-summary__list{margin:0;padding-inline-start:20px;font-size:14px;line-height:1.9}
.reg-error-summary__list a{color:#991b1b;text-decoration:underline}

/* Inline alerts (page-level notices) */
.reg-inline-alert{border-radius:14px;padding:12px 14px;margin:0 0 14px;font-size:14px;line-height:1.8;border:1px solid}
.reg-inline-alert--info{background:#eff9ff;border-color:#bae6fd;color:#0c4a6e}
.reg-inline-alert--success{background:#f0fdf4;border-color:#bbf7d0;color:#14532d}
.reg-inline-alert--warning{background:#fffbeb;border-color:#fde68a;color:#78350f}
.reg-inline-alert--error{background:#fef2f2;border-color:#fecaca;color:#7f1d1d}

/* Buttons used by modal/alerts */
.reg-btn{font-family:'Cairo',system-ui,sans-serif;font-weight:700;border-radius:12px;padding:10px 18px;font-size:15px;cursor:pointer;border:1px solid transparent;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none}
.reg-btn--primary{background:#20E2C5;color:#0b1f2f}
.reg-btn--primary:hover{filter:brightness(.96)}
.reg-btn--secondary{background:#fff;color:#0b1f2f;border-color:#0b1f2f}
.reg-btn--danger{background:#fff;color:#b91c1c;border-color:#fca5a5}
.reg-btn--sm{min-height:36px;padding:6px 12px;font-size:13px}
.reg-btn:focus-visible{outline:3px solid #12B8E2;outline-offset:2px}
.reg-btn[disabled]{opacity:.6;cursor:not-allowed}

/* Modal */
.reg-modal-open{overflow:hidden}
.reg-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:2100;display:flex;align-items:center;justify-content:center;padding:16px}
.reg-modal{background:#fff;border-radius:18px;max-width:480px;width:100%;padding:22px;box-shadow:0 20px 50px rgba(0,0,0,.25);font-family:'Cairo',system-ui,sans-serif;text-align:right}
.reg-modal__title{font-size:19px;margin:0 0 8px;color:#0F2742}
.reg-modal__text{font-size:15px;line-height:1.9;color:#334155;margin:0 0 18px}
.reg-modal__actions{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:480px){.reg-modal__actions .reg-btn{flex:1 1 100%}}
