/* CMT Business Questionnaire — namespaced (.cmtq-*) so it never clashes with the
   theme or other plugins. Matches the site's Poppins + #FF5900 look. */

.cmtq-wrap {
  padding: 60px 20px 40px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.cmtq-header { max-width: 680px; margin: 0 auto 30px; }
.cmtq-tag {
  color: #ff5900; font-size: 12px; letter-spacing: 1px; margin: 0 0 10px;
  font-weight: 600; text-transform: uppercase;
}
.cmtq-heading { color: #111; font-size: 34px; line-height: 1.15; margin: 0 0 10px; font-weight: 600; }
.cmtq-sub { color: #666; font-size: 15px; margin: 0; }

.cmtq-card {
  max-width: 680px; margin: 0 auto; background: #fff;
  border: 1px solid #eee; border-radius: 16px; padding: 30px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); text-align: left;
}

/* Response / toast messages */
.cmtq-response { max-width: 680px; margin: 0 auto; }
.cmtq-msg {
  margin: 0 auto 20px; border-radius: 12px; padding: 14px 16px; font-size: 14px;
  text-align: left; font-family: "Poppins", sans-serif;
}
.cmtq-msg--success { background: #fff7f2; border: 1px solid #ff5900; color: #111; }
.cmtq-msg--error { background: #fff4f4; border: 1px solid #d93025; color: #111; }

.cmtq-toast {
  position: fixed; left: 50%; top: 24px; transform: translate(-50%, -20px);
  z-index: 100000; max-width: min(460px, 92vw); box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.35);
  opacity: 0; transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.cmtq-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Steps — visible by default; only hidden once JS is running (no-JS fallback). */
.cmtq-step__title { font-size: 20px; margin: 0 0 20px; font-weight: 600; color: #111; }
.cmtq-form.is-js .cmtq-step { display: none; }
.cmtq-form.is-js .cmtq-step.is-active { display: block; }

.cmtq-field { display: block; margin-bottom: 18px; }
.cmtq-label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 500; color: #111; }

.cmtq-card input,
.cmtq-modal__box input[type="text"],
.cmtq-modal__box input[type="email"],
.cmtq-modal__box input[type="tel"] {
  width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 10px;
  font-size: 14px; font-family: "Poppins", sans-serif; box-sizing: border-box; background: #fff; color: #111;
}
.cmtq-card input:focus,
.cmtq-modal__box input:focus {
  border-color: #ff5900; box-shadow: 0 0 0 2px rgba(255, 89, 0, 0.1); outline: none;
}

.cmtq-radio { display: flex; gap: 20px; flex-wrap: wrap; }
.cmtq-radio label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; color: #111; margin: 0; cursor: pointer; }
.cmtq-radio input[type="radio"] { width: auto; margin: 0; accent-color: #ff5900; }

/* Honeypot — hidden from people */
.cmtq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.cmtq-btns { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.cmtq-btns--end { justify-content: flex-end; }
.cmtq-btn {
  padding: 14px 22px; border-radius: 10px; border: none; font-weight: 600; font-size: 14px;
  font-family: "Poppins", sans-serif; cursor: pointer; background: #ff5900; color: #fff;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.cmtq-btn:hover { background: #e24f00; }
.cmtq-btn:active { transform: scale(0.98); }
.cmtq-prev { background: #fff; color: #ff5900; border: 1px solid #ff5900; }
.cmtq-prev:hover { background: #fff3ec; }

/* Trigger button (popup) */
.cmtq-trigger { display: inline-flex; align-items: center; box-shadow: 0 13px 26px -14px rgba(255, 89, 0, 0.6); }

/* ---- Popup / modal ---- */
.cmtq-modal {
  position: fixed; inset: 0; z-index: 99999; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.cmtq-modal.is-open { display: flex; }
.cmtq-modal__overlay { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.55); backdrop-filter: blur(2px); }
.cmtq-modal__box {
  position: relative; z-index: 1; width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 18px; padding: 34px 26px 28px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.5); font-family: "Poppins", sans-serif;
  animation: cmtqPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmtq-modal__box .cmtq-header { margin-bottom: 22px; }
.cmtq-modal__close {
  position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: none; cursor: pointer;
  background: #f4f4f4; color: #111; border-radius: 50%; font-size: 22px; line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cmtq-modal__close:hover { background: #ffe6d8; color: #ff5900; }
.cmtq-modal__close:active { transform: scale(0.94); }

@keyframes cmtqPop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .cmtq-heading { font-size: 28px; }
  .cmtq-btns { flex-direction: column; }
  .cmtq-btn { width: 100%; }
  .cmtq-modal__box { padding: 30px 18px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .cmtq-modal__box { animation: none; }
  .cmtq-toast, .cmtq-btn { transition: opacity 0.2s ease; }
}
