/* ─── Luxury Booking System – Pixel-perfect CSS ────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500&display=swap');

#lbs-wrapper {
  --bg:          #eeece7;
  --surface:     #f5f3ee;
  --card-bg:     #f0ede7;
  --border:      #dedad4;
  --text:        #1a1a1a;
  --text-muted:  #888880;
  --accent:      #1a1a1a;
  --accent-inv:  #ffffff;
  --step-active: #1a1a1a;
  --step-done:   #1a1a1a;
  --step-idle:   #e0ddd8;
  --step-text-idle: #aaa;
  --green-bg:    #e8f5e9;
  --green-border:#c8e6c9;
  --green-text:  #2e7d32;
  --radius:      12px;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;

  font-family: var(--font-body);
  background:  var(--bg);
  color:        var(--text);
  max-width:    780px;
  margin:       0 auto;
  padding:      48px 32px;
  box-sizing:   border-box;
}

/* ── Step Indicator ─────────────────────────────────────────────────────── */
.lbs-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 44px;
  position: relative;
}

.lbs-steps::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.lbs-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.lbs-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  background: var(--step-idle);
  color: var(--step-text-idle);
  margin-bottom: 8px;
  transition: all 0.3s ease;
  border: none;
}

.lbs-step span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.lbs-step.active .lbs-step-circle,
.lbs-step.done .lbs-step-circle {
  background: var(--step-active);
  color: #fff;
}

.lbs-step.active span,
.lbs-step.done span {
  color: var(--text);
  font-weight: 500;
}

/* ── Panels ─────────────────────────────────────────────────────────────── */
.lbs-panel { display: block; }
.lbs-panel.hidden { display: none; }

.lbs-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

.lbs-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: -16px 0 28px 0;
}

.lbs-subtitle strong { color: var(--text); font-weight: 600; }

/* ── Service Cards ──────────────────────────────────────────────────────── */
.lbs-services { display: flex; flex-direction: column; gap: 16px; }

.lbs-service-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.lbs-service-card:hover {
  border-color: #bbb9b2;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.lbs-service-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.lbs-service-info h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--text);
}

.lbs-service-info p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.lbs-duration {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.lbs-duration svg { opacity: 0.6; }

.lbs-service-price {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  margin-left: 16px;
  padding-top: 2px;
}

/* ── Date & Time ────────────────────────────────────────────────────────── */
.lbs-field-group { margin-bottom: 28px; }

.lbs-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.lbs-label svg { opacity: 0.7; }

.lbs-input,
.lbs-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.lbs-input:focus,
.lbs-textarea:focus {
  border-color: #9a9890;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

input[type="date"].lbs-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' stroke-width='2'/%3E%3Cpath stroke-width='2' d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.lbs-textarea { resize: vertical; min-height: 100px; }

/* ── Time Slots ─────────────────────────────────────────────────────────── */
.lbs-time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lbs-time-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
}

.lbs-time-btn:hover {
  border-color: #aaa;
  background: #ebe8e2;
}

.lbs-time-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-inv);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.lbs-btn-row {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.lbs-btn-back {
  flex: 1;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
}

.lbs-btn-back:hover { background: #e8e5df; border-color: #bbb; }

.lbs-btn-next {
  flex: 2;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-inv);
  cursor: pointer;
  transition: all 0.18s ease;
}

.lbs-btn-next:hover { background: #333; }
.lbs-btn-next:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Summary Card ───────────────────────────────────────────────────────── */
.lbs-summary-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
}

.lbs-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  margin-bottom: 24px;
}

.lbs-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lbs-summary-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.lbs-summary-item strong,
.lbs-summary-client strong {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
}

.lbs-summary-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 22px;
}

.lbs-summary-client {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lbs-summary-client span {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ── Email Notice ───────────────────────────────────────────────────────── */
.lbs-email-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 8px;
  padding: 13px 18px;
  font-size: 13.5px;
  color: var(--green-text);
  margin-bottom: 8px;
}

.lbs-email-notice strong { color: var(--green-text); }
.lbs-email-notice svg { flex-shrink: 0; stroke: var(--green-text); }

/* ── Success State ──────────────────────────────────────────────────────── */
.lbs-success {
  text-align: center;
  padding: 40px 0 0;
}

.lbs-success svg { stroke: #2e7d32; margin-bottom: 16px; }

.lbs-success h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}

.lbs-success p { color: var(--text-muted); font-size: 14px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  #lbs-wrapper { padding: 32px 20px; }
  .lbs-summary-grid { grid-template-columns: 1fr; gap: 16px; }
  .lbs-time-slots { gap: 8px; }
  .lbs-time-btn { padding: 10px 14px; font-size: 13px; }
  .lbs-step span { font-size: 10px; }
  .lbs-title { font-size: 22px; }
  .lbs-btn-row { flex-direction: column; }
  .lbs-btn-back, .lbs-btn-next { flex: unset; }
}
