*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Tahoma,Arial,sans-serif;color:#123b33;background:#fff}body{overflow-x:hidden}a{text-decoration:none;color:inherit}.ltr{direction:ltr;text-align:left}.inline{display:inline-block}.app-shell{min-height:100vh;display:grid;grid-template-columns:44% 56%;direction:ltr}.hero{direction:rtl;position:relative;overflow:hidden;background:linear-gradient(145deg,#086a55,#0b896a);color:#fff;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:64px}.hero-content{position:relative;z-index:2;max-width:430px}.hero-pill,.role-chip,.eyebrow{display:inline-flex;background:rgba(255,255,255,.13);border-radius:999px;padding:8px 14px;font-size:13px}.hero h2{font-size:48px;line-height:1.65;margin:26px 0 20px;font-weight:800}.hero p{font-size:16px;line-height:2.2;opacity:.9}.hero i{position:absolute;width:430px;height:430px;border-radius:50%;background:rgba(255,255,255,.06);left:-150px;bottom:-180px}.workspace{direction:rtl;min-width:0;min-height:100vh;background:#fff;display:flex;justify-content:center}.workspace-inner{width:min(100%,720px);padding:46px 56px 60px}.brand{display:flex;align-items:center;gap:12px}.brandmark{width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#0c8e70,#0a765f);color:white;display:grid;place-items:center;font-size:31px;font-weight:bold;box-shadow:0 9px 22px rgba(7,119,94,.18)}.brand span:last-child{display:flex;flex-direction:column}.brand strong{font-size:20px}.brand small{font-size:12px;color:#87938f;margin-top:3px}.content{margin-top:64px}.content h1{font-size:30px;margin:18px 0 8px}.intro{color:#7b8985;line-height:1.9;margin:0 0 28px}.role-chip{background:#e9f7f2;color:#08775f}.form{display:flex;flex-direction:column;gap:18px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field label{font-size:14px;font-weight:700}.field em{font-style:normal;font-weight:400;color:#8b9793;font-size:12px}.field input,.field select,.field textarea{width:100%;border:1px solid #d6e2de;background:#fff;border-radius:12px;min-height:48px;padding:11px 14px;font:inherit;color:#173c35;outline:none}.field textarea{resize:vertical;min-height:96px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#159276;box-shadow:0 0 0 3px rgba(21,146,118,.09)}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.primary{border:0;border-radius:12px;min-height:52px;padding:12px 18px;background:linear-gradient(90deg,#10a37f,#087a61);color:#fff;font:inherit;font-weight:700;font-size:16px;cursor:pointer}.dev-note,.alert{padding:11px 14px;border-radius:11px;font-size:12px;line-height:1.8}.dev-note{background:#fff8e8;border:1px solid #f2df9d;color:#8b6a13;text-align:center}.alert{background:#fff0ef;border:1px solid #f1c3be;color:#a53b30}.change-role{display:block;text-align:center;margin-top:18px;color:#087a61;font-size:13px}.test-code{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;background:#eff9f6;border:1px dashed #9dd8c8;border-radius:12px;margin-bottom:18px}.test-code span{font-size:13px}.test-code b{font-size:24px;letter-spacing:5px;direction:ltr}.otp-input{text-align:center!important;font-size:23px!important;letter-spacing:7px}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:10px}.segmented label{cursor:pointer}.segmented input{position:absolute;opacity:0;pointer-events:none}.segmented span{height:48px;border:1px solid #d6e2de;border-radius:12px;display:grid;place-items:center;font-weight:400}.segmented input:checked+span{border-color:#0b896b;background:#e9f7f2;color:#08755e;font-weight:700}.verified{position:relative}.verified input{background:#f4f7f6!important;padding-left:120px}.verified span{position:absolute;left:12px;top:50%;transform:translateY(-50%);background:#e4f6f0;color:#08765e;border-radius:999px;padding:6px 10px;font-size:11px}.hidden{display:none!important}.district-title{display:flex;align-items:center;justify-content:space-between}.district-title button{border:0;background:none;color:#087a61;font:inherit;font-size:12px;cursor:pointer}.district-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;direction:ltr}.district-grid label{cursor:pointer}.district-grid input{position:absolute;opacity:0;pointer-events:none}.district-grid span{height:40px;border:1px solid #d6e2de;border-radius:10px;display:grid;place-items:center;font-weight:500}.district-grid input:checked+span{background:#0c896c;color:#fff;border-color:#0c896c}.hint{color:#8b9693;font-size:11px}.map-placeholder{display:flex;align-items:center;gap:12px;border:1px dashed #b9d8cf;background:#f7fbfa;border-radius:13px;padding:15px}.map-placeholder>span{width:38px;height:38px;border-radius:10px;background:#e7f6f1;display:grid;place-items:center;color:#087a61;font-size:22px}.map-placeholder div{display:flex;flex-direction:column;gap:4px}.map-placeholder small{color:#82908c}.role-page{min-height:100vh;background:#f4f8f7;padding:0 20px 40px}.brandbar{max-width:1080px;margin:auto;padding:28px 0}.role-card{max-width:820px;margin:80px auto 0;background:#fff;border:1px solid #e0e9e6;border-radius:24px;padding:50px;text-align:center;box-shadow:0 20px 50px rgba(27,67,57,.07)}.role-card .eyebrow{background:#e8f6f2;color:#08775f}.role-card h1{font-size:30px;margin:18px 0 10px}.role-card p{color:#7d8986}.role-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:34px}.role-actions a{border:1px solid #d7e5e1;border-radius:16px;padding:22px;text-align:right;transition:.2s}.role-actions a:hover{border-color:#0c896c;transform:translateY(-2px)}.role-actions b,.role-actions small{display:block}.role-actions b{font-size:17px;margin-bottom:7px}.role-actions small{color:#7e8c88;line-height:1.7}
@media(max-width:760px){.app-shell{display:block;min-height:100vh}.hero{display:none}.workspace{min-height:100vh;width:100%}.workspace-inner{width:100%;max-width:none;padding:24px 18px 42px}.brand{padding-bottom:22px;border-bottom:1px solid #edf1f0}.brandmark{width:44px;height:44px}.content{margin-top:30px;width:100%}.content h1{font-size:25px;line-height:1.55;margin-top:15px}.intro{font-size:14px;margin-bottom:22px}.form{gap:16px}.grid2{grid-template-columns:1fr}.field input,.field select{min-height:52px;font-size:16px}.field textarea{font-size:16px}.primary{min-height:54px;font-size:16px}.district-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.district-grid span{height:38px;border-radius:9px;font-size:13px}.verified input{padding-left:105px}.verified span{font-size:10px;padding:5px 8px}.role-page{padding:0 16px 32px}.brandbar{padding:22px 0}.role-card{margin:30px auto 0;padding:28px 18px;border-radius:18px}.role-card h1{font-size:24px;line-height:1.6}.role-actions{grid-template-columns:1fr;gap:12px;margin-top:26px}.role-actions a{padding:18px}.otp-content{max-width:none}.test-code b{font-size:21px}.form-content{padding-bottom:20px}}
@media(min-width:761px) and (max-width:1100px){.app-shell{grid-template-columns:40% 60%}.hero{padding:38px}.hero h2{font-size:38px}.workspace-inner{padding:38px 36px}}


/* V1.2.1 mobile-only form alignment hotfix.
   Scoped to the post-OTP data form so all other screens remain unchanged. */
@media (max-width:760px){
  html:has(body.form-step),
  body.form-step{
    width:100%;
    max-width:100%;
    overflow-x:hidden!important;
  }
  body.form-step .app-shell{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    direction:rtl!important;
    overflow-x:hidden!important;
  }
  body.form-step .hero{display:none!important;}
  body.form-step .workspace{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:100vh;
    margin:0!important;
    padding:0!important;
    overflow-x:hidden!important;
    direction:rtl!important;
  }
  body.form-step .workspace-inner{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:24px 18px 42px!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    float:none!important;
    overflow-x:hidden!important;
  }
  body.form-step .content.form-content,
  body.form-step .form-content,
  body.form-step #regForm,
  body.form-step .form,
  body.form-step .field,
  body.form-step .grid2,
  body.form-step .segmented,
  body.form-step .verified,
  body.form-step .map-placeholder{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    transform:none!important;
  }
  body.form-step .content.form-content{
    margin-top:30px!important;
    padding:0 0 20px!important;
    position:static!important;
    right:auto!important;
    left:auto!important;
  }
  body.form-step .grid2{grid-template-columns:minmax(0,1fr)!important;}
  body.form-step input,
  body.form-step select,
  body.form-step textarea,
  body.form-step button{
    max-width:100%!important;
    min-width:0!important;
  }
  body.form-step .district-grid{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
}
/* =========================================================
   TaskinMed - Mobile Registration Form Fix V1.2.2
   ONLY affects completion form after OTP
   ========================================================= */

@media screen and (max-width: 768px) {

    /* فقط صفحه فرم تکمیل اطلاعات */
    body.form-page {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    body.form-page .app-shell {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    /* پنل سبز دسکتاپ در فرم موبایل */
    body.form-page .brand-panel {
        display: none !important;
    }

    /* پنل اصلی فرم */
    body.form-page .content-panel {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 20px 16px 40px !important;
        transform: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    /* تمام Wrapperهای داخلی */
    body.form-page .content-inner,
    body.form-page .form-container,
    body.form-page .registration-form,
    body.form-page form {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    /* گریدهای دسکتاپ در موبایل تک ستونه شوند */
    body.form-page .form-grid,
    body.form-page .field-grid,
    body.form-page .two-col,
    body.form-page .form-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }

    body.form-page .field,
    body.form-page .form-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* کنترل‌های فرم */
    body.form-page input,
    body.form-page select,
    body.form-page textarea {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* عنوان و توضیحات */
    body.form-page .form-header,
    body.form-page .page-header {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }

    /* جلوگیری از بیرون زدن عناصر Flex */
    body.form-page * {
        box-sizing: border-box;
    }
}
