/* tw-qna.css - the question-by-question popover (25 Oct 2026), built by tw-qna.js.
   The overlay, card, title, email box and button come from the .tw-gate rules in
   tw-faq.css, which every page carrying this popover already loads. This file
   adds the progress bar, the answer cards, and the tick box step. */

.tw-qna [hidden] { display: none !important; }
/* The card takes focus when the popover opens by scroll, so a phone keyboard does
   not pop up. No ring for that (the Webflow styles on /temperaturewise add one to
   every [tabindex] element, hence the extra .tw-qna to outrank them). */
.tw-qna .tw-qna-dialog:focus, .tw-qna .tw-qna-dialog:focus-visible { outline: none; }
.tw-qna-dialog { width: min(100%, 32rem); }

/* Leave room for the close button, unless there is none. */
.tw-qna-progress, .tw-qna-eyebrow { margin-right: 2.6rem; }
.tw-qna.is-forced .tw-qna-progress, .tw-qna.is-forced .tw-qna-eyebrow { margin-right: 0; }

.tw-qna-progress { display: flex; gap: 6px; margin-bottom: 16px; }
.tw-qna-progress span { flex: 1; height: 4px; border-radius: 2px; background: #e3ebe7; transition: background .25s; }
.tw-qna-progress span.is-done { background: var(--renergy-green, #00b259); }
.tw-qna-progress span.is-now { background: var(--green-dark, #14663d); }

.tw-qna-dialog .tw-gate-title { font-size: clamp(1.35rem, 3.6vw, 1.7rem); line-height: 1.2; }
.tw-qna-dialog .tw-gate-intro { font-size: .98rem; }

.tw-qna-form { display: grid; gap: 12px; margin-top: 20px; }

/* --- the gift, first and biggest (27 Oct 2026, Vimal) --- */
.tw-qna-gift {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 2.6rem 18px 0;
  padding: 14px 16px;
  border: 1.5px solid var(--renergy-green, #00b259);
  border-radius: 12px;
  background: #eef8f2;
}
.tw-qna.is-forced .tw-qna-gift { margin-right: 0; }
.tw-qna-gift-thumb {
  flex: 0 0 auto;
  width: auto;
  height: 88px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.tw-qna-gift-icon { flex: 0 0 auto; width: 52px; height: 52px; color: var(--green-dark, #14663d); }
.tw-qna-gift-icon svg { display: block; width: 100%; height: 100%; }
.tw-qna-gift-text { min-width: 0; }
.tw-qna-gift-eyebrow {
  color: var(--green-dark, #14663d);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tw-qna-gift-title {
  margin-top: 2px;
  color: #111;
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
}
.tw-qna-gift-sub { margin-top: 5px; color: #2f3b35; font-size: .95rem; font-weight: 600; }

/* --- answer cards --- */
.tw-qna-options { display: grid; gap: 10px; }
.tw-qna-options.is-pair { grid-template-columns: 1fr 1fr; }
.tw-qna-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dae5e0;
  border-radius: 10px;
  background: #fff;
  color: var(--text-color--text-primary, #111);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.tw-qna-option:hover { border-color: var(--renergy-green, #00b259); background: #f6fbf8; }
.tw-qna-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green-dark, #14663d);
  cursor: pointer;
}
.tw-qna-option input:focus-visible { outline: 2px solid var(--renergy-green, #00b259); outline-offset: 2px; }
.tw-qna-option.is-picked {
  border-color: var(--green-dark, #14663d);
  background: #eef8f2;
  box-shadow: inset 0 0 0 1px var(--green-dark, #14663d);
}
.tw-qna-option-text { min-width: 0; }
.tw-qna-hint { display: block; margin-top: 3px; color: #5c6360; font-size: .86rem; font-weight: 400; }
.tw-qna-options.is-pair .tw-qna-option { flex-direction: column; gap: 8px; padding: 16px; }

.tw-qna-form.is-busy .tw-qna-option { pointer-events: none; opacity: .6; }
.tw-qna-form.is-busy .tw-qna-option.is-picked { opacity: 1; }

/* --- the tick box --- */
.tw-qna-check { margin-top: 4px; }
.tw-qna-check-label { margin: 0 0 8px; color: #111; font-size: .92rem; font-weight: 600; }
.tw-qna-check-label:empty { display: none; }
.tw-qna-dialog .tw-gate-captcha { min-height: 78px; }
/* Invisible keys: the widget must stay rendered (never display:none), so park it
   in a 1px box and hide the badge with visibility:hidden, the way Google allows
   when the reCAPTCHA notice is shown (it is, in the note under the form). */
.tw-qna.is-invisible-check .tw-qna-check { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; }
.tw-qna.is-invisible-check .tw-gate-captcha { min-height: 0; transform: none; }
.tw-qna.is-invisible-check .grecaptcha-badge { visibility: hidden !important; }

.tw-qna-dialog .tw-gate-status.is-info { color: #5c6360; }
.tw-qna-hp { display: none !important; }

/* --- done --- */
.tw-qna-done { margin-top: 14px; }
.tw-qna-done p { margin: 0 0 10px; color: #5c6360; font-size: 1rem; line-height: 1.6; }
.tw-qna-done a { color: var(--green-dark, #14663d); font-weight: 600; }
.tw-qna-done .button { display: inline-block; margin-top: 6px; color: #fff; }

.tw-qna-note a { color: inherit; }
.tw-qna-later {
  display: block;
  margin: .9rem auto 0;
  padding: .3rem .6rem;
  border: 0;
  background: none;
  color: #5c6360;
  font: inherit;
  font-size: .88rem;
  text-decoration: underline;
  cursor: pointer;
}
.tw-qna-later:hover { color: #111; }

/* The reCAPTCHA box is a fixed 304 px. On a narrow phone, give the popover more
   of the screen, stack the paired answers, and shrink the box to fit. */
@media screen and (max-width: 420px) {
  .tw-qna { padding: 12px; }
  .tw-qna-dialog { padding: 26px 20px; }
  .tw-qna-options.is-pair { grid-template-columns: 1fr; }
  .tw-qna-options.is-pair .tw-qna-option { flex-direction: row; gap: 12px; padding: 14px 16px; }
  .tw-qna-dialog .tw-gate-captcha { transform: scale(.9); transform-origin: 0 0; min-height: 70px; }
  .tw-qna-gift { gap: 10px; padding: 10px 12px; margin-bottom: 12px; }
  .tw-qna-gift-thumb { height: 58px; }
  .tw-qna-gift-icon { width: 34px; height: 34px; }
  .tw-qna-gift-eyebrow { font-size: .7rem; }
  .tw-qna-gift-title { font-size: 1.45rem; }
  .tw-qna-gift-sub { margin-top: 3px; font-size: .85rem; }
}
