/* Odzyskaj-sen-Formularz frontend v1.1.10 | Author: Emil Czarnowski */
.osf{
  --osf-max-width: 1120px;
  --osf-cyan: #25d9ff;
  --osf-blue: #47adff;
  --osf-deep: #06122b;
  --osf-navy: #071836;
  --osf-glass: rgba(9, 25, 54, .34);
  --osf-glass-strong: rgba(12, 31, 66, .46);
  --osf-line: rgba(235, 250, 255, .54);
  --osf-text: #f5fbff;
  --osf-muted: rgba(236, 247, 255, .78);
  --osf-error: #ff6b6b;
  max-width: var(--osf-max-width);
  margin: 0 auto;
  width: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--osf-text);
}
.osf *, .osf *:before, .osf *:after{ box-sizing:border-box; }
.osf__card{
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 34px 44px 30px;
  background:
    radial-gradient(circle at 78% 12%, rgba(68, 190, 255, .18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(20, 67, 112, .18) 42%, rgba(5, 18, 42, .30));
  border: 1px solid rgba(235, 250, 255, .48);
  box-shadow: 0 28px 78px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.26);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}
.osf__card:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(3, 9, 24, .84), rgba(4, 16, 38, .52)),
    var(--osf-bg-image, none);
  background-size: cover;
  background-position: center;
  opacity:.36;
  filter: blur(3px);
  transform: scale(1.02);
  pointer-events:none;
}
.osf__card:after{
  content:"";
  position:absolute;
  inset:auto -15% -35% -15%;
  height: 190px;
  background: radial-gradient(ellipse at center, rgba(37,217,255,.18), transparent 64%);
  pointer-events:none;
}
.osf__intro,
.osf__form,
.osf__overlay{ position:relative; z-index:1; }
.osf__intro{ margin: 0 0 20px; max-width: 900px; }
.osf__badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  margin: 0 0 18px;
  border: 1px solid rgba(85, 188, 255, .34);
  background: rgba(47, 139, 220, .18);
  color: #d9f6ff;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 0 24px rgba(37,217,255,.12);
}
.osf__badge:before{ content:"✦"; color: var(--osf-cyan); }
.osf__title{
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -.04em;
  text-shadow: 0 10px 32px rgba(0,0,0,.35);
}
.osf__subtitle{
  margin: 0;
  max-width: 830px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.45;
  color: var(--osf-muted);
}
.osf__note{
  margin: 12px 0 0;
  max-width: 860px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(236, 247, 255, .68);
}
.osf__form{
  border: 1px solid var(--osf-line);
  border-radius: 26px;
  padding: 24px 34px 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(73, 145, 206, .12) 44%, rgba(9, 25, 55, .20));
  box-shadow: 0 18px 58px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.24), inset 0 -1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.osf__headRow,
.osf__question{
  display:grid;
  grid-template-columns: minmax(300px, 1fr) 430px;
  gap: 20px;
  align-items:center;
}
.osf__headRow{ padding: 0 18px 10px; }
.osf__scale{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align:center;
}
.osf__scaleItem{ font-size: 16px; line-height: 1; font-weight: 800; color: rgba(255,255,255,.90); }
.osf__questions{ display:grid; gap: 8px; }
.osf__question{
  min-height: 58px;
  padding: 8px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.osf__question:nth-child(odd){ background: rgba(56, 126, 201, .105); }
.osf__question:has(.osf__radio:checked){
  border-color: rgba(37,217,255,.55);
  background: rgba(55, 165, 231, .16);
  box-shadow: 0 0 0 1px rgba(37,217,255,.10), 0 0 22px rgba(37,217,255,.14), inset 0 1px 0 rgba(255,255,255,.10);
}
.osf__questionLabel{ display:flex; align-items:center; gap:12px; font-size: 14px; line-height: 1.25; font-weight: 700; }
.osf__questionIcon{
  flex: 0 0 24px;
  width:24px;
  height:24px;
  border-radius: 8px;
  background: rgba(67, 173, 255, .14);
  border: 1px solid rgba(90, 205, 255, .22);
  box-shadow: 0 0 18px rgba(37,217,255,.13);
  position:relative;
}
.osf__questionIcon:before{
  content:"";
  position:absolute;
  inset:6px;
  border-radius: 4px;
  border: 2px solid #62dfff;
  opacity:.95;
}
.osf__options{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; justify-items:center; }
.osf__option{ position: relative; display:flex; justify-content:center; align-items:center; width: 34px; height: 34px; cursor:pointer; }
.osf__radio{ position:absolute; inset:0; opacity:0; cursor:pointer; }
.osf__dot{ width: 19px; height: 19px; border: 2px solid rgba(229, 246, 255, .62); border-radius:50%; background: rgba(7, 17, 39, .36); transition:all .2s ease; box-shadow: inset 0 0 0 4px rgba(255,255,255,0); }
.osf__radio:focus-visible + .osf__dot{ outline: 2px solid var(--osf-cyan); outline-offset: 4px; }
.osf__radio:checked + .osf__dot{ border-color:#e7fbff; background: radial-gradient(circle, #fff 0 33%, transparent 36% 100%), rgba(74, 180, 255, .3); box-shadow: 0 0 0 4px rgba(37,217,255,.20), 0 0 22px rgba(37,217,255,.72); }
.osf__footer{ padding: 18px 0 0; }
.osf__button{ display:inline-flex; align-items:center; justify-content:center; gap:14px; min-width: 260px; min-height: 48px; border: 1px solid rgba(117, 222, 255, .55); background: linear-gradient(135deg, #37a6ff, #23d3ff); color:#fff; padding: 12px 24px; border-radius: 16px; font-size: 15px; font-weight: 850; cursor: pointer; box-shadow: 0 16px 38px rgba(21, 172, 235, .34), 0 0 0 6px rgba(37,217,255,.08), inset 0 1px 0 rgba(255,255,255,.28); text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.osf__buttonIcon{ width: 26px; height:26px; position:relative; }
.osf__buttonIcon:before{ content:"↓"; font-size:30px; line-height:24px; font-weight:900; }
.osf__button:hover,
.osf__submitLead:hover{ transform: translateY(-1px); filter: brightness(1.04); }
.osf__button:disabled,
.osf__submitLead:disabled{ opacity:.7; cursor:wait; transform:none; }
.osf__safe{ margin: 16px 0 0; border-top:1px solid rgba(255,255,255,.10); padding-top:14px; color: rgba(236,247,255,.70); text-align:center; font-size:12px; }
.osf__overlay{ position:absolute; inset:0; padding: 26px; background: rgba(2, 9, 24, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display:flex; align-items:center; justify-content:center; }
.osf__overlay[hidden]{ display:none !important; }
.osf__overlayInner{ position:relative; width:min(1040px, 100%); overflow:hidden; border-radius: 30px; background: linear-gradient(135deg, rgba(8, 28, 63, .82), rgba(5, 15, 38, .92)); color:#fff; border: 1px solid rgba(73, 190, 255, .42); box-shadow: 0 30px 85px rgba(0,0,0,.55), 0 0 54px rgba(37,217,255,.20), inset 0 1px 0 rgba(255,255,255,.18); }
.osf__overlayInner:before{ content:""; position:absolute; inset:0; background: radial-gradient(circle at 100% 0%, rgba(37,217,255,.18), transparent 38%), radial-gradient(circle at 0% 100%, rgba(54,166,255,.18), transparent 42%); pointer-events:none; }
.osf__close{ position:absolute; top:18px; right:18px; z-index:3; width:38px; height:38px; border-radius:999px; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.08); color:#fff; font-size:26px; line-height:1; cursor:pointer; }
.osf__popupGrid{ position:relative; z-index:2; display:grid; grid-template-columns: .9fr 1.25fr; }
.osf__popupAside{ padding: 72px 58px; background: rgba(12, 50, 98, .36); border-right: 1px solid rgba(255,255,255,.08); }
.osf__popupEyebrow{ color: #55caff; font-weight:850; font-size:14px; letter-spacing:.06em; }
.osf__overlayTitle{ margin: 26px 0 18px; font-size: clamp(28px, 4vw, 42px); line-height:1.08; letter-spacing:-.03em; font-weight:850; }
.osf__overlayText{ margin: 0 0 34px; color: rgba(236,247,255,.76); font-size: 16px; line-height:1.55; }
.osf__benefits{ display:grid; gap:24px; }
.osf__benefits div{ position:relative; padding-left:58px; min-height:42px; }
.osf__benefits div:before{ content:"✓"; position:absolute; left:0; top:0; width:40px; height:40px; border-radius:999px; display:grid; place-items:center; background:rgba(37,156,255,.22); border:1px solid rgba(96,213,255,.24); color:#78e7ff; box-shadow:0 0 24px rgba(37,217,255,.12); }
.osf__benefits strong{ display:block; margin-bottom:5px; }
.osf__benefits span{ display:block; color:rgba(236,247,255,.68); font-size:14px; line-height:1.4; }
.osf__popupForm{ padding: 70px 58px 52px; }
.osf__msg{ margin: 0 0 14px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.osf__fields{ display:grid; gap: 18px; }
.osf__field{ display:grid; gap: 9px; color: rgba(245,251,255,.9); font-size: 13px; font-weight: 850; letter-spacing:.04em; }
.osf__field input{ width:100%; border:1px solid rgba(215, 241, 255, .30); border-radius: 12px; padding: 17px 20px; font-size: 16px; color:#fff; background: rgba(3, 13, 33, .28); outline:none; transition:border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.osf__field input::placeholder{ color: rgba(236,247,255,.55); }
.osf__field input:focus{ border-color: rgba(37,217,255,.72); box-shadow: 0 0 0 4px rgba(37,217,255,.10); background: rgba(7, 25, 57, .48); }
.osf__field input.osf__invalid{ border-color: var(--osf-error); box-shadow: 0 0 0 4px rgba(255,107,107,.14); }
.osf__consents{ display:grid; gap: 10px; margin: 20px 0 0; }
.osf__consent{ display:grid; grid-template-columns: 22px 1fr; gap: 12px; align-items:start; font-size: 13px; line-height:1.42; color: rgba(236,247,255,.78); }
.osf__consent input{ appearance:none; width:18px; height:18px; border:1px solid rgba(92,202,255,.70); border-radius:4px; background: rgba(2, 11, 28, .32); margin: 1px 0 0; position: relative; cursor:pointer; }
.osf__consent input:checked{ background: linear-gradient(135deg, #36a6ff, #24d8ff); border-color: transparent; box-shadow: 0 0 14px rgba(37,217,255,.40); }
.osf__consent input:checked::after{ content:"✓"; position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:13px; font-weight:900; }
.osf__submitLead{ display:flex; justify-content:center; align-items:center; width:100%; margin: 28px 0 16px; border:1px solid rgba(117, 222, 255, .55); border-radius:999px; background: linear-gradient(135deg, #37a6ff, #22d5ff); color:#fff; font-size:18px; font-weight:850; padding: 18px 24px; cursor:pointer; box-shadow: 0 16px 38px rgba(21, 172, 235, .34), 0 0 0 6px rgba(37,217,255,.08), inset 0 1px 0 rgba(255,255,255,.28); }
.osf__popupSafe{ margin:0; text-align:center; color:rgba(236,247,255,.68); font-size:13px; }
@media (max-width: 980px){
  .osf__card{ padding: 28px 18px; border-radius: 26px; }
  .osf__form{ padding: 20px 16px; }
  .osf__headRow,.osf__question{ grid-template-columns: 1fr; gap: 12px; }
  .osf__headRow{ padding: 0 12px 12px; }
  .osf__scale,.osf__options{ max-width: 430px; width:100%; margin-left:auto; }
  .osf__popupGrid{ grid-template-columns: 1fr; }
  .osf__popupAside{ padding: 38px 28px; border-right:0; border-bottom:1px solid rgba(255,255,255,.08); }
  .osf__popupForm{ padding: 34px 28px 30px; }
}
@media (max-width: 560px){
  .osf__card{ padding: 24px 14px; border-radius: 22px; }
  .osf__form{ border-radius: 22px; padding: 18px 12px; }
  .osf__question{ border-radius: 14px; padding: 10px 12px; }
  .osf__questionLabel{ font-size: 13px; gap:10px; }
  .osf__scale,.osf__options{ gap: 8px; }
  .osf__button{ width:100%; min-width:0; font-size:16px; }
  .osf__overlay{ padding: 10px; align-items:flex-start; overflow:auto; }
  .osf__overlayInner{ border-radius: 22px; }
  .osf__popupAside{ padding: 34px 20px 24px; }
  .osf__popupForm{ padding: 26px 20px; }
}

/* v1.1.10 — mobile form refinements + centered popup */
.osf__mobileValue{
  display:none;
  color: rgba(245,251,255,.92);
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
}
.osf__close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:1;
  font-size:0;
}
.osf__close:before{
  content:"×";
  display:block;
  font-size:26px;
  line-height:1;
  font-weight:500;
  transform: translateY(-1px);
}
@media (max-width: 560px){
  .osf__headRow{
    display:none;
  }
  .osf__questions{
    gap:10px;
  }
  .osf__question{
    min-height:0;
    gap:8px;
    padding:9px 10px;
    border-radius:14px;
    background: rgba(255,255,255,.075) !important;
    border-color: rgba(255,255,255,.075) !important;
  }
  .osf__question:nth-child(odd){
    background: rgba(56, 126, 201, .105) !important;
  }
  .osf__question:has(.osf__radio:checked){
    background: rgba(55, 165, 231, .16) !important;
    border-color: rgba(37,217,255,.55) !important;
  }
  .osf__questionLabel{
    align-items:center;
    gap:9px;
    font-size:12.5px;
    line-height:1.22;
  }
  .osf__questionIcon{
    flex-basis:22px;
    width:22px;
    height:22px;
    border-radius:7px;
  }
  .osf__questionIcon:before{
    inset:6px;
    border-width:2px;
    border-radius:4px;
  }
  .osf__options{
    max-width:none;
    margin-left:0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:4px;
    align-items:center;
    justify-items:center;
  }
  .osf__option{
    width:auto;
    min-width:46px;
    height:26px;
    gap:6px;
    justify-content:center;
  }
  .osf__radio{
    width:100%;
    height:100%;
  }
  .osf__dot{
    width:17px;
    height:17px;
    border-width:2px;
    flex:0 0 17px;
  }
  .osf__mobileValue{
    display:inline-block;
  }
  .osf__overlay{
    align-items:center;
    justify-content:center;
    padding:14px;
    overflow:auto;
  }
  .osf__overlayInner{
    margin:auto;
  }
}


/* v1.1.10 — mobile rows: darker transparent glass, closer to desktop */
@media (max-width: 560px){
  .osf .osf__form .osf__questions .osf__question{
    background: linear-gradient(90deg, rgba(255,255,255,.050), rgba(56,126,201,.070)) !important;
    border-color: rgba(255,255,255,.090) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 18px rgba(0,0,0,.080) !important;
    backdrop-filter: blur(12px) saturate(118%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(118%) !important;
  }
  .osf .osf__form .osf__questions .osf__question:nth-child(odd){
    background: linear-gradient(90deg, rgba(255,255,255,.045), rgba(56,126,201,.075)) !important;
  }
  .osf .osf__form .osf__questions .osf__question:has(.osf__radio:checked){
    background: linear-gradient(90deg, rgba(37,217,255,.060), rgba(55,165,231,.100)) !important;
    border-color: rgba(37,217,255,.50) !important;
    box-shadow: 0 0 0 1px rgba(37,217,255,.090), 0 0 18px rgba(37,217,255,.110), inset 0 1px 0 rgba(255,255,255,.075) !important;
  }
}

/* v1.1.10 — real mobile/iOS fix: slightly lighter transparent rows */
@media (max-width: 560px), (hover: none) and (pointer: coarse){
  .osf.osf-v1111 .osf__form .osf__questions .osf__question,
  .osf.osf-v1111 .osf__form .osf__questions .osf__question:nth-child(odd){
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    background-color: rgba(6, 19, 43, .50) !important;
    background-image:
      linear-gradient(90deg, rgba(255,255,255,.025), rgba(49,129,190,.060)) !important;
    background-blend-mode: normal !important;
    border-color: rgba(118, 202, 255, .18) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.055),
      inset 0 -1px 0 rgba(0,0,0,.16),
      0 10px 24px rgba(0,0,0,.16) !important;
    backdrop-filter: blur(8px) saturate(105%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(105%) !important;
  }

  .osf.osf-v1111 .osf__form .osf__questions .osf__question::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background: rgba(3, 12, 31, .22);
  }

  .osf.osf-v1111 .osf__form .osf__questions .osf__question:has(.osf__radio:checked){
    background-color: rgba(7, 24, 52, .56) !important;
    background-image:
      linear-gradient(90deg, rgba(37,217,255,.040), rgba(55,165,231,.070)) !important;
    border-color: rgba(37,217,255,.42) !important;
    box-shadow:
      0 0 0 1px rgba(37,217,255,.075),
      0 0 18px rgba(37,217,255,.10),
      inset 0 1px 0 rgba(255,255,255,.07),
      inset 0 -1px 0 rgba(0,0,0,.16) !important;
  }

  .osf.osf-v1111 .osf__form .osf__questions .osf__question:has(.osf__radio:checked)::before{
    background: rgba(2, 13, 32, .20);
  }
}

@supports (-webkit-touch-callout: none){
  @media (max-width: 560px){
    .osf.osf-v1111 .osf__form .osf__questions .osf__question,
    .osf.osf-v1111 .osf__form .osf__questions .osf__question:nth-child(odd){
      background-color: rgba(5, 17, 40, .58) !important;
      background-image: linear-gradient(90deg, rgba(255,255,255,.018), rgba(48,126,188,.045)) !important;
      -webkit-backdrop-filter: none !important;
      backdrop-filter: none !important;
    }
    .osf.osf-v1111 .osf__form .osf__questions .osf__question::before{
      background: rgba(1, 9, 24, .14);
    }
    .osf.osf-v1111 .osf__form .osf__questions .osf__question:has(.osf__radio:checked){
      background-color: rgba(6, 22, 50, .62) !important;
      background-image: linear-gradient(90deg, rgba(37,217,255,.035), rgba(55,165,231,.055)) !important;
    }
  }
}

/* v1.1.10 — editable ESS scale legend: single highlighted box */
.osf__legend{
  display:flex;
  flex-direction:column;
  gap: 7px;
  margin: 14px 0 6px;
  max-width: 920px;
  padding: 12px 14px;
  border: 1px solid rgba(72, 201, 255, .62);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(73, 183, 255, .16), rgba(44, 91, 181, .16)),
    rgba(255,255,255,.055);
  box-shadow:
    0 0 0 1px rgba(72, 201, 255, .14) inset,
    0 0 22px rgba(72, 201, 255, .16),
    0 12px 32px rgba(0, 0, 0, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.osf__legendItem{
  display:flex;
  align-items:flex-start;
  gap: 4px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(236,247,255,.84);
  font-size: 13px;
  line-height: 1.32;
  font-weight: 650;
}
.osf__legendNumber{
  color: #ffffff;
  font-weight: 900;
  min-width: 10px;
  text-shadow: 0 0 12px rgba(72, 201, 255, .30);
}
.osf__legendSeparator{
  color: rgba(236,247,255,.78);
  font-weight: 800;
}
.osf__legendText{
  color: rgba(236,247,255,.82);
}
@media (max-width: 560px){
  .osf__legend{
    gap: 6px;
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 16px;
  }
  .osf__legendItem{
    font-size: 12px;
    line-height: 1.34;
  }
}


/* v1.1.12 — popup consent and message refinements */
.osf__consent--selectall span,
.osf__consent--selectall strong{
  font-weight: 900;
  color: rgba(255,255,255,.92);
}
.osf__requiredStar{
  font-weight: 900;
}
.osf__popupSafe{
  margin-top: 14px;
  text-align: left;
  color: rgba(236,247,255,.76);
  font-size: 13px;
}
.osf__msg strong{
  font-weight: 900;
  color: #ffffff;
}
.osf__msg br{
  display:block;
  content:"";
  margin-top: 6px;
}


/* v1.1.12 — required note placement, privacy link and footer validation message */
.osf__popupSafe{
  margin: 16px 0 8px;
  text-align: left;
  color: rgba(236,247,255,.82);
  font-size: 13px;
  font-weight: 700;
}
.osf__submitLead{
  margin-top: 0;
}
.osf__privacyLink{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.osf__privacyLink strong,
.osf__consent strong{
  font-weight: 900;
}
.osf__footer{
  display:flex;
  align-items:center;
  gap: 22px;
  flex-wrap: wrap;
}
.osf__footerMsg{
  flex: 1 1 360px;
  min-height: 44px;
  display:flex;
  align-items:center;
  padding: 11px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 107, .55);
  background: rgba(180,35,24,.16);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(255,107,107,.12), inset 0 1px 0 rgba(255,255,255,.10);
}
.osf__footerMsg[hidden]{
  display:none !important;
}
@media (max-width: 680px){
  .osf__footer{
    align-items: stretch;
  }
  .osf__button,
  .osf__footerMsg{
    width:100%;
  }
}


/* v1.1.36 — iPhone/mobile popup responsiveness fix */
@media (max-width: 480px), (hover: none) and (pointer: coarse) and (max-width: 480px){
  .osf{
    max-width: 100%;
    overflow-x: hidden;
  }
  .osf__overlay{
    inset: 0;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .osf__overlayInner{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
  }
  .osf__popupGrid,
  .osf__popupForm,
  .osf__fields,
  .osf__field,
  .osf__consents,
  .osf__consent{
    min-width: 0;
    max-width: 100%;
  }
  .osf__popupForm{
    width: 100%;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
  }
  .osf__field input{
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 15px 16px;
    border-radius: 12px;
  }
  .osf__consents{
    gap: 11px;
  }
  .osf__consent{
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
  }
  .osf__consent span{
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .osf__submitLead{
    width: 100%;
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@supports (-webkit-touch-callout: none){
  @media (max-width: 480px){
    .osf__overlay{
      padding-left: max(12px, env(safe-area-inset-left));
      padding-right: max(12px, env(safe-area-inset-right));
      padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    .osf__overlayInner{
      transform: translateZ(0);
    }
  }
}


/* v1.1.37 — after success message: expand section instead of creating nested popup scroll */
.osf.osf--submitted .osf__card{
  overflow: visible;
}
.osf.osf--submitted .osf__intro,
.osf.osf--submitted .osf__form{
  display: none !important;
}
.osf.osf--submitted .osf__overlay{
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: auto;
  padding: 0;
  display: block;
  overflow: visible;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.osf.osf--submitted .osf__overlayInner{
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: visible;
}
.osf.osf--submitted .osf__popupGrid,
.osf.osf--submitted .osf__popupForm,
.osf.osf--submitted .osf__fields,
.osf.osf--submitted .osf__consents{
  overflow: visible;
  max-height: none;
}
@media (max-width: 560px){
  .osf.osf--submitted .osf__card{
    padding: 14px;
  }
  .osf.osf--submitted .osf__overlayInner{
    border-radius: 20px;
  }
  .osf.osf--submitted .osf__popupForm{
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}
