
.tiq-questionnaire {
  --tiq-container-bg:#fff;
  --tiq-container-border:#d9d9d9;
  --tiq-container-radius:14px;
  --tiq-container-padding:24px;
  --tiq-section-title:#1f2937;
  --tiq-question:#111827;
  --tiq-answer:#374151;
  --tiq-button-bg:#2563eb;
  --tiq-button-text:#fff;
  --tiq-button-hover:#1d4ed8;
  --tiq-input-border:#cbd5e1;
  --tiq-progress-bg:#e5e7eb;
  --tiq-progress-fill:#2563eb;
  --tiq-max-width:900px;
  max-width: var(--tiq-max-width);
  margin: 24px auto;
  padding: var(--tiq-container-padding);
  border: 1px solid var(--tiq-container-border);
  border-radius: var(--tiq-container-radius);
  background: var(--tiq-container-bg);
  box-sizing: border-box;
}
.tiq-progress { height: 10px; background: var(--tiq-progress-bg); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.tiq-progress-bar { display:block; height:100%; width:0; background: var(--tiq-progress-fill); transition: width .25s ease; }
.tiq-section-header .tiq-step { color: var(--tiq-answer); font-size: 14px; margin-bottom: 6px; }
.tiq-section-header h3 { margin: 0 0 8px; color: var(--tiq-section-title); font-size: 28px; }
.tiq-section-header p { margin: 0 0 18px; color: var(--tiq-answer); }
.tiq-field { margin-bottom: 20px; min-height: 120px; }
.tiq-label { display:block; color: var(--tiq-question); font-weight: 700; margin-bottom: 12px; font-size: 22px; line-height: 1.35; }
.tiq-description { color: var(--tiq-answer); margin-bottom: 12px; font-size: 14px; }
.tiq-questionnaire input[type="text"],
.tiq-questionnaire input[type="email"],
.tiq-questionnaire textarea,
.tiq-questionnaire select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--tiq-input-border);
  border-radius: 10px;
  color: var(--tiq-answer);
  box-sizing: border-box;
  background: #fff;
  font-size: 16px;
}
.tiq-options { display:flex; flex-direction:column; gap:10px; }
.tiq-options.tiq-options-inline { flex-direction:row; align-items:center; gap:12px; flex-wrap:wrap; }
.tiq-choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tiq-option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tiq-option-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 10px 16px;
  border: 1px solid var(--tiq-input-border);
  border-radius: 999px;
  background: #fff;
  color: var(--tiq-answer);
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all .18s ease;
}
.tiq-option-button:hover {
  border-color: var(--tiq-button-bg);
  color: var(--tiq-button-bg);
}
.tiq-choice-input:checked + .tiq-option-button,
.tiq-option-button.is-active {
  background: var(--tiq-button-bg);
  border-color: var(--tiq-button-bg);
  color: var(--tiq-button-text);
}
.tiq-actions { display:flex; justify-content:space-between; gap:12px; margin-top: 30px; }
.tiq-btn {
  appearance:none; border:0; cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
  background: var(--tiq-button-bg); color: var(--tiq-button-text); border-radius: 10px; padding: 13px 22px; font-weight:700;
}
.tiq-btn:hover { background: var(--tiq-button-hover); }
.tiq-btn-secondary { background:#e5e7eb; color:#111827; }
.tiq-field-error { display:none; margin-top:8px; color:#b91c1c; font-size:14px; }
.tiq-field.has-error .tiq-field-error { display:block; }
.tiq-field.has-error input[type="text"],
.tiq-field.has-error textarea,
.tiq-field.has-error select { border-color:#b91c1c; }
.tiq-field.has-error .tiq-option-button { border-color:#ef4444; }
.tiq-honeypot { position:absolute !important; left:-9999px !important; opacity:0 !important; }
.tiq-success, .tiq-message { max-width:900px; margin:20px auto; padding:15px 18px; border-radius:10px; }
.tiq-success { background:#ecfdf5; color:#166534; border:1px solid #86efac; }
.tiq-message { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
@media (max-width: 768px){
  .tiq-questionnaire { padding: 18px; }
  .tiq-section-header h3 { font-size: 23px; }
  .tiq-label { font-size: 19px; }
  .tiq-option-button { min-width: 64px; padding: 9px 14px; }
}


.tiq-intro-screen { text-align:center; padding: 10px 0 8px; }
.tiq-intro-screen h2 { margin: 0 0 12px; color: var(--tiq-section-title); font-size: 30px; }
.tiq-intro-screen .tiq-intro-text { color: var(--tiq-answer); max-width: 700px; margin: 0 auto 18px; }
.tiq-questionnaire.tiq-not-started .tiq-progress,
.tiq-questionnaire.tiq-not-started .tiq-form { display:none; }
.tiq-question-image { margin: 12px 0 16px; }
.tiq-question-image img { display:block; max-width:100%; height:auto; margin:0; border-radius:12px; }
.tiq-option-button { display:inline-flex; align-items:center; justify-content:center; min-width:72px; padding:10px 16px; border:1px solid var(--tiq-input-border); border-radius:999px; background:#fff; color: var(--tiq-answer); cursor:pointer; transition: all .18s ease; user-select:none; }
.tiq-option-button:hover { border-color: var(--tiq-button-bg); color: var(--tiq-button-bg); }
.tiq-choice-input:checked + .tiq-option-button,
.tiq-option-button.is-active { background: var(--tiq-button-bg); border-color: var(--tiq-button-bg); color: var(--tiq-button-text); }
.tiq-field-error { display:none; color:#b91c1c; margin-top:10px; font-size:14px; }
.tiq-field.has-error .tiq-field-error { display:block; }

.tiq-questionnaire:not(.tiq-not-started) .tiq-intro-screen { display:none; }
