/* Halavach purchase/build quiz — external stylesheet */
.hf-pb-quiz-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f624a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hf-pb-quiz-trigger span { transition: transform .2s ease; }
.hf-pb-quiz-trigger:hover span { transform: translateX(4px); }

.hf-pb-quiz[hidden] { display: none; }
.hf-pb-quiz {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(31, 98, 74, .22);
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 16px 38px rgba(16, 31, 52, .08);
}

.hf-pb-quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.hf-pb-quiz-kicker {
  margin: 0 0 5px;
  color: #1f624a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hf-pb-quiz-title { margin: 0; color: #0c1b39; font-size: 21px; line-height: 1.1; }

.hf-pb-quiz-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #d6e1db;
  border-radius: 50%;
  color: #0c1b39;
  background: #f3f7f3;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.hf-pb-quiz-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.hf-pb-quiz-progress span {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: #e1e9e4;
  transition: background .2s ease;
}
.hf-pb-quiz-progress span.is-active { background: #1f624a; }

.hf-pb-quiz-step[hidden] { display: none; }
.hf-pb-quiz-step-title { margin: 0 0 14px; color: #0c1b39; font-size: 16px; }
.hf-pb-quiz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hf-pb-quiz-field { display: flex; flex-direction: column; gap: 6px; }
.hf-pb-quiz-field--full { grid-column: 1 / -1; }
.hf-pb-quiz-label { color: #0c1b39; font-size: 12px; font-weight: 700; }
.hf-pb-quiz-input,
.hf-pb-quiz-select {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d3dfd8;
  border-radius: 11px;
  background: #fff;
  color: #0c1b39;
  font: inherit;
  outline: none;
}
.hf-pb-quiz-input:focus,
.hf-pb-quiz-select:focus { border-color: #1f624a; box-shadow: 0 0 0 3px rgba(31, 98, 74, .12); }

.hf-pb-quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hf-pb-quiz-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #d3dfd8;
  border-radius: 11px;
  background: #fff;
  color: #0c1b39;
  font-size: 12px;
  cursor: pointer;
}
.hf-pb-quiz-option:has(input:checked) { border-color: #1f624a; background: #edf5ef; }
.hf-pb-quiz-option input { position: absolute; opacity: 0; pointer-events: none; }
.hf-pb-quiz-option span { line-height: 1.25; }

.hf-pb-quiz-hint { margin: 3px 0 0; color: #68758a; font-size: 11px; line-height: 1.45; }
.hf-pb-quiz-consent { display: flex; align-items: flex-start; gap: 8px; color: #68758a; font-size: 11px; line-height: 1.45; }
.hf-pb-quiz-consent input { margin-top: 2px; accent-color: #1f624a; }

.hf-pb-quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.hf-pb-quiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.hf-pb-quiz-btn--primary { background: #1f624a; color: #fff; }
.hf-pb-quiz-btn--primary:hover { background: #174c39; }
.hf-pb-quiz-btn--secondary { border-color: #cddbd2; background: transparent; color: #1f624a; }
.hf-pb-quiz-btn:disabled { cursor: wait; opacity: .65; }
.hf-pb-quiz-sms { display: flex; align-items: center; gap: 8px; }
.hf-pb-quiz-sms .hf-pb-quiz-input { flex: 1; }
.hf-pb-quiz-sms .hf-pb-quiz-btn { flex: 0 0 auto; min-height: 44px; padding-inline: 11px; font-size: 11px; }
.hf-pb-quiz-status { min-height: 16px; margin: 8px 0 0; color: #1f624a; font-size: 11px; font-weight: 700; }
.hf-pb-quiz-status.is-error { color: #a23c3c; }
.hf-pb-quiz-success { padding: 18px 4px 4px; text-align: center; }
.hf-pb-quiz-success-mark { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; background: #e3f0e6; color: #1f624a; font-size: 25px; font-weight: 800; }
.hf-pb-quiz-success h4 { margin: 0 0 7px; color: #0c1b39; font-size: 20px; }
.hf-pb-quiz-success p { margin: 0; color: #68758a; font-size: 13px; line-height: 1.5; }

@media (max-width: 760px) {
  .hf-pb-quiz { padding: 16px; border-radius: 16px; }
  .hf-pb-quiz-head { align-items: flex-start; }
  .hf-pb-quiz-title { font-size: 19px; }
  .hf-pb-quiz-grid, .hf-pb-quiz-options { grid-template-columns: 1fr; }
  .hf-pb-quiz-field--full { grid-column: auto; }
  .hf-pb-quiz-actions { align-items: stretch; flex-direction: column-reverse; }
  .hf-pb-quiz-btn { width: 100%; }
  .hf-pb-quiz-sms { align-items: stretch; flex-direction: column; }
  .hf-pb-quiz-sms .hf-pb-quiz-btn { width: 100%; }
}
