/* ============================================================
   WES intake flows: workshop signup, starting a website,
   digital marketing questionnaire, and the quote.

   Everything is scoped under .wi and prefixed wi- on purpose.
   Generic names (.steps, .card, .checklist) have collided with
   blog styles on this site before.
   ============================================================ */

.wi { --wi-ring: 0 0 0 3px rgba(3,129,204,.25); max-width: 680px; margin: 0 auto; font-family: var(--font-body); color: var(--gray-900); }
.wi * { box-sizing: border-box; }

.wi-card { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 34px 34px 28px; }
@media (max-width: 600px) { .wi-card { padding: 24px 18px 20px; border-radius: var(--r-lg); } }

/* progress */
.wi-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.wi-progress-bar { flex: 1; height: 6px; background: var(--gray-100); border-radius: var(--r-pill); overflow: hidden; }
.wi-progress-fill { height: 100%; background: var(--blue-600); border-radius: var(--r-pill); transition: width .3s ease; }
.wi-progress-label { font-size: 13px; color: var(--gray-500); white-space: nowrap; font-weight: 600; }

/* a screen */
.wi-screen h2, .wi-screen h3 { font-family: var(--font-heading); color: var(--blue-900); font-size: 24px; line-height: 1.25; margin: 0 0 8px; outline: none; }
@media (max-width: 600px) { .wi-screen h2, .wi-screen h3 { font-size: 21px; } }
.wi-intro { color: var(--gray-700); font-size: 16px; line-height: 1.6; margin: 0 0 22px; }

.wi-field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.wi-field > legend, .wi-label { display: block; font-weight: 600; font-size: 16px; color: var(--gray-900); margin: 0 0 6px; padding: 0; }
.wi-opt { font-weight: 400; color: var(--gray-500); font-size: 14px; }
.wi-help { color: var(--gray-500); font-size: 14px; line-height: 1.5; margin: 0 0 10px; }

.wi input[type=text], .wi input[type=email], .wi input[type=tel], .wi textarea, .wi select {
  width: 100%; font: inherit; font-size: 16px; color: var(--gray-900); background: var(--white);
  border: 1.5px solid var(--gray-300); border-radius: var(--r-md); padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.wi textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.wi input:focus, .wi textarea:focus, .wi select:focus { outline: none; border-color: var(--blue-600); box-shadow: var(--wi-ring); }
.wi [aria-invalid="true"] { border-color: #c2410c !important; }

/* choice cards for radio and checkbox */
.wi-choices { display: grid; gap: 10px; }
.wi-choice { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--gray-300); border-radius: var(--r-md); background: var(--white); cursor: pointer; line-height: 1.45; font-size: 15.5px; transition: border-color .15s, background .15s; }
.wi-choice:hover { border-color: var(--blue-500); background: var(--blue-50); }
.wi-choice input { position: absolute; opacity: 0; pointer-events: none; }
.wi-mark { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 2px solid var(--gray-300); background: var(--white); display: grid; place-items: center; transition: all .15s; }
.wi-choice input[type=radio] + .wi-mark { border-radius: 50%; }
.wi-choice input[type=checkbox] + .wi-mark { border-radius: 5px; }
.wi-choice input:checked + .wi-mark { border-color: var(--blue-600); background: var(--blue-600); }
.wi-choice input[type=radio]:checked + .wi-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.wi-choice input[type=checkbox]:checked + .wi-mark::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); }
.wi-choice:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); }
.wi-choice:has(input:focus-visible) { box-shadow: var(--wi-ring); }

/* the reassurance that appears when someone picks "not sure" */
.wi-nudge { display: none; margin: 10px 0 0; padding: 10px 14px; background: var(--yellow-50); border-left: 3px solid var(--yellow-500); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; color: var(--gray-700); }
.wi-nudge.is-on { display: block; }

/* nav */
.wi-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap-reverse; }
.wi-back { background: none; border: 0; color: var(--gray-500); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; padding: 10px 4px; }
.wi-back:hover { color: var(--blue-700); }
.wi-back[hidden] { display: none; }
.wi-nav .btn { min-width: 160px; }
.wi-nav .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (max-width: 480px) { .wi-nav .btn { width: 100%; } .wi-back { width: 100%; text-align: center; } }

.wi-error { display: none; margin: 18px 0 0; padding: 12px 14px; border-radius: var(--r-md); background: #fff1ec; border: 1px solid #f5b8a0; color: #9a3412; font-size: 15px; line-height: 1.5; }
.wi-error.is-on { display: block; }
.wi-fineprint { margin: 18px 0 0; font-size: 13px; color: var(--gray-500); line-height: 1.55; text-align: center; }
.wi-fineprint a { color: var(--blue-700); }

/* result screens */
.wi-result h2 { margin-bottom: 10px; }
.wi-result p { color: var(--gray-700); line-height: 1.65; margin: 0 0 14px; font-size: 16px; }
.wi-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 6px; }
.wi-actions .btn { flex: 1 1 200px; }
.wi-heard { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--r-md); padding: 16px 18px; margin: 18px 0; }
.wi-heard-h { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-700); margin: 0 0 8px !important; }
.wi-heard p { margin: 0 !important; font-size: 15px !important; }

/* the "one more thing" offer after a workshop signup */
.wi-offer { margin-top: 26px; border: 2px solid var(--blue-100); background: linear-gradient(180deg, var(--blue-50), #fff); border-radius: var(--r-lg); padding: 22px 22px 18px; }
.wi-offer h3 { font-family: var(--font-heading); color: var(--blue-900); font-size: 20px; margin: 0 0 8px; }
.wi-offer ul { margin: 10px 0 14px; padding-left: 20px; color: var(--gray-700); line-height: 1.6; font-size: 15px; }
.wi-offer li { margin-bottom: 4px; }

/* recommendation (marketing flow) */
.wi-rec { border: 2px solid var(--blue-600); border-radius: var(--r-lg); padding: 20px 22px; margin: 18px 0; background: #fff; }
.wi-rec-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-900); background: var(--yellow-500); border-radius: var(--r-pill); padding: 4px 10px; margin-bottom: 10px; }
.wi-rec h3 { font-family: var(--font-heading); color: var(--blue-900); font-size: 21px; margin: 0 0 8px; }
.wi-rec-price { font-weight: 700; color: var(--blue-700); margin: 0 0 10px !important; }
.wi-also { border: 1px solid var(--gray-300); border-radius: var(--r-md); padding: 14px 16px; margin: 12px 0; }
.wi-also strong { color: var(--blue-900); }

/* ------------------------------------------------------------
   The quote. Rendered on screen and, with inline styles, in the
   email. Keep the two visually in step.
   ------------------------------------------------------------ */
.wi-quote { border: 1px solid var(--gray-300); border-radius: var(--r-lg); overflow: hidden; margin: 20px 0; background: #fff; box-shadow: var(--shadow-md); }
.wi-quote-head { background: var(--blue-900); color: #fff; padding: 22px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wi-quote-head h3 { font-family: var(--font-heading); color: #fff; font-size: 20px; margin: 0 0 4px; }
.wi-quote-head p { color: var(--blue-100) !important; margin: 0 !important; font-size: 14px !important; }
.wi-quote-no { text-align: right; font-size: 13px; color: var(--blue-100); line-height: 1.5; }
.wi-quote-body { padding: 20px 24px 6px; }
.wi-qrow { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); font-size: 15.5px; }
.wi-qrow:last-child { border-bottom: 0; }
/* Direct children only: the label span holds a nested .wi-qsub span, and a
   descendant selector gave that sub-text nowrap, which pushed the amounts
   off the right edge. */
.wi-qrow > span:first-child { flex: 1 1 auto; min-width: 0; }
.wi-qrow > span:last-child { flex: none; font-weight: 700; color: var(--gray-900); white-space: nowrap; text-align: right; }
.wi-qrow.is-total { border-top: 2px solid var(--gray-900); border-bottom: 0; margin-top: 4px; font-size: 18px; }
.wi-qrow.is-total > span { font-weight: 800; color: var(--blue-900); }
@media (max-width: 480px) { .wi-qrow { font-size: 14.5px; } .wi-quote-body, .wi-quote-head, .wi-quote-foot { padding-left: 16px; padding-right: 16px; } }
.wi-qrow .wi-qsub { display: block; font-size: 13.5px; color: var(--gray-500); font-weight: 400; margin-top: 2px; }
.wi-quote-foot { background: var(--gray-50); padding: 16px 24px; font-size: 13.5px; color: var(--gray-500); line-height: 1.55; }
.wi-tiers { display: grid; gap: 10px; margin: 6px 0 14px; }
.wi-tier { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: var(--r-md); font-size: 15px; }
.wi-tier b { color: var(--blue-900); white-space: nowrap; }

.wi-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wi-spin .7s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes wi-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wi-progress-fill, .wi-choice { transition: none; } .wi-spin { animation-duration: 2s; } }
