/* Hesamizi Smart Auth 1.0: isolated; theme/Elementor CSS vars are authoritative. */
.hzd-auth-smart{--hzd-smart-button-bg:var(--hzd-auth-main,var(--hz-primary,#2271b1));--hzd-smart-button-color:var(--hz-form-button-text,#fff);max-width:100%;min-width:0}
.hzd-auth-smart [hidden]{display:none!important}
.hzd-auth-smart [data-smart-stage]{animation:hzd-smart-fade .17s ease-out}
.hzd-auth-smart .hzd-smart-intro-form label,.hzd-auth-smart .hzd-smart-password-form label{display:block;margin-bottom:8px;font-weight:600}
.hzd-auth-smart .hzd-smart-password-form label{margin-bottom:15px}
.hzd-auth-smart input:not([type=hidden]){width:100%;font:inherit;direction:ltr;text-align:left;box-sizing:border-box;min-height:48px}
.hzd-auth-smart .hzd-smart-password-form label input{display:block;margin-top:8px}
.hzd-auth-smart .hzd-smart-button{display:block;width:100%;min-height:46px;border:0;border-radius:var(--hz-form-button-radius,10px);color:var(--hzd-smart-button-color);background:var(--hzd-smart-button-bg);font:inherit;font-weight:600;cursor:pointer;margin-top:12px}
.hzd-auth-smart .hzd-smart-button:hover,.hzd-auth-smart .hzd-smart-button:focus-visible{filter:brightness(.93)}
.hzd-auth-smart .jet-form-builder__submit{width:100%;background:var(--hzd-smart-button-bg);color:var(--hzd-smart-button-color)}
.hzd-auth-smart .hzd-smart-link{background:transparent!important;border:0!important;box-shadow:none!important;padding:8px 0;cursor:pointer;color:var(--hzd-smart-button-bg);font:inherit;font-size:.92em;text-align:right}
.hzd-auth-smart .hzd-smart-link:hover{text-decoration:underline}
.hzd-auth-smart button:disabled{cursor:not-allowed;opacity:.55}
.hzd-auth-smart .hzd-smart-error:not(:empty){margin:10px 0;color:var(--hz-form-error,#b42318);font-size:.92em;line-height:1.8}
.hzd-auth-smart .hzd-smart-actions{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:10px}
.hzd-auth-smart .hzd-smart-locked-row{display:none!important}
.hzd-auth-smart .hzd-smart-countdown{font-size:.88em}
.hzd-auth-smart :is(a,button,input):focus-visible{outline:2px solid var(--hzd-smart-button-bg);outline-offset:3px}
@keyframes hzd-smart-fade{from{opacity:.25;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.hzd-auth-smart [data-smart-stage]{animation:none}}
/* v1.1 — center all primary buttons in both axes; honor Elementor typography/colors. */
.hzd-auth-smart :is(button.hzd-smart-button,button.jet-form-builder__submit,input.jet-form-builder__submit){
  display:flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;vertical-align:middle;line-height:1.5;
  width:100%;min-height:48px;box-sizing:border-box;padding:10px 16px;
}
.hzd-auth-smart :is(button.hzd-smart-button,button.jet-form-builder__submit) :is(span,strong){text-align:center!important;line-height:inherit}
.hzd-auth-smart .hzd-smart-email-password-form label,
.hzd-auth-smart .hzd-smart-email-verify-form label{display:block;margin-bottom:14px;font-weight:600}
.hzd-auth-smart .hzd-smart-email-password-form input,
.hzd-auth-smart .hzd-smart-email-verify-form input{display:block;margin-top:8px}
.hzd-auth-smart [data-smart-stage] > .hzd-auth-copy{margin-bottom:20px}
.hzd-auth-smart [data-smart-stage] .hzd-smart-actions{gap:10px 20px}
.hzd-auth-smart .hzd-smart-email-verify-form input[name="email_code"]{text-align:center;letter-spacing:.28em;font-size:1.1em;direction:ltr}
.hzd-auth-smart .hzd-smart-intro-form input[name="smart_identifier"]{direction:ltr;text-align:left}
.hzd-auth-smart .hzd-smart-link{display:inline-flex;justify-content:center;align-items:center;text-align:center;line-height:1.6}

/* v1.2 — Single-field mobile OTP in Smart Auth only (email OTP already uses one field). */
.hzd-auth-smart .hzd-smart-verify input[name="otp"] {
  display: block;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  direction: ltr;
  text-align: center;
  letter-spacing: .28em;
  font-size: 1.1em;
}
/* v1.3: Title belongs to the Auth widget itself, not another Elementor Heading widget. */
.hzd-auth-box .hzd-auth-heading {
  padding-right: 6px;
  border: 0;
  border-right: 5px solid var(--hzd-auth-main, var(--hz-form-button-bg, var(--hz-primary, #2271b1)));
  border-radius: 2px;
}
/* No inherited justified spacing in links; Elementor typography still supplies font. */
.hzd-auth-smart .hzd-smart-link {
  word-spacing: normal !important;
  letter-spacing: normal !important;
  text-align: center !important;
  text-align-last: center;
  white-space: normal;
  flex: 0 0 auto;
}
.hzd-auth-smart .hzd-smart-countdown:not(:empty) {
  display: inline-block;
  margin-inline-start: 8px;
  white-space: nowrap;
  unicode-bidi: isolate;
}
/* Ensure the actual password control never collides with the JFB eye icon. */
.hzd-auth-smart .jet-form-builder-row:has(.seen-icon) .jet-form-builder__field-wrap,
.hzd-auth-smart .jet-form-builder__field-wrap:has(.seen-icon){position:relative!important}
.hzd-auth-smart .seen-icon{
  position:absolute!important;right:12px!important;left:auto!important;
  inset-inline-start:auto!important;inset-inline-end:auto!important;
  top:50%!important;transform:translateY(-50%)!important;
  z-index:3;display:inline-flex!important;align-items:center;justify-content:center;
  width:24px;min-width:24px;height:24px;margin:0!important;
}
.hzd-auth-smart .jet-form-builder-row:has(.seen-icon) input:is([type="password"],[type="text"]),
.hzd-auth-smart .jet-form-builder__field-wrap:has(.seen-icon) input:is([type="password"],[type="text"]){
  padding-right:48px!important;padding-left:20px!important;
}
.hzd-auth-smart .hzd-smart-terms {
  font: inherit;
  font-size: .82em;
  font-weight: 400;
  line-height: 1.9;
  text-align: right;
  margin: 12px 0 0;
  color: var(--hz-form-muted, #687383);
}

/* v1.4 — responsive Smart Auth actions, without stretched word spacing. */
.hzd-auth-smart .hzd-smart-actions{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px 12px!important;align-items:center;justify-items:stretch;
  width:100%;max-width:100%;min-width:0;box-sizing:border-box;
}
.hzd-auth-smart .hzd-smart-actions>.hzd-smart-link{
  display:flex!important;width:100%;min-width:0;max-width:100%;box-sizing:border-box;
  justify-content:center;align-items:center;white-space:normal;
  text-align:center!important;text-align-last:center;word-spacing:0!important;
  letter-spacing:normal!important;line-height:1.65;overflow-wrap:break-word;
  font-size:clamp(.76rem,.9em,.96rem);padding:9px 2px;
}
.hzd-auth-smart .hzd-smart-actions>.hzd-smart-link:nth-child(3):last-child{
  grid-column:1/-1;max-width:100%;justify-self:center;
}
/* Hide required decorations visually without changing native/server validation. */
.hzd-auth-smart :is(.jet-form-builder__required,.jet-form-builder__required-marker,.jet-form-builder__label-required,.required) {display:none!important}
.hzd-auth-smart .jet-form-builder__label:after{content:none!important}

/* v1.5: JetFormBuilder eye: position the SPAN, not the SVG. */
.hzd-auth-smart .jet-form-builder__field-wrap.has-eye-icon {position:relative!important}
.hzd-auth-smart .jet-form-builder__field-wrap.has-eye-icon > .jfb-eye-icon,
.hzd-auth-smart .jet-form-builder__field-wrap.has-eye-icon > .jfb-eye-icon:hover,
.hzd-auth-smart .jet-form-builder__field-wrap.has-eye-icon > .jfb-eye-icon:active,
.hzd-auth-smart .jet-form-builder__field-wrap.has-eye-icon > .jfb-eye-icon:focus {
 position:absolute!important;left:5px!important;right:auto!important;top:50%!important;bottom:auto!important;
 transform:translateY(-50%)!important;width:24px!important;height:24px!important;
 margin:0!important;padding:0!important;display:flex!important;align-items:center!important;
 justify-content:center!important;cursor:pointer!important;z-index:10!important;
}
.hzd-auth-smart .jet-form-builder__field-wrap.has-eye-icon > .jfb-eye-icon svg,
.hzd-auth-smart .jet-form-builder__field-wrap.has-eye-icon > .jfb-eye-icon:hover svg {
 position:static!important;inset:auto!important;left:auto!important;right:auto!important;
 top:auto!important;bottom:auto!important;transform:none!important;width:24px!important;
 height:24px!important;margin:0!important;padding:0!important;flex-shrink:0!important;
}
.hzd-auth-smart .jet-form-builder__field-wrap.has-eye-icon > .jfb-eye-icon svg {display:none!important}
.hzd-auth-smart .jet-form-builder__field-wrap.has-eye-icon > .jfb-eye-icon.seen svg.seen-icon,
.hzd-auth-smart .jet-form-builder__field-wrap.has-eye-icon > .jfb-eye-icon:not(.seen) svg:not(.seen-icon) {display:block!important}
.hzd-auth-smart .jet-form-builder__field-wrap.has-eye-icon input[name="password"] {
 direction:ltr!important;text-align:left!important;padding-left:39px!important;
 padding-right:15px!important;box-sizing:border-box!important;
}
/* v1.5: compact single-column actions; login order reset, OTP, change. */
.hzd-auth-smart .hzd-smart-actions {
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 justify-content:flex-start!important;gap:5px!important;width:100%!important;
 grid-template-columns:none!important;
}
.hzd-auth-smart .hzd-smart-actions > .hzd-smart-link {
 display:flex!important;width:100%!important;max-width:100%!important;min-width:0!important;
 grid-column:auto!important;justify-content:flex-start!important;align-items:center!important;
 text-align:right!important;text-align-last:right!important;word-spacing:normal!important;
 letter-spacing:normal!important;white-space:normal!important;margin:0!important;
 padding:2px 0!important;line-height:1.5!important;
}
.hzd-auth-smart .hzd-smart-actions > [data-smart-action="reset"] {order:1}
.hzd-auth-smart .hzd-smart-actions > [data-smart-action="otp"] {order:2}
.hzd-auth-smart .hzd-smart-actions > [data-smart-action="back"] {order:3}

/* v1.6: names are two separate RTL fields, visually matching the password step. */
.hzd-auth-smart .hzd-smart-profile-fields input[type="text"] {
  direction:rtl;
  text-align:right;
}
.hzd-auth-smart .hzd-smart-profile-fields label {display:block;margin-bottom:15px;font-weight:600}
.hzd-auth-smart .hzd-smart-profile-fields label input {display:block;margin-top:8px}

/* v1.7: completion names must stay visible regardless of any old inline hidden attribute.
   The enclosing completion stage remains hidden until verified by the server. */
.hzd-auth-smart [data-smart-stage="set-password"]:not([hidden]) [data-smart-profile-fields] {display:block!important}

/* New OTP profile completion: two radio choices and shared Jalali birthday input. */
.hzd-auth-smart .hzd-smart-gender{border:0;padding:0;margin:0 0 15px;min-width:0}.hzd-auth-smart .hzd-smart-gender legend{font-weight:600;margin-bottom:8px}.hzd-auth-smart .hzd-smart-gender label{display:inline-flex;align-items:center;gap:8px;margin:0 0 0 24px;cursor:pointer}.hzd-auth-smart .hzd-smart-gender input[type=radio]{width:18px;min-height:18px;height:18px;accent-color:var(--hzd-auth-main,var(--hz-primary,#2271b1))}.hzd-auth-smart .hzd-smart-birth-label{display:block;font-weight:600;margin-bottom:15px}.hzd-auth-smart .hzd-smart-birth-label>.hz-jalali-field{display:flex;margin-top:8px}.hzd-auth-smart .hzd-smart-birth-label input.hz-jalali-display{width:100%;direction:rtl;text-align:right;min-height:48px}.hzd-auth-smart [data-smart-password-settings][hidden]{display:none!important}

/* 3.1.24: consistent profile completion presentation. */
.hzd-auth-smart .hzd-smart-set-password .hzd-smart-password-form{min-width:0}
.hzd-auth-smart .hzd-smart-set-password .hzd-smart-profile-fields input[type="text"]{border-radius:12px;min-height:48px;box-shadow:none;transition:border-color .18s,box-shadow .18s}
.hzd-auth-smart .hzd-smart-gender{margin:0 0 18px!important;padding:0!important;border:0!important}
.hzd-auth-smart .hzd-smart-gender legend{display:block;margin-bottom:9px;font-weight:650;font-size:14px}
.hzd-auth-smart .hzd-smart-gender label{display:inline-flex!important;align-items:center;gap:9px;margin:0 0 0 9px!important;padding:10px 15px;border:1px solid #e1e5ec;border-radius:11px;background:#f8fafc;font-size:14px;font-weight:500;cursor:pointer;transition:border-color .15s,background .15s}
.hzd-auth-smart .hzd-smart-gender label:has(input:checked){background:#eff6ff;border-color:#92bbe7}
.hzd-auth-smart .hzd-smart-gender input[type="radio"]{width:17px!important;min-width:17px!important;min-height:17px!important;height:17px!important;margin:0!important;padding:0!important;accent-color:var(--hzd-auth-main,var(--hz-primary,#2271b1));cursor:pointer}
.hzd-auth-smart .hzd-smart-birth-label{display:block;font-weight:600;margin-bottom:18px;min-width:0}
.hzd-auth-smart .hzd-smart-birth-title{display:block;margin-bottom:8px;font-size:14px}
.hzd-auth-smart .hzd-smart-birth-label>.hz-jalali-field{display:flex;width:100%;margin:0}
.hzd-auth-smart .hzd-smart-birth-label .hz-jalali-display{width:100%;direction:rtl;text-align:right}
