:root {
  --quiz-green: #63be28;
  --quiz-dark: #09261b;
  --quiz-text: #071812;
  --quiz-muted: #77817b;
  --quiz-border: #d8ded9;
  --quiz-selected: #f2f9ec;
}

html { scroll-behavior: smooth; }

body > #open-dialogue,
body > .footer-back-and-branding,
body > .popup-overlay {
  display: none !important;
}

#energy-quiz-card,
#energy-quiz-card * { box-sizing: border-box; }

.quiz-card-section {
  padding: 56px 20px 72px;
  background: #f8faf8;
}

.quiz-card {
  width: min(100%, 720px);
  min-height: 555px;
  margin: 0 auto;
  padding: 36px 34px 34px;
  border: 1px solid var(--quiz-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(21, 43, 30, .05);
  color: var(--quiz-text);
  font-family: Roboto, Arial, sans-serif;
}

.quiz-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #59655e;
  font-size: 12px;
  font-weight: 700;
}

.quiz-card__progress {
  height: 4px;
  margin: 20px 0 27px;
  overflow: hidden;
  border-radius: 99px;
  background: #e3e8e4;
}

.quiz-card__progress span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: var(--quiz-green);
  transition: width .25s ease;
}

.quiz-step { display: none; }
.quiz-step.is-active { display: block; }

.quiz-step h2 {
  margin: 0;
  color: var(--quiz-text);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.14;
  letter-spacing: -.025em;
}

.quiz-step__hint {
  margin: 12px 0 24px;
  color: var(--quiz-muted);
  font-size: 14px;
}

.quiz-options {
  display: grid;
  gap: 11px;
}

.quiz-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 14px 17px;
  border: 1px solid var(--quiz-border);
  border-radius: 9px;
  background: #fff;
  color: var(--quiz-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.quiz-option:hover { border-color: #91c96a; }

.quiz-option__radio {
  width: 20px;
  height: 20px;
  border: 2px solid #c0c9c2;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
}

.quiz-option.is-selected {
  border-color: var(--quiz-green);
  background: var(--quiz-selected);
}

.quiz-option.is-selected .quiz-option__radio {
  border-color: var(--quiz-green);
  background: var(--quiz-green);
}

.quiz-option strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.quiz-option small {
  display: block;
  margin-top: 6px;
  color: var(--quiz-muted);
  font-size: 12px;
}

.quiz-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.quiz-button {
  min-width: 140px;
  padding: 14px 22px;
  border: 0;
  border-radius: 7px;
  background: var(--quiz-dark);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .16s ease, transform .16s ease;
}

.quiz-button:hover:not(:disabled) { transform: translateY(-1px); }
.quiz-button:disabled { opacity: .3; cursor: default; }

.quiz-button--back {
  min-width: auto;
  background: transparent;
  color: #657169;
}

.quiz-contact-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.quiz-contact-input {
  width: 100%;
  height: 55px;
  padding: 0 13px;
  border: 1px solid #cfd4d1;
  border-radius: 6px;
  background: #fafafa;
  color: var(--quiz-text);
  font: inherit;
  font-size: 18px;
  outline: none;
}

.quiz-contact-input::placeholder { color: #949b97; }

.quiz-contact-input:focus {
  border-color: var(--quiz-green);
  box-shadow: 0 0 0 3px rgba(99, 190, 40, .13);
}

.quiz-phone-row {
  display: flex;
  height: 55px;
  overflow: hidden;
  border: 1px solid #cfd4d1;
  border-radius: 6px;
  background: #fafafa;
}

.quiz-phone-prefix {
  display: flex;
  flex: 0 0 98px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid #e1e4e2;
  color: #111;
  font-size: 17px;
}

.quiz-phone-prefix strong { font-weight: 500; }
.quiz-phone-arrow { color: #68736c; font-size: 12px; }

.quiz-contact-phone {
  height: 53px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.quiz-contact-phone:focus { box-shadow: none; }
.quiz-error { min-height: 18px; margin: 10px 0 0; color: #b1392a; font-size: 12px; }

.quiz-submit {
  width: 100%;
  min-height: 52px;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: #f0f0f0;
  color: #000;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.quiz-submit:hover { background: #e5e5e5; transform: translateY(-1px); }

.quiz-form-back {
  display: block;
  margin: 14px auto 0;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: #6d7771;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.quiz-success {
  padding: 72px 12px 30px;
  text-align: center;
}

.quiz-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e6f4da;
  color: #4d941f;
  font-size: 30px;
  font-weight: 700;
}

.quiz-success p {
  max-width: 480px;
  margin: 12px auto 0;
  color: var(--quiz-muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .quiz-card-section { padding: 28px 12px 45px; }
  .quiz-card { min-height: 0; padding: 25px 18px 24px; border-radius: 13px; }
  .quiz-card__progress { margin-bottom: 23px; }
  .quiz-step h2 { font-size: 28px; }
  .quiz-option { min-height: 72px; padding: 13px 14px; }
  .quiz-actions { justify-content: stretch; }
  .quiz-button:not(.quiz-button--back) { flex: 1; }
}
