/* ─────────────────────────────────────────
   Concierge Dry Cleaners · Schedule a Pickup
   schedule.css
───────────────────────────────────────── */

:root {
  --bw-red:       #C01B1B;
  --bw-red-h:     #a01616;
  --bw-red-light: #fef2f2;
  --bw-red-mid:   #fca5a5;
  --bw-radius:    8px;
  --bw-radius-lg: 12px;
}

/* ── Page wrapper ── */
.bw-page-bg {
  background: #f5f5f5;
  padding: 2.5rem 1.25rem 4rem;
  min-height: 100vh;
}

.bw-three-col {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 1.25rem;
  max-width: 1020px;
  margin: 0 auto;
  align-items: start;
}

/* ── Shared side card ── */
.bw-side-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--bw-radius-lg);
  padding: 16px;
  margin-bottom: 10px;
}
.bw-side-card:last-child { margin-bottom: 0; }

.bw-side-card-title {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── Sidebar stepper ── */
.bw-sidebar-steps { display: flex; flex-direction: column; }

.bw-sidebar-step { display: flex; gap: 10px; align-items: flex-start; }

.bw-ss-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }

.bw-ss-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 1.5px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.bw-ss-dot span { font-size: 11px; font-weight: 600; color: #9ca3af; transition: color 0.2s; }

.bw-ss-line {
  width: 1px;
  height: 26px;
  background: #e5e7eb;
  margin: 3px auto;
  transition: background 0.2s;
}

.bw-ss-text { padding: 2px 0 10px; }
.bw-ss-text p    { font-size: 12px; font-weight: 600; color: #9ca3af; transition: color 0.2s; }
.bw-ss-text span { font-size: 11px; color: #d1d5db; transition: color 0.2s; }

/* Active step */
.bw-sidebar-step.active .bw-ss-dot { background: var(--bw-red); border-color: var(--bw-red); }
.bw-sidebar-step.active .bw-ss-dot span { color: #fff; }
.bw-sidebar-step.active .bw-ss-text p { color: #111827; }
.bw-sidebar-step.active .bw-ss-text span { color: #6b7280; }

/* Completed step */
.bw-sidebar-step.completed .bw-ss-dot { background: #16a34a; border-color: #16a34a; }
.bw-sidebar-step.completed .bw-ss-dot span { color: #fff; }
.bw-sidebar-step.completed .bw-ss-line { background: #16a34a; }
.bw-sidebar-step.completed .bw-ss-text p { color: #16a34a; }
.bw-sidebar-step.completed .bw-ss-text span { color: #6b7280; }

/* ── Left: trust ── */
.bw-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.bw-trust-item:last-child { margin-bottom: 0; }
.bw-trust-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--bw-radius);
  background: var(--bw-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bw-trust-icon i { font-size: 14px; color: var(--bw-red); }
.bw-trust-text p  { font-size: 12px; font-weight: 600; color: #111827; margin-bottom: 1px; }
.bw-trust-text span { font-size: 11px; color: #6b7280; line-height: 1.5; }

/* ── Left: how it works ── */
.bw-how-steps { display: flex; flex-direction: column; }
.bw-how-item  { display: flex; gap: 10px; align-items: flex-start; }
.bw-how-col   { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.bw-how-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bw-red);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bw-how-line {
  width: 1px;
  height: 22px;
  background: #e5e7eb;
  margin: 3px auto;
}
.bw-how-text { padding-top: 1px; padding-bottom: 4px; }
.bw-how-text p    { font-size: 12px; font-weight: 600; color: #111827; }
.bw-how-text span { font-size: 11px; color: #6b7280; }

/* ── Right: reviews ── */
.bw-stars { display: flex; gap: 2px; margin-bottom: 8px; }
.bw-stars i { font-size: 13px; color: #f59e0b; }
.bw-review-text {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 10px;
}
.bw-reviewer { display: flex; align-items: center; gap: 8px; }
.bw-reviewer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bw-red-light);
  color: var(--bw-red);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bw-reviewer-avatar--blue { background: #eff6ff; color: #1d4ed8; }
.bw-reviewer-name { font-size: 11px; font-weight: 600; color: #111827; }
.bw-reviewer-meta { font-size: 10px; color: #9ca3af; }

/* ── Right: guarantees ── */
.bw-guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.bw-guarantee-item:last-child { margin-bottom: 0; }
.bw-guarantee-item i { font-size: 14px; color: var(--bw-red); flex-shrink: 0; }
.bw-guarantee-item span { font-size: 11px; color: #4b5563; line-height: 1.4; }

/* ── Right: service areas ── */
.bw-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.bw-area-tags span {
  font-size: 10px;
  color: #4b5563;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 3px 9px;
}

/* ══════════════════════════════════════════
   FORM SHELL
══════════════════════════════════════════ */
.bw-form-shell {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--bw-radius-lg);
  overflow: hidden;
}

.bw-form-hdr {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}
.bw-form-hdr-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}
.bw-form-hdr-sub {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

/* ── Progress bar — hidden on desktop, visible on mobile ── */
.bw-progress {
  display: none; /* hidden when sidebar stepper is shown */
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}

.bw-step-label {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.bw-step-label.active {
  color: var(--bw-red);
  border-bottom-color: var(--bw-red);
  font-weight: 600;
}
.bw-step-label.completed {
  color: #16a34a;
  border-bottom-color: #16a34a;
}

/* On mobile, show the horizontal bar and hide the sidebar stepper card */
@media (max-width: 900px) {
  .bw-progress { display: flex; }
  .bw-steps-card { display: none; }
}

/* ── Panels ── */
.bw-panel        { display: none; padding: 1.5rem; }
.bw-panel.active { display: block; }

/* ── Headings ── */
.bw-heading {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px;
}
.bw-heading--services { margin-top: 1.5rem; }

.bw-section-helper {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ── Labels ── */
.bw-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 5px;
  margin-top: 14px;
}
.bw-label:first-child,
.bw-row .bw-label { margin-top: 0; }
.bw-optional {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #9ca3af;
}
.req { color: var(--bw-red); }

/* ── Inputs ── */
.bw-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: var(--bw-radius);
  font-size: 13px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.bw-input:focus {
  border-color: var(--bw-red);
  box-shadow: 0 0 0 3px rgba(192, 27, 27, 0.1);
}
.bw-input::placeholder { color: #d1d5db; font-size: 12px; }

.bw-textarea         { height: 80px; padding: 10px 12px; resize: none; }
.bw-textarea--sm     { height: 64px; }

/* ── Helper text ── */
.bw-helper-text {
  font-size: 11px;
  color: var(--bw-red);
  background: var(--bw-red-light);
  border: 1px solid var(--bw-red-mid);
  border-radius: var(--bw-radius);
  padding: 8px 12px;
  margin-top: 8px;
  line-height: 1.55;
}

/* ── Row layouts ── */
.bw-row {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
}
.bw-row--2col { grid-template-columns: 1fr 1fr; }
.bw-row--unit { grid-template-columns: 120px 1fr; }
.bw-col--grow { flex: 1; }

/* ── Service cards ── */
.bw-checkbox-group--3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.bw-checkbox-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: var(--bw-radius);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  user-select: none;
}
.bw-checkbox-card:hover {
  border-color: var(--bw-red);
  background: var(--bw-red-light);
}
.bw-checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.bw-checkbox-card input[type="checkbox"]:checked ~ .bw-card-top .bw-card-icon {
  background: #fee2e2;
}
.bw-checkbox-card input[type="checkbox"]:checked ~ .bw-card-top .bw-card-icon i {
  color: var(--bw-red);
}
.bw-checkbox-card:has(input:checked) {
  border-color: var(--bw-red);
  border-width: 1.5px;
  background: var(--bw-red-light);
}

.bw-card-top { margin-bottom: 8px; }
.bw-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--bw-radius);
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.bw-card-icon i { font-size: 15px; color: #6b7280; transition: color 0.15s; }

.bw-card-body   { display: flex; flex-direction: column; gap: 2px; }
.bw-card-title  { font-size: 12px; font-weight: 600; color: #111827; }
.bw-card-desc   { font-size: 11px; color: #6b7280; line-height: 1.5; }

/* Error messages */
.bw-service-error,
.bw-payment-error {
  font-size: 11px;
  color: var(--bw-red);
  display: block;
  margin-bottom: 6px;
}

/* ── Overview (Step 3) ── */
.bw-overview {
  border: 1px solid #e5e7eb;
  border-radius: var(--bw-radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.bw-overview-title {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  padding: 10px 14px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.bw-overview-grid  { display: flex; flex-direction: column; }
.bw-overview-row   {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 14px;
  border-bottom: 1px solid #f3f4f6;
  gap: 12px;
}
.bw-overview-row:last-child { border-bottom: none; }
.bw-ov-label { font-size: 11px; color: #9ca3af; flex-shrink: 0; }
.bw-ov-value { font-size: 12px; font-weight: 500; color: #111827; text-align: right; }

/* ── Payment method ── */
.bw-payment-heading {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
}
.bw-payment-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem; }

.bw-payment-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--bw-radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.bw-payment-card:hover { border-color: var(--bw-red); background: var(--bw-red-light); }
.bw-payment-card:has(input:checked) { border-color: var(--bw-red); border-width: 1.5px; background: var(--bw-red-light); }
.bw-payment-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.bw-pm-radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}
.bw-payment-card:has(input:checked) .bw-pm-radio-dot {
  border-color: var(--bw-red);
  background: var(--bw-red);
  box-shadow: inset 0 0 0 3px #fff;
}
.bw-pm-icon { font-size: 18px; flex-shrink: 0; color: #6b7280; }
.bw-pm-body { display: flex; flex-direction: column; gap: 2px; }
.bw-pm-name { font-size: 13px; font-weight: 600; color: #111827; }
.bw-pm-desc { font-size: 11px; color: #6b7280; }

/* Stripe */
.bw-stripe-note {
  font-size: 11px;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--bw-radius);
  padding: 10px 12px;
  margin-top: 10px;
  line-height: 1.6;
}
.bw-stripe-error { font-size: 12px; color: var(--bw-red); margin-top: 8px; }

/* ── Nav buttons ── */
.bw-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
}
.bw-nav-submit { justify-content: space-between; }

.bw-btn-next,
.bw-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bw-red);
  color: #fff;
  border: none;
  border-radius: var(--bw-radius);
  padding: 0 20px;
  height: 40px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.bw-btn-next:hover,
.bw-btn-submit:hover  { background: var(--bw-red-h); }
.bw-btn-next:active,
.bw-btn-submit:active { transform: scale(0.98); }

.bw-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: var(--bw-radius);
  padding: 0 16px;
  height: 40px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.bw-btn-back:hover { border-color: #9ca3af; color: #374151; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .bw-three-col {
    grid-template-columns: 1fr;
  }
  .bw-left-panel,
  .bw-right-panel {
    display: none;
  }
}

@media (max-width: 520px) {
  .bw-row--2col,
  .bw-row--unit { grid-template-columns: 1fr; }
  .bw-checkbox-group--3col { grid-template-columns: 1fr; }
  .bw-panel { padding: 1rem; }
}
