.pfg-box{position:relative;clear:both;box-sizing:border-box;grid-column:1/-1;display:block!important;min-width:0;max-width:100%;width:100%;overflow-wrap:anywhere;padding:14px 16px!important;margin:14px 0!important;border:1px solid #cfe4db!important;border-radius:12px;background:#f3faf6;color:#153b3e;font-family:inherit}.pfg-box .pfg-title{display:block;margin:0 0 8px;font-weight:700;font-size:13px}.pfg-box .pfg-label{display:flex;flex-direction:column;align-items:stretch;gap:8px;font-size:13px}.pfg-question{font-size:16px;line-height:1.9;color:#0b715d;white-space:normal}.pfg-box input[name=pfg_answer]{box-sizing:border-box;width:140px!important;max-width:100%;min-height:42px;padding:8px 12px!important;border:1px solid #aacdbd;border-radius:8px;background:#fff;letter-spacing:3px;text-align:center;font-size:16px;color:#163c3a;font-family:inherit}.pfg-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px}.pfg-bottom small{font-size:11px;color:#526d64}.pfg-box [data-pfg-refresh]{width:auto!important;padding:5px 10px!important;background:#fff!important;border:1px solid #b8d5c7!important;color:#116c56!important;border-radius:7px!important;font:inherit!important;font-size:12px!important;cursor:pointer}.pfg-box [data-pfg-refresh]:disabled{opacity:.55;cursor:wait}.pfg-error{color:#a83232;font-size:12px;line-height:1.8;margin:8px 0 0!important}.pfg-error:empty{display:none}.pfg-trap{position:absolute!important;inset:0 auto auto 0!important;clip-path:inset(50%)!important;opacity:0!important;margin:0!important;padding:0!important;border:0!important;pointer-events:none!important;width:1px!important;height:1px!important;overflow:hidden!important}.pfg-box input:focus-visible,.pfg-box button:focus-visible{outline:2px solid #138b75;outline-offset:2px}@media(max-width:480px){.pfg-box{padding:12px!important}.pfg-question{font-size:15px}}

/* Let the phone page scroll as the form grows or the keyboard opens. */
@media(max-width:768px){
 html:has(body.poya-portal-page .poya-login-shell .pfg-box){height:auto;overflow:auto}
 body.poya-portal-page:has(.poya-login-shell .pfg-box){overflow:auto}
 body.poya-portal-page .poya-portal-standalone:has(>.poya-login-shell .pfg-box){height:auto!important;min-height:100dvh;overflow:visible}
 body.poya-portal-page .poya-portal-standalone>.poya-panel.poya-login-shell:has(.pfg-box){grid-template-columns:minmax(0,1fr);width:calc(100% - 24px);min-width:0;max-height:none;overflow:visible;margin:12px auto}
 .poya-login-shell:has(.pfg-box) :is(.poya-login-card,.poya-auth-view,form){min-width:0;max-width:100%;box-sizing:border-box}
 .poya-login-shell:has(.pfg-box) .poya-login-card{padding-inline:clamp(12px,4vw,24px)}
 body.login:has(.pfg-box) #login{box-sizing:border-box;float:none;max-width:440px;width:calc(100% - 32px);margin-inline:auto;padding:20px 0 0}
 body.login #loginform:has(.pfg-box){box-sizing:border-box;padding:18px 16px}
 .pfg-box{padding:8px 10px!important;margin:8px 0!important}
 .pfg-box .pfg-title{margin-bottom:3px}
 .pfg-box .pfg-label{gap:4px;margin:0}
 .pfg-box .pfg-bottom{margin-top:4px}
 .pfg-box input[name=pfg_answer]{height:auto;min-height:42px}
}

/* Keep the answer and refresh control on one line without shrinking touch targets. */
.pfg-box{padding:8px 10px!important;margin:8px 0!important}
.pfg-box .pfg-title{margin:0;font-size:12px;line-height:1.4}
.pfg-box .pfg-label{gap:2px;margin:0}
.pfg-box .pfg-question{line-height:1.45}
.pfg-box .pfg-bottom{display:grid;grid-template-columns:minmax(0,140px) max-content;justify-content:start;gap:6px;margin-top:5px}
.pfg-box .pfg-bottom input[name=pfg_answer]{width:100%!important;min-width:0;height:44px;min-height:44px;margin:0!important;padding:4px 6px!important}
.pfg-box .pfg-bottom [data-pfg-refresh]{min-height:44px;margin:0!important;white-space:nowrap}

/* Decorative shield fills the left space without adding a row. */
.pfg-box{display:grid!important;grid-template-columns:minmax(0,1fr) 44px;column-gap:10px;align-items:center}
.pfg-box .pfg-label{grid-column:1;grid-row:1;min-width:0}
.pfg-box .pfg-bottom{grid-column:1;grid-row:2;grid-template-columns:minmax(0,140px) max-content;min-width:0}
.pfg-box .pfg-security-icon{grid-column:2;grid-row:1/3;display:flex;align-items:center;justify-content:center;width:44px;height:44px;color:#138b75;pointer-events:none}
.pfg-box .pfg-security-icon svg{display:block;width:44px;height:44px;max-width:100%}
.pfg-box .pfg-error{grid-column:1/-1}

/* Consultation forms: captcha on the right, existing submit control on the left. */
.pfg-consultation-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;grid-column:1/-1;min-width:0;width:100%;box-sizing:border-box}
.pfg-consultation-actions>.pfg-box{flex:1 1 260px;width:auto;margin:0!important}
.pfg-consultation-actions>:not(.pfg-box){flex:0 0 auto;margin:0!important;max-width:100%;box-sizing:border-box}
.pfg-consultation-actions :is(button[type=submit],input[type=submit]){margin:0!important;white-space:nowrap;min-height:44px}
@media(max-width:480px){
 .pfg-consultation-actions{gap:10px}
 .pfg-consultation-actions>:not(.pfg-box){margin-inline-start:auto!important}
}
