/* Page styles for https://earthgrid.com/quiz-why (loaded by grid.php). */
/* Shared look with why.php (.why-*) */
.why-wrap { max-width: 760px; margin: 0 auto; padding: 10px 10px 30px; color: #f2f2f2; text-align: left; }
.why-wrap p { color: #e8e8e8; font-size: 17px; line-height: 1.7; }
.why-wrap a { color: #ffc27a; }
.why-wrap strong { color: #fff; }
.why-hero { position: relative; text-align: center; padding: 20px 0 22px; overflow: hidden; }
.why-tri-field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; pointer-events: none; }
.why-hero > *:not(svg) { position: relative; }
.why-kicker { display: inline-block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #ffb35c; font-weight: bold; margin-bottom: 10px; }
.why-hero h1 { color: #fff; font-size: 48px; line-height: 1.05; margin: 0 0 12px; letter-spacing: 5px; text-transform: uppercase; font-weight: bold; }
.why-hero p { font-size: 19px; line-height: 1.45; color: #ddedfb; margin: 0 auto; }
.why-btn { display: inline-block; background: #5cb85c; color: #fff !important; font: bold 17px Georgia, serif; padding: 13px 26px; border-radius: 5px; border: 0; cursor: pointer; text-decoration: none; margin: 16px 8px 0 0; }
.why-btn:hover, .why-btn:focus { background: #4a9d4a; }
.why-btn-orange { background: #f0932b; color: #111 !important; }
.why-btn-orange:hover, .why-btn-orange:focus { background: #d97d16; }
.why-btn-dark { background: #222; border: 1px solid rgba(255,255,255,0.3); }
.why-btn-dark:hover, .why-btn-dark:focus { background: #000; }
.why-btn[disabled] { opacity: .45; cursor: default; }
.why-fine { display: block; font-size: 14px; color: #b9c4cd; margin-top: 12px; }
.apple-first p, .apple-first .why-fine { max-width: 25em; text-wrap: pretty; }
.apple-first .why-hero p { margin-left: auto; margin-right: auto; }

/* Quiz */
.qz-progress { height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; margin: 6px 0 6px; }
.qz-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f0932b, #ffd98a); transition: width .25s ease; }
.qz-count { font-size: 13px; color: #c9d4dd; letter-spacing: 1px; text-transform: uppercase; }
.qz-step { border: 0; margin: 18px 0 0; padding: 22px 22px 18px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.qz-step legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; color: #fff; font-size: 24px; font-weight: bold; line-height: 1.25; }
.qz-step legend + * { clear: both; }
.qz-help { color: #c9d4dd !important; font-size: 15px !important; margin: 0 0 12px !important; }
.qz-num { display: inline-block; width: 0; height: 0; margin-right: 10px; vertical-align: 3px; position: relative;
  border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 21px solid #f0932b; }
.qz-num b { position: absolute; left: -5px; top: 7px; font-size: 11px; color: #111; width: 10px; text-align: center; }
.qz-opts { display: grid; gap: 10px; margin-top: 8px; }
.qz-opt { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 13px 16px; border-radius: 8px;
  background: rgba(0,0,0,.25); border: 2px solid rgba(255,255,255,.14); color: #fff; font-size: 17px; transition: all .12s ease; }
.qz-opt:hover { border-color: rgba(240,147,43,.7); }
.qz-opt input { width: 20px; height: 20px; accent-color: #f0932b; flex: none; margin: 0; }
.qz-opt:has(input:checked) { border-color: #f0932b; background: rgba(240,147,43,.16); }
.qz-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.qz-err { display: block; color: #ffb3a8; font-size: 14px; margin: 6px 0 0; }
.qz-alert { background: rgba(185,74,72,.2); border-left: 3px solid #b94a48; padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0 0; }
.qz-reg label { display: block; color: #c9d4dd; font-size: 14px; margin: 12px 0 4px; }
.qz-reg input[type=text], .qz-reg input[type=email], .qz-reg input[type=tel] {
  width: 100%; box-sizing: border-box; font: 17px Georgia, serif; padding: 11px 12px; border-radius: 6px;
  border: 1px solid #555; background: #111; color: #fff; }
.qz-reg input:focus { outline: 2px solid #f0932b; outline-offset: 1px; }
.qz-reg .qz-check { display: flex; gap: 10px; align-items: flex-start; color: #e8e8e8; font-size: 15px; margin-top: 16px; cursor: pointer; }
.qz-reg .qz-check input { width: 20px; height: 20px; accent-color: #f0932b; margin-top: 2px; flex: none; }
.qz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.why-wrap .qz-private { font-size: 13px; color: #b9c4cd; margin: 12px 0 0; }

/* With JavaScript: one question at a time */
.qz-js .qz-step { display: none; }
.qz-js .qz-step.is-current { display: block; }
.qz-nojs-submit { margin-top: 18px; }
.qz-js .qz-nojs-submit { display: none; }
.qz-nav { display: none; }
.qz-js .qz-nav { display: flex; }

@media (max-width: 700px) {
  .why-hero h1 { font-size: 32px; letter-spacing: 3px; }
  .qz-step legend { font-size: 20px; }
  .qz-opt { font-size: 16px; }
}
