/* =============================================================
   Concierge Dry Cleaners — Booking Wizard CSS
   3-step: Location+Services · Date+Details · Overview+Payment
   ============================================================= */

/* ── Page wrap ── */
.container {
	padding: 100px 20px;
    background: #F3F5F8;
}

.bw-page-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

.booking-wizard {
  font-family: 'DM Sans', sans-serif !important;
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
}

/* ── Progress bar ── */
.bw-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
}

.bw-step-label {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 4px;
  border-bottom: 3px solid #e5e7eb;
  color: #9ca3af;
  letter-spacing: 0.03em;
  transition: border-color 0.25s, color 0.25s;
}

.bw-step-label.active { border-color: #111827; color: #111827; }
.bw-step-label.done   { border-color: #6b7280; color: #6b7280; }

/* ── Panels ── */
.bw-panel { display: none; animation: bwFadeIn 0.2s ease; }
.bw-panel.active { display: block; }

@keyframes bwFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Headings ── */
.bw-heading {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
  font-family: 'DM Sans', sans-serif !important;
}

.bw-heading--services { margin-top: 32px; }

.bw-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 16px;
}

/* ── Section helper text (below headings) ── */
.bw-section-helper {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 20px;
  line-height: 1.5;
}

/* ── Field helper text (below inputs) ── */
.bw-helper-text {
  font-size: 12px;
  margin: 6px 0 0;
  line-height: 1.5;
    background-color: #4BB54305;
    padding: 8px 12px;
    border: 1px solid #4BB543;
    border-radius: 10px;
    color: #4BB543;
    font-weight: 500;
}

/* ── 2-column row layout ── */
.bw-row { margin-top: 0; }

.bw-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

/* Unit # narrow, street wide */
.bw-row--unit {
  grid-template-columns: 150px 1fr;
}

.bw-col { display: flex; flex-direction: column; }
.bw-col--grow { flex: 1; }

@media (max-width: 480px) {
  .bw-row--2col,
  .bw-row--unit { grid-template-columns: 1fr; }
	.container { padding: 0;}
}

/* ── Labels & inputs ── */
.bw-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 16px 0 6px;
}

.bw-optional { font-weight: 400; color: #9ca3af; }
.req         { color: #ef4444; margin-left: 2px; }

.bw-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d1d5db !important;
  border-radius: 8px !important;
  font-size: 15px;
  color: #111827;
  background: #fff;
  transition: border-color 0.15s;
  box-sizing: border-box;
  outline: none;
  font-family: 'DM Sans', sans-serif !important;
}

.bw-input:focus   { border-color: #111827 !important; }
.bw-input.bw-invalid {
  border-color: #ef4444 !important;
  background: #fff9f9;
}

.bw-field-error {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
}

.bw-field-error::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #ef4444;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

.bw-textarea {
  resize: vertical;
  min-height: 90px;
}

.bw-textarea--sm {
  min-height: 64px;
}

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

.bw-checkbox-group--3col .bw-checkbox-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 14px;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff;
  cursor: pointer;
  display: flex;
  transition: border-color 0.15s, background 0.15s;
}

.bw-checkbox-group--3col .bw-checkbox-card input[type="checkbox"] {
  display: none;
}

.bw-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bw-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #374151;
  transition: border-color 0.15s;
}

.bw-checkbox-group--3col .bw-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bw-checkbox-group--3col .bw-card-desc {
  font-size: 12px;
}

.bw-checkbox-group--3col .bw-checkbox-card:hover {
  border-color: #f87171 !important;
}

.bw-checkbox-group--3col .bw-checkbox-card:has(input:checked) {
  border-color: #D91212 !important;
  background: #fff5f5;
}

.bw-checkbox-group--3col .bw-checkbox-card:has(input:checked) .bw-card-icon {
  border-color: #fecaca;
}

@media (max-width: 540px) {
  .bw-checkbox-group--3col { grid-template-columns: 1fr; }
}
/* ── Checkbox service cards ──
.bw-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

 3-column grid layout for services 
.bw-checkbox-group--3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bw-checkbox-group--3col .bw-checkbox-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 14px;
}

.bw-checkbox-group--3col .bw-card-desc {
  font-size: 12px;
}

@media (max-width: 540px) {
  .bw-checkbox-group--3col {
    grid-template-columns: 1fr;
  }
}

.bw-checkbox-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.bw-checkbox-card:hover {
  border-color: #9ca3af !important;
  background: #f9fafb;
}

.bw-checkbox-card:has(input:checked) {
  border-color: #111827 !important;
}

.bw-checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #111827;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}

.bw-checkbox-card:has(input:checked) {
  border-color: #111827;
  background: #f9fafb;
}
*/
.bw-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bw-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}

.bw-card-desc {
  font-size: 13px;
  color: #6b7280;
}

/* ── Tooltip ── */
.bw-tooltip-wrap { position: relative; }

.bw-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 6px;
  position: relative;
  vertical-align: middle;
  user-select: none;
}

.bw-tooltip-text {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 8px;
  width: 260px;
  z-index: 99;
  pointer-events: none;
  white-space: normal;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.bw-tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #111827;
}

.bw-tooltip-icon:hover .bw-tooltip-text,
.bw-tooltip-icon:focus .bw-tooltip-text { display: block; }

/* ── Overview summary box ── */
.bw-overview {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 20px;
  margin-bottom: 28px;
}

.bw-overview-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin: 0 0 16px;
}

.bw-overview-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bw-overview-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.bw-ov-label {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  min-width: 90px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bw-ov-value {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
  word-break: break-word;
}

/* ── Payment method heading ── */
.bw-payment-heading {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
}

/* ── Payment option radio cards ── */
.bw-payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.bw-payment-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.bw-payment-card:hover {
  border-color: #9ca3af !important;
  background: #f9fafb;
}

.bw-payment-card:has(input:checked) {
  border-color: #111827 !important;
}

.bw-payment-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom radio dot */
.bw-pm-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}

.bw-pm-radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D91212;
  display: none;
}

.bw-payment-card:has(input:checked) {
  border-color: #111827;
  background: #f9fafb;
}

.bw-payment-card:has(input:checked) .bw-pm-radio-dot {
  border-color: #D91212;
}

.bw-payment-card:has(input:checked) .bw-pm-radio-dot::after {
  display: block;
}

.bw-pm-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.bw-pm-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bw-pm-name {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}

.bw-pm-desc {
  font-size: 13px;
  color: #6b7280;
}

/* ── Card mock (preview only) ── */
.bw-card-mock {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bw-card-row { display: flex; gap: 12px; }

.bw-card-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.bw-card-field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bw-card-field--full { width: 100%; }

.bw-card-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bw-card-input-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 14px;
  background: #f9fafb;
  min-height: 44px;
  transition: border-color 0.15s;
}

.bw-card-placeholder {
  font-size: 15px;
  color: #9ca3af;
  font-family: 'DM Sans', sans-serif !important;
  letter-spacing: 0.05em;
}

.bw-card-icons { display: flex; gap: 6px; align-items: center; }

/* ── Stripe element wrapper ── */
#bw-stripe-wrap {
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
}

.bw-stripe-note {
  font-size: 12px;
  color: #9ca3af;
  margin: 12px 0 0;
  line-height: 1.5;
}

.bw-stripe-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #dc2626;
  margin-top: 12px;
}

/* ── Nav buttons ── */
.bw-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

.bw-nav-submit { margin-top: 24px; }

.bw-btn-next,
.bw-btn-back,
.bw-btn-submit {
  padding: 11px 24px !important;
  border-radius: 5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border: none !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 16px !important;
  line-height: 1 !important;
  transition: background 0.15s, color 0.15s;
}

.bw-btn-next,
.bw-btn-submit {
  background: #D91212 !important;
  color: #fff !important;
  margin-left: auto;
}

.bw-btn-next:hover,
.bw-btn-submit:hover { background: #520000 !important; }

.bw-btn-next:disabled,
.bw-btn-submit:disabled { background: #9ca3af !important; cursor: not-allowed !important; }

.bw-btn-back {
  background: transparent !important;
  color: #555 !important;
  border: none !important;
  box-shadow: none !important;
}

.bw-btn-back:hover { color: #D91212 !important; background: transparent !important; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .bw-step-label { font-size: 10px; padding: 6px 2px; }
  .bw-heading     { font-size: 18px; }
  .bw-overview    { padding: 14px; }
  .bw-ov-label    { min-width: 72px; }
}
