/* Franki qualification quiz widget — mobile-first, zero external assets. */

.franki-quiz {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 60px;
  /* Inherit the host page's font instead of forcing one (was "Lato", which
     isn't loaded on any site this widget has actually been embedded on —
     the fallback chain rendered Polish diacritics visibly differently from
     the surrounding theme text, e.g. LexUno's locally-hosted Inter/Poppins). */
  font-family: inherit;
  color: #1a1a1a;
}

/* Form controls don't inherit the page font by default in any browser —
   without this they fall back to the OS UI font, which is what actually
   made Polish diacritics look inconsistent inside inputs/selects/buttons. */
.franki-quiz input,
.franki-quiz select,
.franki-quiz button,
.franki-quiz textarea {
  font-family: inherit;
}

.franki-quiz__shell {
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 20px;
}

.franki-quiz__stepper {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
}

.franki-quiz__step-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #94A3B8;
}

.franki-quiz__step-dot i {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  font-size: 0.75rem;
}

.franki-quiz__step-dot.is-active {
  color: #1a1a1a;
  font-weight: 600;
}

.franki-quiz__step-dot.is-active i {
  background: #B45309;
  border-color: #B45309;
  color: #fff;
}

.franki-quiz__step-dot.is-done i {
  background: #92400E;
  border-color: #92400E;
  color: #fff;
}

.franki-quiz__select {
  width: 100%;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #1a1a1a;
  background: #fff;
}

.franki-quiz__bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.franki-quiz__bank-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.85rem;
}

.franki-quiz__bank-tile input {
  position: absolute;
  top: 10px;
  right: 10px;
}

.franki-quiz__bank-tile:has(input:checked) {
  border-color: #B45309;
  box-shadow: 0 0 0 1px #B45309;
}

.franki-quiz__bank-label {
  font-weight: 600;
  padding-right: 20px;
}

.franki-quiz__bank-note {
  color: #64748B;
  font-size: 0.75rem;
}

.franki-quiz__bank-other {
  margin-top: 12px;
}

.franki-quiz__fields-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 0 0 14px;
}

.franki-quiz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.franki-quiz__nav .franki-quiz__next,
.franki-quiz__nav .franki-quiz__back {
  width: auto;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.franki-quiz__nav .franki-quiz__next {
  border: none;
  background: #B45309;
  color: #fff;
}

.franki-quiz__nav .franki-quiz__next:hover {
  background: #92400E;
}

.franki-quiz__nav .franki-quiz__back {
  border: 1px solid #CBD5E1;
  background: #fff;
  color: #1a1a1a;
}

.franki-quiz__nav .franki-quiz__back:hover {
  background: #F8FAFC;
}

.franki-quiz__question {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 14px;
}

.franki-quiz__question legend {
  font-weight: 600;
  padding: 0 4px;
  font-size: 0.95rem;
}

.franki-quiz__radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  padding: 6px 0;
  cursor: pointer;
}

.franki-quiz__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.franki-quiz__submit-phone,
.franki-quiz__cta {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  /* Unified site-family CTA amber (2026-07-25 design refresh) — was navy #0a1f44. */
  background: #B45309;
  color: #fff;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.franki-quiz__submit-phone:hover,
.franki-quiz__cta:hover,
.franki-quiz__submit-phone:focus-visible,
.franki-quiz__cta:focus-visible {
  background: #92400E;
}

.franki-quiz__submit-phone:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.franki-quiz__result {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
}

.franki-quiz__summary {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.franki-quiz__notes {
  font-size: 0.85rem;
  color: #a33;
  margin: 0 0 8px;
  padding-left: 20px;
}

.franki-quiz__disclaimer {
  font-size: 0.8rem;
  color: #555;
  margin: 0 0 12px;
}

.franki-quiz__error {
  color: #a33;
  font-size: 0.9rem;
}

.franki-quiz__phone-gate {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.franki-quiz__field {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 4px;
}

.franki-quiz__field input {
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #1a1a1a;
}

.franki-quiz__consent {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  align-items: flex-start;
}

.franki-quiz__consent input {
  margin-top: 3px;
}

.franki-quiz__submit-status {
  font-size: 0.85rem;
}

.franki-quiz__submit-status--error {
  color: #a33;
}

.franki-quiz__submit-status--success {
  color: #0a1f44;
}
