/* CATRAMP SA – formulaire de devis et suivi. Préfixe cq- / ct- pour ne pas interférer avec le thème. */
.cq { --cq-accent: #1f5fa8; --cq-accent-dark: #174a84; --cq-bord: #d6dde6; --cq-bg: #f5f8fb; --cq-txt: #1d2430;
      --cq-muted: #5f6b7a; --cq-ko: #b3261e; --cq-ok: #1e7d4f;
      max-width: 920px; margin: 0 auto 40px; color: var(--cq-txt); font-size: 16px; line-height: 1.5; text-align: left; }
.cq *, .cq *::before, .cq *::after { box-sizing: border-box; }
.cq h3 { font-size: 22px; margin: 0 0 18px; color: var(--cq-txt); text-transform: none; letter-spacing: 0; }
.cq-box { background: #fff; border: 1px solid var(--cq-bord); border-radius: 10px; padding: 24px; margin-bottom: 16px; }

.cq-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 16px; padding: 0; flex-wrap: wrap; }
.cq-steps li { display: flex; align-items: center; gap: 8px; color: var(--cq-muted); font-size: 14px; margin: 0; }
.cq-steps li:not(:last-child)::after { content: ""; width: 28px; height: 1px; background: var(--cq-bord); }
.cq-steps span { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
                 border: 1px solid var(--cq-bord); font-weight: 600; font-size: 13px; background: #fff; }
.cq-steps li.on { color: var(--cq-txt); font-weight: 600; }
.cq-steps li.on span { background: var(--cq-accent); border-color: var(--cq-accent); color: #fff; }
.cq-steps li.done span { background: #e3edf8; border-color: #e3edf8; color: var(--cq-accent); }

.cq-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cq-service { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
              text-align: left; background: var(--cq-bg); border: 1px solid var(--cq-bord); border-radius: 10px;
              padding: 16px; cursor: pointer; font: inherit; color: var(--cq-txt); transition: border-color .15s, box-shadow .15s; }
.cq-service:hover, .cq-service:focus-visible { border-color: var(--cq-accent); box-shadow: 0 0 0 3px rgba(31, 95, 168, .15); outline: none; }
.cq-service.on { border-color: var(--cq-accent); background: #eef4fb; }
.cq-ico { grid-row: span 2; font-size: 28px; line-height: 1; }
.cq-service strong { font-size: 15px; }
.cq-service small { color: var(--cq-muted); font-size: 13px; }

.cq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.cq-wide { grid-column: 1 / -1; }
.cq-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; color: var(--cq-txt); }
.cq-req { color: var(--cq-ko); } .cq-opt { color: var(--cq-muted); font-weight: 400; font-size: 13px; }
.cq input, .cq select, .cq textarea { width: 100%; font: inherit; font-size: 16px; color: var(--cq-txt); background: #fff;
       border: 1px solid var(--cq-bord); border-radius: 6px; padding: 10px 12px; margin: 0; height: auto; min-height: 44px; box-shadow: none; }
.cq input:focus, .cq select:focus, .cq textarea:focus { border-color: var(--cq-accent); outline: 2px solid rgba(31, 95, 168, .25); outline-offset: 0; }
.cq-bad input, .cq-bad select, .cq-bad textarea { border-color: var(--cq-ko); }
.cq-err { color: var(--cq-ko); font-size: 13px; min-height: 0; margin-top: 3px; }
.cq-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cq-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.cq-nav .cq-btn:only-child { margin-left: auto; }
.cq-btn { display: inline-block; background: var(--cq-accent); color: #fff; border: 1px solid var(--cq-accent); border-radius: 6px;
          padding: 11px 22px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; }
.cq-btn:hover { background: var(--cq-accent-dark); border-color: var(--cq-accent-dark); color: #fff; }
.cq-btn[disabled] { opacity: .6; cursor: wait; }
.cq-btn.cq-sec { background: #fff; color: var(--cq-accent); }
.cq-btn.cq-sec:hover { background: #eef4fb; }
.cq-note { color: var(--cq-muted); font-size: 13px; margin: 14px 0 0; }
.cq-alert { background: #fdecea; color: var(--cq-ko); border-radius: 6px; padding: 10px 12px; margin-top: 14px; }
.cq-done { text-align: center; padding: 36px 24px; }
.cq-check { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #e2f3ea; color: var(--cq-ok);
            display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.cq-done p { max-width: 560px; margin: 0 auto 20px; }

.ct-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ct-row { display: flex; gap: 10px; }
.ct-row input { flex: 1; }
.ct-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
           padding-bottom: 14px; border-bottom: 1px solid var(--cq-bord); margin-bottom: 14px; }
.ct-head small { display: block; color: var(--cq-muted); font-size: 13px; }
.ct-head strong { font-size: 20px; color: var(--cq-accent); }
.ct-ref { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--cq-bg); padding: 4px 10px; border-radius: 6px; }
.ct-meta { display: grid; grid-template-columns: 170px 1fr; gap: 4px 14px; margin: 0 0 18px; }
.ct-meta dt { color: var(--cq-muted); } .ct-meta dd { margin: 0; word-break: break-word; }
.ct-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.ct-timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--cq-bord); }
.cq ol, .cq ol li { list-style: none !important; }
.cq ol li::marker { content: none; }
.ct-timeline li { position: relative; padding: 0 0 18px 12px; margin: 0; }
.ct-timeline li::before { content: ""; position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
                          background: #fff; border: 2px solid var(--cq-bord); }
.ct-timeline li.on::before { background: var(--cq-accent); border-color: var(--cq-accent); box-shadow: 0 0 0 4px rgba(31, 95, 168, .15); }
.ct-timeline li.ok::before { background: var(--cq-ok); border-color: var(--cq-ok); }
.ct-timeline time { display: block; font-size: 13px; color: var(--cq-muted); }
.ct-timeline strong { display: block; }
.ct-timeline span { color: var(--cq-muted); font-size: 14px; }
.ct-timeline p { margin: 4px 0 0; font-size: 14px; }

@media (max-width: 640px) {
  .cq-box { padding: 18px 16px; }
  .cq-grid { grid-template-columns: 1fr; }
  .cq-steps li:not(:last-child)::after { width: 12px; }
  .ct-row { flex-direction: column; }
  .ct-meta { grid-template-columns: 1fr; }
  .ct-meta dt { margin-top: 6px; }
}
