/* CVforGulf builder: phone experience (<= 900px). Loaded after the builder's own CSS.
   Desktop is not touched: every rule here is either inside the media query or needs html.mf-on. */
.mf-head,.mf-nav,.mf-bar,.mf-backedit,.mf-prevtip,.mf-more>summary{display:none}

@media (max-width:900px){
  /* 1. Quieter top of the page: keep the H1 for SEO, drop the sub-line, links and plan banner */
  .cv-strip{padding:8px 0!important}
  .cv-strip .cv-strip-in{display:block!important}
  .cv-strip h1{font-size:1.02rem!important;line-height:1.25!important;margin:0!important}
  .cv-strip p,.cv-strip nav{display:none!important}
  .builder-banner{display:none!important}
  .builder-banner.mf-keep{display:block!important;font-size:12.5px;line-height:1.4;padding:8px 12px!important}
  .builder-banner.mf-keep .pill{display:none}
  /* the old sticky Edit/Preview strip is replaced by the bottom bar below (its buttons are still clicked by the bar) */
  .mtabs{display:none!important}
  body.builder-page>main.builder-shell{padding-bottom:84px}

  /* 2. Forms: no zoom-on-focus on iPhone, big tap targets, one column */
  .builder-shell input,.builder-shell textarea,.builder-shell select{font-size:16px!important}
  .builder-shell input[type=text],.builder-shell input[type=email],.builder-shell input:not([type]),.builder-shell select{min-height:46px}
  .builder-shell .row{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .builder-shell .panel{padding:12px 12px 24px!important;min-height:0!important}
  .builder-shell .panel-head{display:block!important;margin:0 0 10px!important}
  .builder-shell .ptabs{display:grid!important;grid-template-columns:repeat(3,1fr);gap:6px;width:100%}
  .builder-shell .ptab{min-height:42px;font-size:14px;font-weight:700;text-align:center;justify-content:center}
  .builder-shell #resetBtn{display:inline-block;margin-top:6px;font-size:12px;opacity:.75}
  .builder-shell .card .icon{min-width:40px;min-height:40px}
  .builder-shell button.add{min-height:46px;width:100%;font-size:15px}

  /* 3. Preview view: clear actions, PDF first */
  .builder-shell .topbar{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;padding:10px 12px!important}
  .builder-shell .topbar .spacer{display:none}
  .builder-shell .topbar #btnPdf{grid-column:1/-1;order:-1;min-height:50px;font-size:16px;font-weight:800;background:#0B2540!important;color:#fff!important;border:0!important;border-radius:12px}
  .builder-shell .topbar .btn{min-height:44px;font-size:14px}
  .mf-on .mf-prevtip{display:block;margin:0;padding:10px 14px 0;font-size:13px;line-height:1.5;color:#334155}
  .mf-on .mf-prevtip b{color:#0B2540}

  html.mf-on .mf-backedit:not([hidden]){display:block;width:100%;min-height:46px;margin:0 0 10px;background:#fff;border:1.5px solid #cfd8e3;border-radius:12px;color:#0B2540;font-weight:800;font-size:15px}
  /* 5. Bottom bar: Edit | Preview | PDF, always reachable */
  html.mf-on .mf-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(11,37,64,.98);box-shadow:0 -4px 18px rgba(11,37,64,.28)}
  html.mf-on .mf-bar button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;min-height:46px;border-radius:12px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08);color:#fff;font:inherit;font-weight:800;font-size:14px;cursor:pointer}
  html.mf-on .mf-bar button[aria-pressed=true]{background:#fff;color:#0B2540;border-color:#fff}
  html.mf-on .mf-bar button.go{flex:1.15;background:#E8B84A;border-color:#E8B84A;color:#0B2540}
  html.mf-on .mf-bar svg{width:18px;height:18px}
  html.mf-on.mf-typing .mf-bar{display:none}

  /* 6. Long explanation below the tool: folded on phones (still in the page for readers and search engines) */
  .cv-below .mf-more{margin:14px 12px;border:1px solid #E1E7F0;border-radius:14px;background:#fff}
  .cv-below .mf-more>summary{display:block;cursor:pointer;padding:14px 16px;font-weight:800;color:#0B2540;font-size:15px;list-style:none}
  .cv-below .mf-more>summary::-webkit-details-marker{display:none}
  .cv-below .mf-more>summary small{display:block;font-weight:500;color:#5B6B7C;font-size:12.5px;margin-top:2px}
  .cv-below .mf-more>summary:after{content:"+";float:right;font-size:20px;line-height:1}
  .cv-below .mf-more[open]>summary:after{content:"\2212"}
  .cv-below .cv-answer{font-size:14px}
}

/* Guided steps: phone and desktop */
html.mf-on .mf-head{display:block;background:#fff;border:1px solid #E1E7F0;border-radius:14px;padding:12px 14px;margin:0 0 12px;box-shadow:0 1px 3px rgba(15,23,42,.05)}
html.mf-on .mf-nav{display:flex;gap:10px;margin:16px 0 4px}
html.mf-on .mf-wiz fieldset{border:0!important;padding:0!important;margin:0!important;min-width:0}
html.mf-on .mf-wiz fieldset>legend{display:none}
html.mf-on .mf-wiz fieldset.mf-off{display:none!important}
.mf-welcome{display:flex;gap:10px;align-items:flex-start;background:#EAF1FF;border:1px solid #cfe0fa;border-radius:10px;padding:9px 10px;margin:0 0 10px;font-size:13px;line-height:1.45;color:#0B2540}
.mf-welcome b{display:block;margin-bottom:1px}
.mf-welcome .mf-x{flex:0 0 auto;margin-left:auto;background:none;border:0;font-size:20px;line-height:1;color:#475569;padding:0 4px;cursor:pointer}
.mf-prog{height:6px;background:#E8EEF7;border-radius:99px;overflow:hidden;margin:0 0 10px}
.mf-prog i{display:block;height:100%;width:0;background:#1D5FBF;border-radius:99px;transition:width .25s}
.mf-step{margin:0 0 2px;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#1D5FBF}
.mf-title{margin:0 0 4px;font-size:1.18rem;font-weight:800;color:#0B2540;line-height:1.25}
.mf-tip{margin:0;font-size:13.5px;line-height:1.5;color:#334155}
.mf-dots{display:flex;gap:6px;margin:10px 0 0;overflow-x:auto;padding-bottom:2px}
.mf-dot{flex:0 0 auto;width:34px;height:34px;border-radius:50%;border:1.5px solid #cfd8e3;background:#fff;color:#334155;font-weight:800;font-size:13px;cursor:pointer;padding:0}
.mf-dot[aria-current=step]{background:#0B2540;border-color:#0B2540;color:#fff}
.mf-dot.done{background:#dcfce7;border-color:#86efac;color:#166534}
.mf-chip{margin:10px 0 0;background:#fff;border:1.5px solid #cfd8e3;border-radius:999px;color:#0B2540;font-weight:700;font-size:13px;padding:8px 14px;cursor:pointer}
.mf-nav button{flex:1;min-height:50px;border-radius:12px;font-weight:800;font-size:15px;cursor:pointer}
.mf-nav .mf-prev{background:#fff;color:#0B2540;border:1.5px solid #cfd8e3}
.mf-nav .mf-prev[disabled]{opacity:.45}
.mf-nav .mf-next{background:#0B2540;color:#fff;border:0}
.mf-nav .mf-next.final{background:#1D5FBF}


.mf-sub>legend{display:block!important;float:none!important;margin:18px 0 8px;font-size:1rem;font-weight:800;color:#0B2540;border-top:1px solid #E1E7F0;padding-top:14px}
html.mf-on:not(.mf-m) .mf-nav{position:sticky;bottom:0;background:linear-gradient(to top,#fff 78%,rgba(255,255,255,0));padding:14px 0 10px;margin:14px 0 0;z-index:5}
html.mf-m .mf-nav{margin-bottom:84px}
