/* KTO — customer questionnaires (devis + rendez-vous)
 * Deliberately plain: every question is a group of large tappable chips so a
 * customer on a phone answers the whole form with taps and two typed fields.
 * Loaded only by devis.html / rendez-vous.html and their Arabic mirrors.
 */
.kq { margin-inline: auto; }
.kq-intro { color: var(--gray-600, #555); font-size: 16px; line-height: 1.75; margin-bottom: 28px; }
.kq-steps {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-head, 'Montserrat', sans-serif);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gray-400, #737373); margin-bottom: 30px;
}
/* <fieldset> ships a browser border, margin and padding that draw a grey box
   around every question — reset them and keep only our own hairline rule. */
.kq-q {
  border: 0; border-top: 1px solid var(--gray-200, #e8e8e8);
  margin: 0; padding: 26px 0 4px; min-width: 0;
}
.kq-q:first-of-type { border-top: none; padding-top: 0; }
.kq-q > legend,
.kq-q > .kq-label {
  display: block; width: 100%;
  font-family: var(--font-head, 'Montserrat', sans-serif);
  font-size: 15px; font-weight: 600; color: var(--black, #0a0a0a);
  margin-bottom: 4px; padding: 0;
}
.kq-help { font-size: 13px; color: var(--gray-400, #737373); margin-bottom: 14px; }
.kq-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.kq-opt { position: relative; }
.kq-opt input {
  position: absolute; opacity: 0; width: 100%; height: 100%;
  top: 0; inset-inline-start: 0; margin: 0; cursor: pointer;
}
.kq-opt span {
  display: block; padding: 11px 17px; min-height: 44px;
  border: 1.5px solid var(--gray-200, #e8e8e8); border-radius: 999px;
  background: #fff; font-size: 14.5px; line-height: 1.45; color: var(--gray-600, #555);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.kq-opt input:checked + span {
  border-color: var(--kto-blue, #1a6fb8);
  background: #eff6ff;
  color: var(--kto-blue, #1a6fb8);
  font-weight: 600;
}
.kq-opt input:focus-visible + span { outline: 2px solid var(--kto-blue, #1a6fb8); outline-offset: 2px; }
.kq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.kq-field { display: flex; flex-direction: column; gap: 6px; }
.kq-field.kq-wide { grid-column: 1 / -1; }
.kq-field label { font-size: 13px; font-weight: 600; color: var(--black, #0a0a0a); }
.kq-field input, .kq-field textarea {
  width: 100%; padding: 13px 15px; min-height: 46px;
  border: 1.5px solid var(--gray-200, #e8e8e8); border-radius: 8px;
  font-family: inherit; font-size: 15px; color: var(--black, #0a0a0a);
  background: #fff; outline: none;
}
.kq-field input:focus, .kq-field textarea:focus { border-color: var(--kto-blue, #1a6fb8); }
.kq-field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
/* Honeypot. NOT `left: -9999px`: on an RTL page that pushes the element
   10 000px past the inline-start edge, which becomes 10 000px of horizontal
   overflow and scrolls the whole Arabic page off-screen (it renders blank).
   The clip pattern hides it in both directions and creates no overflow. */
.kq-hp {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.kq-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.kq-submit {
  flex: 1 1 240px; min-height: 52px; padding: 15px 26px;
  background: var(--black, #0a0a0a); color: #fff; border: none; border-radius: 8px;
  font-family: var(--font-head, 'Montserrat', sans-serif);
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: background .2s ease;
}
.kq-submit:hover { background: var(--kto-blue, #1a6fb8); }
.kq-submit:disabled { opacity: .55; cursor: default; }
.kq-wa {
  flex: 1 1 240px; min-height: 52px; padding: 15px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: #25d366; color: #fff !important; border-radius: 8px; text-decoration: none;
  font-family: var(--font-head, 'Montserrat', sans-serif);
  font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  box-sizing: border-box;
}
.kq-wa:hover { background: #1da851; }
.kq-msg { margin-top: 16px; font-size: 14.5px; line-height: 1.65; min-height: 1em; }
.kq-msg.err { color: #c0392b; }
.kq-done {
  border: 1.5px solid #9cc6ea; background: #eff6ff; border-radius: 14px;
  padding: 30px 26px; text-align: center;
}
.kq-done h2 {
  font-family: var(--font-head, 'Montserrat', sans-serif);
  font-size: 21px; font-weight: 600; color: var(--kto-blue, #1a6fb8);
  margin: 0 0 10px; border: none; padding: 0; letter-spacing: 0; text-transform: none;
}
.kq-done p { color: var(--gray-600, #555); font-size: 15px; margin: 0 auto 18px; max-width: 460px; }
.kq-privacy { font-size: 12.5px; color: var(--gray-400, #737373); margin-top: 14px; line-height: 1.6; }
@media (max-width: 560px) {
  .kq-fields { grid-template-columns: 1fr; }
  .kq-opt span { font-size: 14px; padding: 11px 15px; }
}
