/* Guided intake wizard (PRD §4.1) — progressively enhances the flat lead form
 * on operator_site.html, location_page.html, and embed_form.html. Reads the
 * same --ink/--canvas/--accent/--accent-dark/--olive custom properties each
 * page already defines, so it inherits the operator's theme automatically. */

.iw-hidden {
  display: none !important;
}

.iw-wizard {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.iw-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}

.iw-progress-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}

.iw-progress-dot.iw-done,
.iw-progress-dot.iw-active {
  background: var(--accent, #7cc142);
}

.iw-step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--olive, #6b7a5e);
  margin: 0;
}

.iw-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iw-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.iw-service-card {
  border: 2px solid var(--ink, #1a1a1a);
  border-radius: 10px;
  background: var(--canvas, #fff);
  padding: 12px 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  color: var(--ink, #1a1a1a);
  line-height: 1.25;
  transition: background 0.15s ease, transform 0.1s ease;
}

.iw-service-card:hover {
  background: color-mix(in srgb, var(--accent, #7cc142) 18%, var(--canvas, #fff));
}

.iw-service-card.iw-selected {
  background: var(--accent, #7cc142);
  border-color: var(--accent-dark, #4f8a1f);
}

.iw-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.iw-wizard .form-row,
.iw-wizard .row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.iw-field label,
.iw-wizard .form-row label,
.iw-wizard .row label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--olive, #6b7a5e);
  margin-bottom: 0;
}

.iw-field select,
.iw-field input[type="date"],
.iw-field input[type="email"],
.iw-field input[type="text"],
.iw-field input[type="tel"],
.iw-field input[type="number"],
.iw-field input:not([type]),
.iw-field textarea,
.iw-wizard .form-row input,
.iw-wizard .form-row select,
.iw-wizard .form-row textarea,
.iw-wizard .row input,
.iw-wizard .row select,
.iw-wizard .row textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 10px;
  border: 2px solid var(--ink, #1a1a1a);
  border-radius: 8px;
  background: var(--canvas, #fff);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink, #1a1a1a);
  min-height: 48px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.iw-field input:focus,
.iw-field select:focus,
.iw-field textarea:focus,
.iw-wizard .form-row input:focus,
.iw-wizard .form-row select:focus,
.iw-wizard .form-row textarea:focus,
.iw-wizard .row input:focus,
.iw-wizard .row select:focus,
.iw-wizard .row textarea:focus {
  outline: 3px solid var(--accent, #a3e635);
  outline-offset: 1px;
}

.iw-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.iw-photo-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--ink, #1a1a1a);
}

.iw-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iw-photo-thumb button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.iw-photo-add {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 2px dashed var(--ink, #1a1a1a);
  background: transparent;
  color: var(--ink, #1a1a1a);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iw-hint {
  font-size: 11px;
  color: var(--olive, #6b7a5e);
  margin: 0;
}

.iw-error {
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  margin: 0;
}

.iw-nav {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.iw-btn-back {
  flex: 0 0 auto;
  padding: 12px 16px;
  background: transparent;
  color: var(--ink, #1a1a1a);
  border: 2px solid var(--ink, #1a1a1a);
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.iw-btn-next {
  flex: 1;
  padding: 12px;
  background: var(--accent, #7cc142);
  color: var(--ink, #1a1a1a);
  border: 2px solid var(--ink, #1a1a1a);
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.iw-btn-next:hover,
.iw-btn-back:hover {
  filter: brightness(0.97);
}
