/* Mehrgan membership form polish: strong, narrowly-scoped Elementor-safe selectors */
body .mfc-home,body .mfc-home *{box-sizing:border-box}
body .mfc-home{
  width:100%!important;max-width:1100px!important;margin:32px auto!important;
  padding:32px 24px!important;background:linear-gradient(145deg,#f2f7fc,#f4f9f3)!important;
  border-radius:20px!important;direction:rtl!important;color:#243a52!important;
}
body .mfc-home .mfc-home-inner{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:19px!important;
  max-width:740px!important;margin:0 auto!important;align-items:stretch!important;
}
body .mfc-home .mfc-intro{display:block!important;text-align:center!important;min-width:0!important}
body .mfc-home .mfc-intro .mfc-kicker{font-size:11px!important;letter-spacing:1.6px!important}
body .mfc-home .mfc-intro h2{margin:10px 0 10px!important;font-size:clamp(21px,3vw,29px)!important;font-weight:900!important;line-height:1.65!important;color:#243b52!important}
body .mfc-home .mfc-intro p{font-size:13px!important;line-height:2.25!important;margin:0 auto!important;color:#5d7280!important;max-width:640px!important}
body .mfc-home .mfc-form{
  display:block!important;width:100%!important;max-width:740px!important;margin:0 auto!important;
  padding:27px!important;border-radius:19px!important;background:#fff!important;
  box-shadow:0 10px 34px #253e5b15!important;min-width:0!important;
}
body .mfc-home .mfc-form h3{margin:0 0 20px!important;text-align:right!important;font-size:19px!important}
body .mfc-home .mfc-form .mfc-fields{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  column-gap:17px!important;row-gap:15px!important;align-items:start!important;
}
body .mfc-home .mfc-form .mfc-fields>.mfc-field-wide{grid-column:1/-1!important}
body .mfc-home .mfc-form .mfc-fields label,
body .mfc-home .mfc-form .mfc-birth-wrap>label{
  font-family:Vazirmatn,Tahoma,sans-serif!important;font-size:13px!important;
  font-weight:750!important;color:#354e64!important;line-height:1.8!important;
}
body .mfc-home .mfc-form .mfc-fields>label{display:flex!important;flex-direction:column!important;gap:7px!important}
body .mfc-home .mfc-form .mfc-fields>label>input:not([type=radio]),
body .mfc-home .mfc-form .mfc-fields>label>textarea{
  display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
  padding:11px 13px!important;margin:0!important;min-height:44px!important;
  background:#f9fbfd!important;border:1px solid #dce5ee!important;border-radius:10px!important;
  box-shadow:none!important;color:#263e54!important;font-size:13px!important;
}
body .mfc-home .mfc-form .mfc-birth-wrap{
  display:flex!important;flex-direction:column!important;gap:7px!important;min-width:0!important;position:relative!important;
}
body .mfc-home .mfc-form .mfc-birth-control{
  display:flex!important;align-items:stretch!important;flex-direction:row!important;gap:7px!important;
  width:100%!important;min-width:0!important;position:relative!important;min-height:44px!important;
}
body .mfc-home .mfc-form .mfc-birth-control input#mfc-birth-date{
  display:block!important;position:static!important;min-width:0!important;flex:1 1 auto!important;
  width:auto!important;min-height:44px!important;height:auto!important;margin:0!important;
  padding:9px 12px!important;text-align:center!important;font-size:13px!important;line-height:1.5!important;
  border-radius:10px!important;border:1px solid #dce5ee!important;background:#f9fbfd!important;
}
body .mfc-home .mfc-form .mfc-birth-control button.mfc-calendar-toggle{
  display:flex!important;position:static!important;inset:auto!important;transform:none!important;
  flex:0 0 46px!important;width:46px!important;min-width:46px!important;max-width:46px!important;
  height:auto!important;min-height:44px!important;margin:0!important;padding:0!important;
  align-items:center!important;justify-content:center!important;align-self:stretch!important;
  background:#eaf1fb!important;border:1px solid #cbd9ed!important;border-radius:10px!important;
  color:#163962!important;cursor:pointer!important;line-height:1!important;box-shadow:none!important;
}
body .mfc-home .mfc-form .mfc-calendar-toggle svg{
  display:block!important;width:23px!important;height:23px!important;min-width:23px!important;
  stroke:#163962!important;fill:none!important;
}
body .mfc-home .mfc-form .mfc-calendar-toggle:hover{background:#dbe9fa!important}
body .mfc-home .mfc-form .mfc-membership-choice{
  grid-column:1/-1!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:8px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;
  min-width:0!important;width:100%!important;box-shadow:none!important;
}
body .mfc-home .mfc-form .mfc-membership-choice .mfc-membership-title{
  display:block!important;font-size:14px!important;font-weight:850!important;color:#354e64!important;
  text-align:right!important;padding:0!important;margin:0 0 3px!important;line-height:1.8!important;
}
body .mfc-home .mfc-form .mfc-membership-choice label{
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
  gap:11px!important;min-height:31px!important;width:100%!important;margin:0!important;
  padding:3px 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  background:transparent!important;text-align:right!important;direction:rtl!important;
  font-size:13px!important;line-height:1.7!important;cursor:pointer!important;
}
body .mfc-home .mfc-form .mfc-membership-choice input[type=radio]{
  display:inline-block!important;visibility:visible!important;appearance:auto!important;
  position:static!important;float:none!important;transform:none!important;
  flex:0 0 19px!important;width:19px!important;min-width:19px!important;max-width:19px!important;
  height:19px!important;min-height:19px!important;margin:0!important;padding:0!important;
  border-radius:50%!important;accent-color:#2c6b84!important;cursor:pointer!important;
}
body .mfc-home .mfc-form .mfc-photo-uploader{
  grid-column:1/-1!important;width:100%!important;position:relative!important;
  display:block!important;margin:4px 0 0!important;padding:17px!important;
  border:2px dashed #a1bac7!important;border-radius:15px!important;
  background:#f9fcff!important;box-shadow:none!important;
}
body .mfc-home .mfc-form .mfc-photo-uploader.mfc-is-dragging{
  border-color:#2d7890!important;background:#e9f4f8!important;
}
body .mfc-home .mfc-form .mfc-photo-copy{display:flex!important;flex-direction:column!important;gap:2px!important;margin:0 0 7px!important;text-align:right!important}
body .mfc-home .mfc-form .mfc-photo-copy strong{font-size:13px!important;color:#334e65!important}
body .mfc-home .mfc-form .mfc-photo-copy small{font-size:11px!important;color:#78909f!important}
body .mfc-home .mfc-form label.mfc-photo-selector{
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;min-height:91px!important;gap:15px!important;margin:0!important;
  padding:9px!important;border:0!important;border-radius:11px!important;background:transparent!important;
  box-shadow:none!important;cursor:pointer!important;
}
body .mfc-home .mfc-form label.mfc-photo-selector:hover{background:#edf6f9!important}
body .mfc-home .mfc-form .mfc-photo-preview{
  display:grid!important;place-items:center!important;flex:0 0 68px!important;width:68px!important;
  height:90px!important;aspect-ratio:3/4!important;overflow:hidden!important;
  background:#e8eff4!important;border:1px solid #d8e3ec!important;border-radius:11px!important;
}
body .mfc-home .mfc-form .mfc-photo-preview img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
body .mfc-home .mfc-form .mfc-photo-preview img[hidden]{display:none!important}
body .mfc-home .mfc-form .mfc-photo-picker-text{display:flex!important;flex:1 1 auto!important;min-width:0!important}
body .mfc-home .mfc-form .mfc-photo-picker-text strong{font-size:13px!important;color:#355b75!important}
body .mfc-home .mfc-form input#mfc-photo-input{display:none!important;position:absolute!important;width:1px!important;height:1px!important;visibility:hidden!important}
body .mfc-home .mfc-form .mfc-photo-picker-icon{display:grid!important;place-items:center!important;flex:0 0 30px!important;width:30px!important;height:30px!important;background:#e6f0f6!important;border-radius:50%!important;color:#356e89!important}
body .mfc-home .mfc-form .mfc-attention{margin-top:17px!important}
body .mfc-home .mfc-form button.mfc-submit{width:100%!important;justify-content:center!important}
@media(max-width:700px){
  body .mfc-home{margin:15px auto 30px!important;padding:24px 12px!important}
  body .mfc-home .mfc-home-inner{gap:14px!important;max-width:100%!important}
  body .mfc-home .mfc-form{padding:18px!important}
}
@media(max-width:480px){
 body .mfc-home .mfc-form .mfc-fields{grid-template-columns:minmax(0,1fr)!important}
 body .mfc-home .mfc-form .mfc-fields>.mfc-field-wide{grid-column:auto!important}
 body .mfc-home .mfc-form .mfc-intro h2{font-size:21px!important}
 body .mfc-home .mfc-form .mfc-birth-control button.mfc-calendar-toggle{flex-basis:46px!important}
}

/* Instant Persian-only mobile number feedback */
body .mfc-home .mfc-form .mfc-fields label.mfc-mobile-field input#mfc-mobile.mfc-mobile-invalid,
body .mfc-home .mfc-form .mfc-fields label.mfc-mobile-field input#mfc-mobile[aria-invalid="true"]{
 border:2px solid #d43f50!important;background:#fff6f6!important;
 box-shadow:0 0 0 3px rgba(212,63,80,.12)!important;
 color:#88333b!important;
}
body .mfc-home .mfc-form .mfc-fields label.mfc-mobile-field input#mfc-mobile.mfc-mobile-valid{
 border:1.5px solid #33996b!important;background:#f7fffa!important;
}
body .mfc-home .mfc-form .mfc-mobile-field span#mfc-mobile-feedback{
 display:block!important;min-height:0!important;margin:3px 0 0!important;
 color:#647b8f!important;text-align:right!important;
 font:700 12px/1.9 Vazirmatn,Tahoma,Arial,sans-serif!important;
}
body .mfc-home .mfc-form .mfc-mobile-field span#mfc-mobile-feedback:empty{display:none!important}
body .mfc-home .mfc-form .mfc-mobile-field span#mfc-mobile-feedback.mfc-mobile-feedback-error{
 color:#bf3445!important;
}
body .mfc-home .mfc-form .mfc-mobile-field span#mfc-mobile-feedback.mfc-mobile-feedback-ok{
 color:#278253!important;
}


/* MFC iOS / narrow-screen layout safeguard (2026-10-10).
   Keep this scoped to the membership page; preserve user pinch zoom. */
@media screen and (max-width: 767px) {
  body.page-id-1850,
  body.page-id-1850 #page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  body.page-id-1850 #content,
  body.page-id-1850 #content .page-content,
  body.page-id-1850 .elementor-1850,
  body.page-id-1850 .elementor-1850 > .elementor-top-section,
  body.page-id-1850 .elementor-1850 .elementor-container,
  body.page-id-1850 .elementor-1850 .elementor-column,
  body.page-id-1850 .elementor-1850 .elementor-widget-wrap,
  body.page-id-1850 .elementor-1850 .elementor-widget-shortcode,
  body.page-id-1850 .elementor-1850 .elementor-widget-shortcode .elementor-widget-container,
  body.page-id-1850 .elementor-1850 .elementor-shortcode {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.page-id-1850 .mfc-home {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 16px auto 28px !important;
    padding: 22px 12px !important;
  }
  body.page-id-1850 .mfc-home .mfc-home-inner,
  body.page-id-1850 .mfc-home .mfc-form,
  body.page-id-1850 .mfc-home .mfc-fields {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body.page-id-1850 .mfc-home .mfc-form {
    padding: 18px 14px !important;
  }
  /* iOS Safari focuses inputs below 16px by enlarging the page. */
  body.page-id-1850 .mfc-home .mfc-form input:not([type="radio"]):not([type="file"]),
  body.page-id-1850 .mfc-home .mfc-form textarea,
  body.page-id-1850 .mfc-home .mfc-form select,
  body.page-id-1850 .mfc-home .mfc-form .mfc-birth-control input#mfc-birth-date {
    font-size: 16px !important;
  }
}


/* Keep the antispam honeypot clipped on-screen: negative offsets in RTL
   create a huge horizontal scroll area in mobile Safari. This final inline
   stylesheet also overrides older cached copies of style.css. */
body.page-id-1850 .mfc-home .mfc-form .mfc-trap{
  position:absolute!important;
  top:0!important;
  left:0!important;
  width:1px!important;
  height:1px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  clip-path:inset(50%)!important;
  opacity:0!important;
  pointer-events:none!important;
}


/* Fanclub registration feedback — visible on mobile, after upload failures and after successful save. */
body .mfc-home .mfc-form .mfc-alert[hidden]{display:none!important}
body .mfc-home .mfc-form .mfc-alert:not([hidden]){
  display:grid!important;grid-template-columns:1fr!important;gap:7px!important;
  margin:0 0 20px!important;padding:17px 19px!important;border-radius:15px!important;
  direction:rtl!important;text-align:right!important;scroll-margin-top:90px!important;
  box-shadow:0 8px 22px rgba(31,74,101,.07)!important;
  border:1px solid #dce6ec!important;
  background:#f1f6fb!important;color:#24445d!important;
}
body .mfc-home .mfc-form .mfc-alert strong{
  display:block!important;font-size:16px!important;font-weight:850!important;line-height:1.9!important;
  color:inherit!important;margin:0!important;
}
body .mfc-home .mfc-form .mfc-alert span{
  display:block!important;font-size:13px!important;font-weight:500!important;line-height:2.15!important;
  color:inherit!important;margin:0!important;
}
body .mfc-home .mfc-form .mfc-alert-success{
  background:linear-gradient(135deg,#ecf9f1,#f6fcf5)!important;
  color:#17673f!important;border:1px solid #a3d9b6!important;border-right:5px solid #258a53!important;
}
body .mfc-home .mfc-form .mfc-alert-success strong::before{
  content:'✓';display:inline-flex;align-items:center;justify-content:center;
  width:29px;height:29px;margin-left:9px;border-radius:50%;
  background:#268b53;color:white;font-size:18px;font-weight:900;
}
body .mfc-home .mfc-form .mfc-alert-error{
  background:#fff4f3!important;color:#a52d35!important;
  border:1px solid #efb9ba!important;border-right:5px solid #e04949!important;
}
body .mfc-home .mfc-form .mfc-alert-loading{
  background:#f0f5fc!important;color:#35548a!important;border-right:5px solid #4777b0!important;
}
body .mfc-home .mfc-form .mfc-photo-status.mfc-photo-error{
  display:block!important;color:#b2242e!important;background:#fff0f0!important;
  border:1px solid #f3c5c6!important;border-radius:10px!important;
  padding:9px 12px!important;line-height:2!important;font-size:13px!important;
}
body .mfc-home .mfc-form .mfc-photo-status.mfc-photo-good{
  display:block!important;color:#206c43!important;line-height:2!important;font-size:12px!important;
}
body .mfc-home .mfc-form .mfc-message.mfc-success{
  color:#167648!important;font-weight:750!important;font-size:14px!important;
  background:#edf9f1!important;border-radius:10px!important;padding:10px 13px!important;
  margin-top:13px!important;
}
body .mfc-home .mfc-form .mfc-message.mfc-error{
  color:#b42c34!important;font-weight:650!important;font-size:13px!important;
  line-height:2.1!important;margin-top:12px!important;
}
@media (max-width:600px){
  body .mfc-home .mfc-form .mfc-alert:not([hidden]){padding:14px!important;margin-bottom:16px!important}
  body .mfc-home .mfc-form .mfc-alert strong{font-size:14px!important}
  body .mfc-home .mfc-form .mfc-alert span{font-size:12px!important}
}


/* Only the confirmation remains after a successfully saved membership. */
body .mfc-home.mfc-registration-done .mfc-intro{display:none!important}
body .mfc-home .mfc-form.mfc-complete{
  max-width:740px!important;
  padding:25px!important;
  min-height:0!important;
  text-align:center!important;
}
body .mfc-home .mfc-form.mfc-complete > :not(.mfc-alert){display:none!important}
body .mfc-home .mfc-form.mfc-complete .mfc-alert-success:not([hidden]){
  text-align:center!important;
  justify-items:center!important;
  margin:0!important;
  padding:34px 24px!important;
  border-right:1px solid #a3d9b6!important;
  border-radius:18px!important;
  box-shadow:0 12px 26px rgba(31,120,75,.10)!important;
}
body .mfc-home .mfc-form.mfc-complete .mfc-alert-success strong{
  font-size:20px!important;
  line-height:1.9!important;
}
body .mfc-home .mfc-form.mfc-complete .mfc-alert-success span{
  max-width:550px!important;
  font-size:14px!important;
  line-height:2.25!important;
}
@media(max-width:600px){
 body .mfc-home .mfc-form.mfc-complete{padding:12px!important}
 body .mfc-home .mfc-form.mfc-complete .mfc-alert-success:not([hidden]){padding:23px 14px!important}
 body .mfc-home .mfc-form.mfc-complete .mfc-alert-success strong{font-size:17px!important}
}
