:root {
  --hpwb-accent: #b61f2a;
  --hpwb-gold: #d7b56d;
  --hpwb-bg: #0b0d11;
  --hpwb-text: #ffffff;
  --hpwb-muted: #cfcfcf;
}

.hpwb-root * { box-sizing: border-box; }
.hpwb-root { font-family: inherit; }

.hpwb-floating-button {
  position: fixed;
  right: 18px;
  right: calc(env(safe-area-inset-right, 0px) + 18px);
  bottom: 96px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
  z-index: 2147483000;
  border: 1px solid rgba(215,181,109,.65);
  border-radius: 999px;
  padding: 12px 18px 13px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(182,31,42,.96), rgba(50,10,15,.96));
  box-shadow: 0 14px 38px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.10) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  line-height: 1.1;
  text-align: left;
  min-width: 188px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.hpwb-floating-button:hover,
.hpwb-floating-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 48px rgba(0,0,0,.42), 0 0 0 3px rgba(215,181,109,.28);
  outline: none;
}

.hpwb-floating-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin-bottom: 3px;
}

.hpwb-floating-label {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.hpwb-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(4, 5, 8, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hpwb-overlay.is-open { display: flex; }

.hpwb-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  border-radius: 28px;
  color: var(--hpwb-text);
  border: 1px solid rgba(215,181,109,.38);
  background: radial-gradient(circle at top left, rgba(215,181,109,.18), transparent 34%), linear-gradient(135deg, rgba(19,22,29,.94), rgba(12,13,17,.96) 58%, rgba(45,11,18,.94));
  box-shadow: 0 28px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08) inset;
}

.hpwb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.hpwb-head { padding: 32px 34px 14px; }
.hpwb-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(215,181,109,.45);
  color: var(--hpwb-gold);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hpwb-head h2 { margin: 0 48px 8px 0; color: #fff; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; }
.hpwb-head p { margin: 0; color: var(--hpwb-muted); font-size: 15px; line-height: 1.55; }

.hpwb-form { padding: 0 34px 24px; }
.hpwb-note {
  margin: 10px 0 18px;
  color: var(--hpwb-gold);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hpwb-field { display: block; margin: 0 0 15px; }
.hpwb-field span { display: block; font-weight: 750; color: #fff; margin: 0 0 7px; }
.hpwb-field em { color: var(--hpwb-gold); font-style: normal; }
.hpwb-field input,
.hpwb-field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 15px;
  padding: 13px 14px;
  background: rgba(255,255,255,.085);
  color: #fff;
  font-size: 16px;
  outline: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.035) inset;
}
.hpwb-field input::placeholder,
.hpwb-field textarea::placeholder { color: rgba(255,255,255,.48); }
.hpwb-field input:focus,
.hpwb-field textarea:focus { border-color: rgba(215,181,109,.72); box-shadow: 0 0 0 3px rgba(215,181,109,.16); }

.hpwb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hpwb-small { color: rgba(255,255,255,.70); font-size: 13px; line-height: 1.5; margin: 4px 0 18px; }
.hpwb-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; margin-top: 18px; }
.hpwb-actions-split { justify-content: space-between; }

.hpwb-primary,
.hpwb-secondary {
  border-radius: 999px;
  border: 1px solid rgba(215,181,109,.48);
  padding: 13px 20px;
  font-weight: 850;
  cursor: pointer;
  font-size: 15px;
}
.hpwb-primary { background: linear-gradient(135deg, var(--hpwb-accent), #671018); color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.hpwb-secondary { background: rgba(255,255,255,.08); color: #fff; }
.hpwb-primary:hover,
.hpwb-secondary:hover,
.hpwb-primary:focus-visible,
.hpwb-secondary:focus-visible { outline: none; filter: brightness(1.09); box-shadow: 0 0 0 3px rgba(215,181,109,.18); }

.hpwb-declaration {
  border-left: 4px solid var(--hpwb-gold);
  background: rgba(255,255,255,.075);
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 750;
}

.hpwb-declaration-inline { margin: 8px 0 12px; }

.hpwb-summary {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.18);
}
.hpwb-summary-row { display: grid; grid-template-columns: 33% 1fr; border-bottom: 1px solid rgba(255,255,255,.10); }
.hpwb-summary-row:last-child { border-bottom: 0; }
.hpwb-summary-row b { padding: 11px 13px; color: var(--hpwb-gold); }
.hpwb-summary-row span { padding: 11px 13px; white-space: pre-wrap; color: #fff; }

.hpwb-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(215,181,109,.18);
  border: 1px solid rgba(215,181,109,.50);
  color: var(--hpwb-gold);
  font-size: 34px;
  font-weight: 900;
  margin: 12px 0 6px;
}
.hpwb-step h3 { color: #fff; font-size: 26px; margin: 8px 0; }
.hpwb-step[data-step="done"] p { color: var(--hpwb-muted); font-size: 16px; line-height: 1.6; }
.hpwb-error {
  margin: 18px 0 0;
  border: 1px solid rgba(255,84,84,.50);
  background: rgba(255,84,84,.13);
  color: #fff;
  border-radius: 14px;
  padding: 13px 14px;
}
.hpwb-footer-links {
  padding: 16px 34px 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hpwb-footer-links a { color: var(--hpwb-gold); text-decoration: underline; }
.hpwb-honeypot { position: absolute !important; left: -99999px !important; opacity: 0 !important; pointer-events: none !important; height: 0 !important; }

@media (max-width: 640px) {
  .hpwb-floating-button { left: auto; right: 12px; bottom: 92px; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); width: min(270px, calc(100vw - 24px)); min-width: 0; text-align: left; padding: 11px 15px 12px; }
  .hpwb-overlay { padding: 10px; align-items: flex-end; }
  .hpwb-dialog { max-height: 94vh; border-radius: 24px 24px 0 0; }
  .hpwb-head { padding: 28px 20px 10px; }
  .hpwb-form { padding: 0 20px 20px; }
  .hpwb-grid { grid-template-columns: 1fr; gap: 0; }
  .hpwb-actions,
  .hpwb-actions-split { flex-direction: column-reverse; align-items: stretch; }
  .hpwb-primary,
  .hpwb-secondary { width: 100%; }
  .hpwb-summary-row { grid-template-columns: 1fr; }
  .hpwb-summary-row b { padding-bottom: 0; }
  .hpwb-footer-links { padding: 14px 20px 24px; }
}


@media (max-width: 767px) {
  .hpwb-floating-button {
    top: 58%;
    top: calc(58% + env(safe-area-inset-top, 0px));
    bottom: auto;
    right: -76px;
    left: auto;
    min-width: 210px;
    padding: 10px 16px 11px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
  }

  .hpwb-floating-button:hover,
  .hpwb-floating-button:focus-visible {
    transform: translateY(-50%) rotate(-90deg) scale(1.02);
  }

  .hpwb-floating-kicker {
    font-size: 9px;
    margin-bottom: 2px;
  }

  .hpwb-floating-label {
    font-size: 14px;
  }

  .hpwb-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .hpwb-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .hpwb-head {
    padding: 24px 22px 12px;
  }

  .hpwb-form {
    padding: 0 22px 20px;
  }

  .hpwb-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hpwb-summary-row {
    grid-template-columns: 1fr;
  }

  .hpwb-summary-row b {
    padding-bottom: 4px;
  }

  .hpwb-footer-links {
    padding: 14px 22px 22px;
  }

  .hpwb-actions {
    justify-content: stretch;
  }

  .hpwb-primary,
  .hpwb-secondary {
    width: 100%;
    text-align: center;
  }
}
