/* Pasiūlymo kvizas (Gauti pasiūlymą) */
html.offer-quiz-open {
  overflow: hidden;
}

.offer-quiz {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: #f4f6f9;
}

.offer-quiz::backdrop {
  background: rgba(11, 37, 69, 0.45);
}

.offer-quiz__shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  background: #f4f6f9;
}

@media (min-width: 560px) {
  .offer-quiz {
    width: min(100%, 520px);
    height: min(100dvh, 780px);
    max-height: min(100dvh, 780px);
    margin: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(11, 37, 69, 0.2);
  }

  .offer-quiz__shell {
    min-height: 100%;
    border-radius: 16px;
  }
}

.offer-quiz__top {
  flex: none;
  padding: 12px 16px 0;
  background: #fff;
}

.offer-quiz__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.offer-quiz__step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.offer-quiz__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -4px -8px -4px auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.offer-quiz__close:hover {
  background: rgba(11, 37, 69, 0.06);
}

.offer-quiz__close svg {
  display: block;
}

.offer-quiz__progress {
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e8edf3;
  overflow: hidden;
}

.offer-quiz__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--action), #42a5f5);
  transition: width 0.35s ease;
}

.offer-quiz__body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 20px 16px;
  -webkit-overflow-scrolling: touch;
}

.offer-quiz__question {
  margin: 0 0 24px;
  font-family: Poppins, Arial, sans-serif;
  font-size: clamp(22px, 5.5vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--navy);
}

.offer-quiz__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-quiz__option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(11, 37, 69, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.offer-quiz__option:hover {
  border-color: #c5d4e8;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.06);
}

.offer-quiz__option.is-selected {
  border-color: var(--action);
  box-shadow: 0 0 0 1px var(--action);
}

.offer-quiz__option:active {
  transform: scale(0.99);
}

.offer-quiz__option-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(30, 136, 229, 0.1);
  color: var(--action);
  font-size: 22px;
  line-height: 1;
}

.offer-quiz__option-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.offer-quiz__option-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
}

.offer-quiz__done {
  text-align: center;
  padding: 8px 0 16px;
}

.offer-quiz__done-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(30, 136, 229, 0.12);
  color: var(--action);
}

.offer-quiz__done-lead {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

.offer-quiz__summary {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.offer-quiz__summary dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: 8px;
}

.offer-quiz__summary dt:first-child {
  margin-top: 0;
}

.offer-quiz__summary dd {
  margin: 2px 0 0;
}

.offer-quiz__foot {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0));
  background: #fff;
  border-top: 1px solid #e8edf3;
}

.offer-quiz__next,
.offer-quiz__back,
.offer-quiz__call {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 14px;
  font-family: Poppins, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

.offer-quiz__next {
  background: #d1d9e6;
  color: #fff;
}

.offer-quiz__next:not(:disabled) {
  background: var(--action);
}

.offer-quiz__next:not(:disabled):hover {
  background: var(--action-hover);
}

.offer-quiz__next:disabled {
  cursor: not-allowed;
}

.offer-quiz__back {
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  min-height: 44px;
}

.offer-quiz__back:hover {
  background: rgba(11, 37, 69, 0.05);
}

.offer-quiz__call {
  background: var(--cta);
  color: #fff;
}

.offer-quiz__call:hover {
  background: var(--cta-hover);
  color: #fff;
}

.offer-quiz__foot-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
