/* =====================================================================
   STANDARD FLOW — sizing & structure. IDENTICAL FILE IN EVERY TEMPLATE.
   Load it AFTER css/style.css. Colours stay in the template's own CSS;
   only these tokens may be changed per brand:
     --flow-accent (icon square / focus), --flow-valid (valid state)
   ===================================================================== */
:root{
  --flow-frame-w:660px;     /* frame (white/dark card) max width              */
  --flow-ctrl-w:400px;      /* input, PIN row and button share this width     */
  --flow-ctrl-h:56px;       /* input = PIN cell = button height               */
  --flow-cell-w:52px;
  --flow-gap:12px;          /* input → button                                 */
}
@media (max-width:740px){:root{--flow-ctrl-h:52px;--flow-cell-w:48px}}
@media (max-width:740px) and (max-height:620px){:root{--flow-ctrl-h:48px;--flow-cell-w:46px;--flow-gap:10px}}
@media (max-width:350px){:root{--flow-cell-w:44px}}

/* frame */
.form-card,.success{max-width:var(--flow-frame-w)!important;margin-left:auto!important;margin-right:auto!important}
/* one column of controls, same width everywhere */
.form-card .field-w{max-width:var(--flow-ctrl-w)!important;width:100%;margin-left:auto;margin-right:auto}
.form-card .input-row{height:var(--flow-ctrl-h)!important}
.form-card #subBtn{width:100%;max-width:var(--flow-ctrl-w)!important;height:var(--flow-ctrl-h)!important;
  margin:var(--flow-gap) auto 0!important;font-size:15px!important}
.form-card .otp-cells{gap:10px!important}
.form-card .otp-cell{width:var(--flow-cell-w)!important;height:var(--flow-ctrl-h)!important;font-size:22px!important}

/* input: icon square · prefix (flag + code) · number. 16px+ text = no iOS zoom on focus */
.form-card .input-icon{width:54px!important;flex:0 0 54px!important}
.form-card .input-icon svg{width:22px!important;height:22px!important}
.form-card .prefix{display:flex;align-items:center;gap:7px;flex:0 0 auto;padding:0 2px 0 12px;
  font-size:16px;font-weight:600;letter-spacing:.3px;white-space:nowrap}
.form-card .prefix .flag{width:22px;height:15px;flex:0 0 22px;border-radius:3px;overflow:hidden;display:grid;place-items:center}
.form-card .prefix .flag svg{width:100%;height:100%;display:block}
.form-card .prefix .flag.globe{background:transparent}
.form-card .prefix .flag.globe svg{width:16px;height:16px;opacity:.7}
.form-card .input-row input{font-size:16px!important;padding:0 12px 0 8px!important;min-width:0}
.form-card .input-row input::placeholder{font-size:15px;font-style:normal}
@media (max-width:380px){
  .form-card .input-icon{width:46px!important;flex-basis:46px!important}
  .form-card .prefix{padding-left:9px;gap:5px;font-size:15px}
  .form-card .input-row input::placeholder{font-size:13.5px}
}

/* type scale inside the frame */
.form-card .flow-steps{margin:0 0 12px}
.form-card .flow-step{font-size:10.5px}
.form-card .step-label{font-size:13px!important;line-height:1.35;margin:0 0 10px!important;white-space:nowrap}
.form-card .back-link{font-size:12.5px!important}
.form-card .back-link.show{display:block!important;margin:12px auto 0!important}
.form-card .price-note{font-size:11.5px!important;line-height:1.4;margin:10px auto 0!important}
.form-card .back-link.show + .price-note{margin-top:6px!important}
@media (max-width:740px){.form-card .flow-steps{margin-bottom:9px}.form-card .step-label{font-size:12.5px!important;margin-bottom:8px!important}}
@media (max-width:350px){.form-card .flow-step{font-size:9.5px}.form-card .flow-bar{width:26px!important}.form-card .step-label{font-size:11.5px!important}}

/* focus: no browser-default (black) ring on the button; keyboard users get a brand ring */
.form-card #subBtn:focus{outline:none}
.form-card #subBtn:focus-visible{outline:3px solid color-mix(in srgb,var(--flow-accent,#1C58F2) 45%,transparent);outline-offset:3px}
.form-card .back-link:focus{outline:none}
.form-card .back-link:focus-visible{outline:2px solid color-mix(in srgb,var(--flow-accent,#1C58F2) 45%,transparent);outline-offset:2px;border-radius:4px}

/* frame padding — same breathing room in every template */
.form-card{padding:24px 40px 20px!important}
@media (max-width:740px){.form-card{padding:16px 14px 14px!important}}
@media (max-width:740px) and (max-height:620px){.form-card{padding:12px 14px 10px!important}}
.form-card .frame-slot,.form-card #formSteps:not(.form-card){padding:0!important}
.form-card .back-link.show{display:flex!important;align-items:center;justify-content:center;gap:6px;width:fit-content}
.form-card .prefix .flag.globe{box-shadow:none!important}
