/* Tutor Quiz Intake – dark green card. Rules are scoped to .tqi-wrap so the theme/Elementor can't restyle them. */
/* Inter is bundled so the card looks identical on every site (no Google Fonts request). Licence: assets/fonts/LICENSE.txt */
@font-face { font-family: "TQI Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "TQI Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "TQI Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }

html { scroll-behavior: smooth; }

.tqi-wrap { scroll-margin-top: 100px; width: 100%; box-sizing: border-box; }
.tqi-wrap *, .tqi-wrap *::before, .tqi-wrap *::after { box-sizing: border-box; }

.tqi-wrap .tqi-card {
  max-width: 455px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 38px 31px;
  border: 1px solid #1d3a30;
  border-radius: 10px;
  background: radial-gradient(ellipse 300px 270px at 0 0, #1d422e 0%, #1d422e 35%, rgba(29, 66, 46, 0) 100%), #1f2624;
  color: #e5e7eb;
  font-family: var(--tqi-font, "TQI Inter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.tqi-wrap .tqi-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: #d5d9de;
}
.tqi-wrap .tqi-top[hidden], .tqi-wrap .tqi-steps[hidden], .tqi-wrap .tqi-thanks[hidden],
.tqi-wrap .tqi-step[hidden], .tqi-wrap .tqi-parent[hidden], .tqi-wrap .tqi-hint[hidden] { display: none !important; }

.tqi-wrap .tqi-title {
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--tqi-font, "TQI Inter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif) !important;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  text-transform: none;
}
.tqi-wrap .tqi-hint { margin: -6px 0 16px; font-size: 13px; color: #9ca3af; }

.tqi-wrap .tqi-step.is-active { animation: tqi-in .25s ease both; }
@keyframes tqi-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tqi-wrap .tqi-step.is-active { animation: none; } html { scroll-behavior: auto; } }

/* Answer options */
.tqi-wrap .tqi-options { display: flex; flex-direction: column; gap: 13px; margin: 0 0 13px; }
.tqi-wrap .tqi-opt {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding: 10px 44px 10px 21px;
  background: #202e2a;
  border: 1px solid #1f4a3d;
  border-radius: 5px;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
  user-select: none;
}
.tqi-wrap .tqi-opt:hover { border-color: #2c7a64; background: #22332e; }
.tqi-wrap .tqi-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tqi-wrap .tqi-opt-text { display: block; }
.tqi-wrap .tqi-opt.is-selected { border-color: #34a583; background: #1f3b33; }
.tqi-wrap .tqi-opt.is-selected::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  background: #1f7a63 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.tqi-wrap .tqi-opt:has(input:focus-visible) { outline: 2px solid #5fd3b0; outline-offset: 2px; }

/* Buttons */
.tqi-wrap button.tqi-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 20px;
  background: #1f7a63;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .15s, transform .05s;
}
.tqi-wrap button.tqi-btn:hover { background: #25906f; color: #fff; }
.tqi-wrap button.tqi-btn:active { transform: translateY(1px); }
.tqi-wrap button.tqi-btn:focus-visible { outline: 2px solid #5fd3b0; outline-offset: 2px; }
.tqi-wrap button.tqi-btn:disabled { opacity: .65; cursor: progress; }
.tqi-wrap .tqi-arrow { flex: none; display: block; }

.tqi-wrap button.tqi-back {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #9ca3af;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  cursor: pointer;
}
.tqi-wrap button.tqi-back:hover { background: transparent; color: #e5e7eb; }

.tqi-wrap .tqi-err {
  display: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: #fca5a5;
}

/* Text inputs (step 5 and free-text subject) */
.tqi-wrap .tqi-field { margin: 0 0 13px; }
.tqi-wrap .tqi-card input[type="text"],
.tqi-wrap .tqi-card input[type="email"],
.tqi-wrap .tqi-card input[type="tel"] {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 21px;
  background: #202e2a;
  border: 1px solid #1f4a3d;
  border-radius: 5px;
  box-shadow: none;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  outline: none;
  transition: border-color .15s;
}
.tqi-wrap .tqi-card input::placeholder { color: #9ca3af; font-weight: 500; opacity: 1; }
.tqi-wrap .tqi-card input[type="text"]:focus,
.tqi-wrap .tqi-card input[type="email"]:focus,
.tqi-wrap .tqi-card input[type="tel"]:focus { border-color: #34a583; box-shadow: 0 0 0 3px rgba(52, 165, 131, .22); }
.tqi-wrap .tqi-card input.is-invalid { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .2); }

/* Days / times chips */
.tqi-wrap .tqi-group { margin: 0 0 14px; }
.tqi-wrap .tqi-label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #b8bec6; }
.tqi-wrap .tqi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tqi-wrap .tqi-chip {
  position: relative;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.tqi-wrap .tqi-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tqi-wrap .tqi-chip span {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 11px;
  background: #202e2a;
  border: 1px solid #1f4a3d;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  transition: background-color .15s, border-color .15s;
  user-select: none;
}
.tqi-wrap .tqi-chip:hover span { border-color: #2c7a64; }
.tqi-wrap .tqi-chip.is-selected span { background: #1f7a63; border-color: #1f7a63; color: #fff; }
.tqi-wrap .tqi-chip:has(input:focus-visible) span { outline: 2px solid #5fd3b0; outline-offset: 2px; }

/* Under 18 */
.tqi-wrap .tqi-check { display: flex; align-items: center; gap: 10px; margin: 2px 0 13px; font-size: 14px; font-weight: 500; color: #d5d9de; cursor: pointer; }
.tqi-wrap .tqi-check input { width: 18px; height: 18px; margin: 0; accent-color: #1f7a63; flex: none; }

/* Honeypot: invisible to people, visible to bots */
.tqi-wrap .tqi-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tqi-wrap .tqi-consent { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: #9ca3af; text-align: center; }
.tqi-wrap .tqi-consent a { color: #6ee7b7; text-decoration: underline; }

/* Thank-you panel (same page, no redirect) */
.tqi-wrap .tqi-thanks { padding: 14px 0 8px; text-align: center; outline: none; }
.tqi-wrap .tqi-thanks-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #1f7a63;
}
.tqi-wrap .tqi-thanks .tqi-title { margin-bottom: 10px; font-size: 24px; }
.tqi-wrap .tqi-thanks-text { margin: 0; font-size: 15px; line-height: 1.6; color: #d5d9de; }

@media (max-width: 480px) {
  .tqi-wrap .tqi-card input[type="text"], .tqi-wrap .tqi-card input[type="email"], .tqi-wrap .tqi-card input[type="tel"] { font-size: 16px; }
  .tqi-wrap .tqi-card { padding: 28px 20px 24px; }
  .tqi-wrap .tqi-title { font-size: 18px; }
  .tqi-wrap .tqi-opt { padding-left: 16px; }
  .tqi-wrap .tqi-card input[type="text"], .tqi-wrap .tqi-card input[type="email"], .tqi-wrap .tqi-card input[type="tel"] { padding: 0 16px; }
}
