:root {
  --fw-blue: #fde900;
  --fw-blue-bright: #fde900;
  --fw-ink: #212121;
  --fw-muted: #727272;
  --fw-paper: #fff;
}

.fw-lock { overflow: hidden !important; }

.fw-overlay {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(to left, rgba(1,95,138,.82), rgba(138,16,58,.82));
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.fw-overlay * { box-sizing: border-box; }
.fw-overlay[aria-hidden="false"] { opacity: 1; visibility: visible; }

.fw-dialog {
  position: relative;
  width: min(780px, calc(100vw - 56px));
  min-height: 570px;
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  background-color: rgba(255,255,255,.98);
  background-image:
    linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)),
    radial-gradient(circle at 20% 30%, #d9e3e8 0 2px, transparent 2.5px),
    radial-gradient(circle at 80% 65%, #d9e3e8 0 3px, transparent 3.5px);
  background-size: auto, 38px 38px, 54px 54px;
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
  color: var(--fw-ink);
  font-family: gp, Arial, sans-serif;
  transform: translateY(14px) scale(.98);
  transition: transform .25s ease;
}
.fw-overlay[aria-hidden="false"] .fw-dialog { transform: none; }

.fw-close {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
}
.fw-close::before, .fw-close::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 5px;
  width: 22px;
  height: 2px;
  background: #111;
}
.fw-close::before { transform: rotate(45deg); }
.fw-close::after { transform: rotate(-45deg); }

.fw-wheel-side { position: relative; min-height: 570px; }
.fw-wheel-wrap {
  position: absolute;
  top: 50%;
  right: -7px;
  width: 570px;
  min-width: 570px;
  height: 570px;
  min-height: 570px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: visible;
  transform: translateY(-50%);
  filter: drop-shadow(0 15px 12px rgba(21,56,91,.18));
}
.fw-wheel {
  width: 570px;
  height: 570px;
  min-width: 570px;
  min-height: 570px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  line-height: 1;
  transform-origin: 50% 50%;
  transition: transform 5.2s cubic-bezier(.12,.7,.08,1);
}
.fw-wheel svg { display: block; width: 570px; height: 570px; aspect-ratio: 1 / 1; }
.fw-pointer {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -47px;
  width: 82px;
  height: 24px;
  transform: translateY(-50%);
  border-radius: 14px;
  background: #fff;
  box-shadow: inset -16px 0 0 rgba(253, 233, 0, 1), 0 3px 8px rgba(0,0,0,.12);
}
.fw-pointer::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.fw-content { position: relative; z-index: 2; padding: 68px 68px 58px 70px; }
.fw-title { margin: 0 0 12px; font: 800 24px/1.25 gpb, Arial, sans-serif; }
.fw-copy { margin: 0 0 54px; font-size: 12px; font-weight: 600; text-align: center }
.fw-intro { display: grid; align-content: center; min-height: 360px; }
.fw-form { display: grid; gap: 18px; }
.fw-form[hidden],
.fw-intro[hidden] { display: none !important; }
.fw-form-title { margin-bottom: 8px; }
.fw-form-copy { margin-bottom: 0; }
.fw-prize-box {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(253,233,0,.2);
  color: var(--fw-ink);
  font-size: 12px;
  line-height: 1.25;
}
.fw-prize-box span { color: var(--fw-muted); }
.fw-prize-box strong { font: 800 16px/1.2 gpb, Arial, sans-serif; }
.fw-field { position: relative; }
.fw-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 38px;
  border: 0;
  border-bottom: 1px solid #d8d8d8;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--fw-ink);
  font: 700 16px/24px gpb, Arial, sans-serif;
}
.fw-field input:focus { border-color: var(--fw-blue); }
.fw-field::before { position: absolute; top: 11px; left: 0; font-size: 21px; }
/* .fw-field--site::before { content: "⊕"; color: #27a8f2; }
.fw-field--phone::before { content: "◖))"; color: #159ae8; font-size: 15px; top: 14px; } */
.fw-error { min-height: 16px; margin-top: 4px; color: #b3261e; font-size: 11px; }

.fw-consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--fw-muted); }
.fw-consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--fw-blue); }
.fw-consent a { color: inherit; }

.fw-submit,
.fw-spin {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--fw-blue);
  color: #fff;
  font-weight: 800;
  transition: transform .16s ease, background .16s ease;
  border: 2px solid var(--fw-blue);
}

.fw-submit:hover { transform: translateY(-1px); }
.fw-submit:disabled { cursor: wait; opacity: .7; }
.fw-note { margin: -9px 0 0; font-size: 12px; font-weight: 700; }

.fw-success { display: none; grid-column: 1/-1; min-height: 570px; place-content: center; text-align: center; padding: 60px; }
.fw-success h2 { margin: 0 0 14px; font: 800 38px/1.1 gpb, Arial, sans-serif; }
.fw-success p { margin: 0; font-size: 18px; }
.fw-prize { display: inline-block; margin: 22px auto 0; padding: 10px 18px; border-radius: 999px; color: #fff; background: var(--fw-blue); font-weight: 800; }
.fw-dialog.is-success .fw-wheel-side, .fw-dialog.is-success .fw-content { display: none; }
.fw-dialog.is-success .fw-success { display: grid; }

@media (max-width: 760px) {
  .fw-overlay {
    align-items: start;
    justify-items: center;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
  }

  .fw-dialog {
    --fw-mobile-wheel-size: min(352px, calc(100vw - 56px));
    width: min(430px, 100%);
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    margin: auto 0;
  }

  .fw-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.72);
  }

  .fw-close::before,
  .fw-close::after {
    top: 17px;
    left: 8px;
    width: 20px;
  }

  .fw-wheel-side {
    min-height: calc(var(--fw-mobile-wheel-size) + 36px);
    display: grid;
    place-items: center;
    padding: 18px 0;
    overflow: visible;
  }

  .fw-wheel-wrap {
    position: relative;
    top: auto;
    right: auto;
    width: var(--fw-mobile-wheel-size);
    min-width: 0;
    height: var(--fw-mobile-wheel-size);
    min-height: 0;
    transform: none;
  }

  .fw-wheel,
  .fw-wheel svg {
    width: var(--fw-mobile-wheel-size);
    min-width: 0;
    height: var(--fw-mobile-wheel-size);
    min-height: 0;
  }

  .fw-pointer {
    top: 50%;
    right: -24px;
    width: 62px;
    height: 20px;
    transform: translateY(-50%);
  }

  .fw-pointer::after {
    top: 6px;
    width: 8px;
    height: 8px;
  }

  .fw-content {
    width: 100%;
    padding: 16px 28px 32px;
    text-align: center;
  }

  .fw-title {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.18;
  }

  .fw-copy {
    max-width: 280px;
    margin: 0 auto 22px;
    font-size: 12px;
    line-height: 1.35;
  }

  .fw-intro {
    min-height: 0;
    align-content: start;
  }

  .fw-form {
    gap: 14px;
    text-align: left;
  }

  .fw-form-title,
  .fw-form-copy {
    text-align: center;
  }

  .fw-form-copy {
    margin-bottom: 0;
  }

  .fw-prize-box {
    padding: 10px 14px;
    text-align: center;
  }

  .fw-field input {
    height: 46px;
    font-size: 15px;
  }

  .fw-consent {
    grid-template-columns: 22px 1fr;
    gap: 10px;
    font-size: 12px;
    line-height: 1.35;
  }

  .fw-consent input {
    width: 20px;
    height: 20px;
  }

  .fw-submit,
  .fw-spin {
    height: 46px;
    font-size: 13px;
  }

  .fw-note {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
  }

  .fw-success {
    min-height: min(460px, calc(100vh - 28px));
    padding: 38px 24px;
  }

  .fw-success h2 {
    font-size: 30px;
  }

  .fw-success p {
    font-size: 16px;
  }

  .fw-dialog.is-form-step {
    display: block;
  }

  .fw-dialog.is-form-step .fw-wheel-side {
    display: none;
  }

  .fw-dialog.is-form-step .fw-content {
    padding-top: 52px;
  }
}

@media (min-width: 921px) and (max-width: 1100px) {
  .fw-overlay {
    padding: 18px;
  }

  .fw-dialog {
    --fw-tablet-wheel-size: min(500px, calc(48vw - 10px));
    width: min(960px, calc(100vw - 36px));
    min-height: 520px;
    grid-template-columns: minmax(450px, 54%) 1fr;
  }

  .fw-wheel-side {
    min-height: 520px;
    overflow: visible;
  }

  .fw-wheel-wrap {
    right: 18px;
    width: var(--fw-tablet-wheel-size);
    min-width: var(--fw-tablet-wheel-size);
    height: var(--fw-tablet-wheel-size);
    min-height: var(--fw-tablet-wheel-size);
  }

  .fw-wheel,
  .fw-wheel svg {
    width: var(--fw-tablet-wheel-size);
    min-width: var(--fw-tablet-wheel-size);
    height: var(--fw-tablet-wheel-size);
    min-height: var(--fw-tablet-wheel-size);
  }

  .fw-pointer {
    right: -34px;
  }

  .fw-content {
    padding: 54px 38px 48px 28px;
  }

  .fw-title {
    font-size: 23px;
  }

  .fw-copy {
    margin-bottom: 34px;
  }
}

@media (min-width: 761px) and (max-width: 920px) {
  .fw-overlay {
    align-items: start;
    justify-items: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
  }

  .fw-dialog {
    --fw-tablet-wheel-size: min(430px, calc(100vw - 96px));
    width: min(560px, 100%);
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    margin: auto 0;
  }

  .fw-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.72);
  }

  .fw-close::before,
  .fw-close::after {
    top: 18px;
    left: 9px;
    width: 20px;
  }

  .fw-wheel-side {
    min-height: calc(var(--fw-tablet-wheel-size) + 36px);
    display: grid;
    place-items: center;
    padding: 18px 0;
    overflow: visible;
  }

  .fw-wheel-wrap {
    position: relative;
    top: auto;
    right: auto;
    width: var(--fw-tablet-wheel-size);
    min-width: 0;
    height: var(--fw-tablet-wheel-size);
    min-height: 0;
    transform: none;
  }

  .fw-wheel,
  .fw-wheel svg {
    width: var(--fw-tablet-wheel-size);
    min-width: 0;
    height: var(--fw-tablet-wheel-size);
    min-height: 0;
  }

  .fw-pointer {
    top: 50%;
    right: -24px;
    width: 64px;
    height: 20px;
    transform: translateY(-50%);
  }

  .fw-pointer::after {
    top: 6px;
    width: 8px;
    height: 8px;
  }

  .fw-content {
    width: 100%;
    padding: 14px 44px 38px;
    text-align: center;
  }

  .fw-intro {
    min-height: 0;
    align-content: start;
  }

  .fw-title {
    font-size: 24px;
    line-height: 1.18;
  }

  .fw-copy {
    max-width: 340px;
    margin: 0 auto 24px;
    line-height: 1.35;
  }

  .fw-form {
    gap: 14px;
    text-align: left;
  }

  .fw-form-title,
  .fw-form-copy {
    text-align: center;
  }

  .fw-form-copy {
    margin-bottom: 0;
  }

  .fw-note {
    margin: 8px 0 0;
    text-align: center;
  }

  .fw-dialog.is-form-step {
    display: block;
  }

  .fw-dialog.is-form-step .fw-wheel-side {
    display: none;
  }

  .fw-dialog.is-form-step .fw-content {
    padding-top: 58px;
  }
}

@media (max-width: 420px) {
  .fw-dialog {
    --fw-mobile-wheel-size: min(310px, calc(100vw - 42px));
  }

  .fw-wheel-side {
    min-height: calc(var(--fw-mobile-wheel-size) + 24px);
    padding: 12px 0;
  }

  .fw-pointer {
    right: -18px;
    width: 54px;
  }

  .fw-content {
    padding: 12px 20px 26px;
  }

  .fw-title {
    font-size: 20px;
  }

  .fw-copy {
    margin-bottom: 18px;
  }

  .fw-form {
    gap: 12px;
  }

  .fw-prize-box strong {
    font-size: 14px;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .fw-dialog {
    --fw-mobile-wheel-size: min(300px, calc(100vw - 56px));
  }

  .fw-wheel-side {
    min-height: calc(var(--fw-mobile-wheel-size) + 18px);
    padding: 9px 0;
  }

  .fw-content {
    padding-top: 10px;
    padding-bottom: 22px;
  }

  .fw-title {
    font-size: 20px;
  }

  .fw-copy {
    margin-bottom: 14px;
  }

  .fw-form {
    gap: 10px;
  }

  .fw-field input,
  .fw-submit,
  .fw-spin {
    height: 42px;
  }
}

@media (max-width: 360px) {
  .fw-dialog {
    --fw-mobile-wheel-size: min(286px, calc(100vw - 36px));
  }

  .fw-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fw-overlay, .fw-dialog, .fw-wheel, .fw-submit { transition-duration: .01ms !important; }
}
