/* Project request wizard. Builds on the tokens in site.css. */

body.wz-page { padding-bottom: 0; }

.wz {
  max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}

/* Header */
.wz-head { padding: 14px 20px 14px; display: grid; gap: 10px; position: sticky; top: 0; z-index: 5; background: var(--bg); }
.wz-bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.wz-back {
  background: none; border: none; padding: 8px 12px 8px 0; min-height: 44px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--charcoal); cursor: pointer;
}
.wz-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.wz-steplabel { font-size: 14px; color: var(--text-muted); }
.wz-brandline { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.wz-progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.wz-progress-fill { height: 8px; width: 20%; background: var(--bronze); border-radius: 999px; transition: width .25s ease; }
@media (prefers-reduced-motion: reduce) { .wz-progress-fill { transition: none; } }

/* Content */
.wz-main { flex: 1; padding: 6px 20px 24px; }
.wz-step { display: grid; gap: 14px; align-content: start; }
.wz-step[data-step="6"] { padding-top: 24px; gap: 16px; }
.wz-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.wz-title:focus { outline: none; }
.wz-title-lg { font-size: 30px; }
.wz-lede { margin: 0 0 4px; font-size: 15px; color: var(--text-body); line-height: 1.5; }
.wz-small { margin: 0; font-size: 14px; color: var(--text-body); line-height: 1.45; }
.wz-small a { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 12px 0; }
.wz-card { background: var(--card); border-radius: 16px; padding: 16px; font-size: 14px; color: var(--text-body); line-height: 1.45; }
.wz-tip { display: grid; gap: 6px; }
.wz-tip-title { font-weight: 600; color: var(--charcoal); }

/* Step 1 options */
.wz-options { display: grid; gap: 10px; }
.wz-option {
  min-height: 56px; border-radius: 16px; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 2px solid var(--charcoal); background: #fff; color: var(--charcoal);
  font: inherit; font-size: 17px; font-weight: 600; text-align: left; cursor: pointer;
}
.wz-option[aria-pressed="true"] { background: var(--charcoal); color: var(--bg); }
.wz-check {
  width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid #8a8478;
  display: flex; align-items: center; justify-content: center;
}
.wz-check svg { opacity: 0; }
.wz-option[aria-pressed="true"] .wz-check { background: var(--bg); border-color: var(--bg); }
.wz-option[aria-pressed="true"] .wz-check svg { opacity: 1; }

/* Step 2 photos */
.wz-drop {
  height: 132px; border: 2px dashed #8a8478; background: #fff; border-radius: 20px;
  display: grid; align-content: center; justify-items: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px; color: var(--charcoal); cursor: pointer;
}
.wz-drop:hover { border-color: var(--charcoal); }
.wz-drop[disabled] { opacity: .55; cursor: default; }
.wz-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wz-thumbs:empty { display: none; }
.wz-thumb {
  position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--hatch-a) 0 10px, var(--hatch-b) 10px 20px);
}
.wz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wz-thumb-state {
  position: absolute; inset: auto 0 0 0; padding: 6px 8px;
  background: rgba(52, 52, 52, .82); color: #fff; font-size: 12px; font-weight: 600; text-align: center;
}
.wz-thumb-state button {
  background: none; border: none; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; padding: 6px; min-height: 32px;
}
.wz-thumb-remove {
  position: absolute; top: 0; right: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0;
}
.wz-thumb-remove span {
  width: 28px; height: 28px; border-radius: 999px; background: rgba(52, 52, 52, .85); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1;
}
.wz-photocount { margin: 0; font-size: 14px; color: #2f6b4f; font-weight: 600; }
.wz-photocount:empty { display: none; }

/* Step 3 chips and fields */
.wz-field { display: grid; gap: 8px; }
.wz-step[data-step="3"] { gap: 20px; }
.wz-label { font-size: 15px; font-weight: 600; }
.wz-optional { font-weight: 400; color: var(--text-muted); }
.wz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-chip {
  min-height: 44px; border-radius: 999px; padding: 0 18px;
  border: 2px solid var(--charcoal); background: #fff; color: var(--charcoal);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.wz-chip[aria-pressed="true"] { background: var(--charcoal); color: var(--bg); }
.wz-main input[type="text"], .wz-main input[type="tel"], .wz-main input[type="email"], .wz-main textarea {
  width: 100%; border: 1px solid #8a8478; border-radius: var(--r-control); background: #fff;
  font: inherit; font-size: 16px; color: var(--charcoal);
}
.wz-main input[type="text"], .wz-main input[type="tel"], .wz-main input[type="email"] { height: 48px; padding: 0 14px; }
.wz-main textarea { padding: 12px 14px; resize: vertical; min-height: 96px; }
.wz-main input::placeholder, .wz-main textarea::placeholder { color: #6b6b65; }
.wz-main [aria-invalid="true"] { border-color: #a3341f; border-width: 2px; }
.wz-fielderr { margin: 0; font-size: 14px; color: #a3341f; font-weight: 600; }
.wz-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Step 5 summary */
.wz-summary { padding: 6px 18px; display: grid; font-size: 16px; }
.wz-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #ece7dd; }
.wz-row:last-child { border-bottom: none; }
.wz-row-k { font-size: 13px; color: var(--text-muted); }
.wz-row-v { font-weight: 600; color: var(--charcoal); overflow-wrap: anywhere; }
.wz-edit {
  background: none; border: none; color: var(--bronze); font: inherit; font-weight: 600; font-size: 15px;
  min-height: 44px; min-width: 44px; cursor: pointer;
}
.wz-edit:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Done */
.wz-done-icon { width: 56px; height: 56px; border-radius: 999px; background: #2f6b4f; display: flex; align-items: center; justify-content: center; }
.wz-next-steps { display: grid; gap: 10px; font-size: 15px; color: var(--charcoal); padding: 18px; border-radius: 20px; }
.wz-next-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.wz-step[data-step="6"] .btn { justify-self: start; }

/* Turnstile (only visible when it needs a tap) */
.wz-turnstile { margin-top: 16px; display: flex; justify-content: center; }
.wz-turnstile:empty { margin: 0; }
.wz-verify-hint { margin: 16px 0 0; font-size: 15px; font-weight: 600; color: var(--charcoal); text-align: center; }

/* Footer button */
.wz-foot {
  position: sticky; bottom: 0; z-index: 5;
  padding: 12px 20px calc(18px + env(safe-area-inset-bottom));
  background: var(--bg); box-shadow: 0 -1px 0 var(--line);
  display: grid; gap: 8px;
}
.wz-next {
  width: 100%; height: 56px; border: none; border-radius: 14px;
  font: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
  background: var(--bronze); color: #fff;
}
.wz-next:hover { background: var(--bronze-dark); }
.wz-next[aria-disabled="true"] { background: var(--line-strong); color: var(--text-body); cursor: default; }
.wz-error { margin: 0; font-size: 14px; color: #a3341f; font-weight: 600; text-align: center; }
.wz-error a { text-decoration: underline; }

@media (min-width: 641px) {
  .wz-head { padding-top: 28px; }
  .wz-foot { border-radius: 20px 20px 0 0; }
}
