/* ═══════════════════════════════════════════════════
   JunkHive Pros — Booking Widget
   Uses the color/spacing tokens from css/styles.css (:root vars) so
   it matches the rest of the site without redefining a palette.
   ═══════════════════════════════════════════════════ */
.bw {
  max-width: 640px;
  margin: 0 auto;
  background: var(--light-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 24px 24px;
}
@media (max-width: 560px) {
  .bw { padding: 20px 16px 16px; border-radius: var(--radius-md); }
}

.bw-loading, .bw-error {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted-light);
  font-family: var(--font-body);
}
.bw-error a { color: var(--green-700); font-weight: 600; }

/* Progress */
.bw-progress { height: 6px; border-radius: 999px; background: rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 10px; }
.bw-progress-bar { height: 100%; background: linear-gradient(90deg, var(--green-600), var(--green-500)); transition: width var(--transition); }
.bw-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 4px; }
.bw-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,0.15); }
.bw-dot.active { background: var(--green-600); transform: scale(1.3); }
.bw-dot.done { background: var(--green-300); }
.bw-step-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted-light);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.bw-h {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 0 0 16px;
}
.bw-hint { font-size: 0.85rem; color: var(--text-muted-light); margin: 6px 0 16px; }

.bw-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted-light);
  margin: 14px 0 6px;
}
.bw-input, .bw-select, .bw-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: var(--light);
  font-family: var(--font-body);
  font-size: 16px; /* under 16px makes iOS Safari zoom the page on focus */
  min-height: 48px;
  color: var(--text-dark);
  transition: border-color var(--transition);
}
.bw-input:focus, .bw-select:focus, .bw-textarea:focus {
  outline: none;
  border-color: var(--green-600);
}
.bw-textarea { resize: vertical; min-height: 84px; }
.bw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .bw-row { grid-template-columns: 1fr; } }

.bw-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Tier cards */
.bw-tiers { display: grid; gap: 10px; margin-top: 16px; }
.bw-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--light);
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
}
.bw-tier:hover { border-color: var(--green-500); }
.bw-tier.active { border-color: var(--green-600); background: rgba(22,163,74,0.06); box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }
.bw-tier-label { font-weight: 600; color: var(--text-dark); font-size: 0.92rem; }
.bw-tier-price { font-weight: 700; color: var(--green-700); }

/* Checkboxes / add-ons */
.bw-checks { display: grid; gap: 10px; margin: 4px 0 6px; }
.bw-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
}
.bw-check input { width: 17px; height: 17px; accent-color: var(--green-600); flex-shrink: 0; }
.bw-addon-price { margin-left: auto; color: var(--text-muted-light); font-weight: 600; font-size: 0.85rem; }

/* Time windows */
.bw-windows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 480px) { .bw-windows { grid-template-columns: 1fr; } }
.bw-window {
  padding: 12px 8px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}
.bw-window:hover { border-color: var(--green-500); }
.bw-window.active { border-color: var(--green-600); background: rgba(22,163,74,0.08); color: var(--green-700); }

/* Summary / review */
.bw-summary { background: var(--light); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 12px; }
.bw-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; color: var(--text-dark); }
.bw-total { border-top: 1px solid var(--border-light); margin-top: 4px; padding-top: 10px; font-weight: 700; font-size: 1rem; color: var(--green-700); }

/* Errors */
.bw-errors { list-style: none; padding: 10px 14px; margin: 14px 0 0; background: rgba(217,119,6,0.1); border: 1px solid var(--amber-500); border-radius: var(--radius-sm); }
.bw-errors li { font-size: 0.85rem; color: var(--amber-600); }
.bw-errors li + li { margin-top: 4px; }

/* Actions */
.bw-actions { display: flex; gap: 10px; margin-top: 22px; }
.bw-btn {
  flex: 1;
  padding: 13px 20px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.bw-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.bw-btn-primary { background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: white; box-shadow: 0 4px 16px rgba(22,163,74,0.3); }
.bw-btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
.bw-btn-outline { background: transparent; border: 1.5px solid var(--border-light); color: var(--text-dark); flex: 0.6; }
.bw-btn-outline:hover:not(:disabled) { border-color: var(--green-500); }

/* Confirmation */
.bw-confirm { text-align: center; padding: 12px 4px; }
.bw-confirm-icon { font-size: 2.4rem; margin-bottom: 8px; }
.bw-confirm p { color: var(--text-dark); margin: 6px 0; }

/* Photo list */
.bw-photos { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.bw-photos li { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; padding: 8px 12px; background: var(--light); border-radius: var(--radius-sm); color: var(--text-dark); }
.bw-photo-x { background: none; border: none; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--text-muted-light); padding: 0 4px; }

/* Running estimate (steps 2-5) */
.bw-running {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.25);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dark);
}
.bw-running strong { color: var(--green-700); }
.bw-h:focus { outline: none; }

/* Photo picker: style the native button to match the widget */
.bw-input[type="file"] { padding: 8px; cursor: pointer; }
.bw-input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--green-600);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.bw-input[type="file"]::file-selector-button:hover { background: var(--green-700); }
