/* Fitness Booking Pro — Frontend Styles */
.fb-widget { max-width: 780px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1a1a2e; }

/* Progress */
.fb-progress { display: flex; align-items: center; margin-bottom: 32px; }
.fb-step-dot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fb-step-dot span { width: 32px; height: 32px; border-radius: 50%; background: #e5e7eb; color: #9ca3af; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; transition: all .2s; }
.fb-step-dot small { font-size: 11px; color: #9ca3af; white-space: nowrap; }
.fb-step-dot.active span { background: #667eea; color: #fff; }
.fb-step-dot.done span { background: #10b981; color: #fff; }
.fb-step-dot.done small, .fb-step-dot.active small { color: #374151; }
.fb-step-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 4px; margin-bottom: 16px; transition: background .2s; }
.fb-step-line.done { background: #10b981; }

/* Step title */
.fb-step-title { font-size: 20px; font-weight: 700; margin: 0 0 20px; color: #1a1a2e; }

/* Service grid */
.fb-service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.fb-service-card { border: 2px solid #e5e7eb; border-radius: 12px; overflow: hidden; cursor: pointer; transition: all .2s; }
.fb-service-card:hover { border-color: #667eea; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(102,126,234,.15); }
.fb-service-card.selected { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.2); }
.fb-service-color { height: 6px; }
.fb-service-body { padding: 16px; }
.fb-service-body h4 { margin: 6px 0 4px; font-size: 16px; }
.fb-service-body p { font-size: 13px; color: #6b7280; margin: 0 0 10px; }
.fb-service-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #6b7280; }
.fb-price { font-weight: 700; color: #667eea; font-size: 16px; }
.fb-tag { background: #ede9fe; color: #5b21b6; font-size: 11px; padding: 2px 8px; border-radius: 99px; font-weight: 600; }

/* Trainer grid - original style restored */
.fb-trainer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.fb-trainer-card { border: 2px solid #e5e7eb; border-radius: 12px; overflow: hidden; cursor: pointer; transition: all .2s; }
.fb-trainer-card:hover { border-color: #667eea; }
.fb-trainer-card.fb-trainer-selected { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.2); }
.fb-trainer-card-body { padding: 16px; }
.fb-trainer-avatar { width: 44px; height: 44px; background: linear-gradient(135deg,#667eea,#764ba2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.fb-trainer-avatar-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; display: block; }
.fb-trainer-card strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.fb-trainer-card p { font-size: 12px; color: #6b7280; margin: 0 0 8px; line-height: 1.5; }

/* "rozwiń opis" toggle - small subtle text link */
.fb-bio-more-btn { background: none; border: none; padding: 2px 0 0; color: #9ca3af; font-size: 12px; font-weight: 500; cursor: pointer; display: inline-block; line-height: 1.4; }
.fb-bio-more-btn:hover { color: #667eea; }

/* Expanded bio inside card */
.fb-trainer-bio-expanded { border-top: 1px solid #f0f0f0; padding: 12px 16px 14px; background: #fafbff; display: none; }
.fb-trainer-bio-expanded p { font-size: 13px; line-height: 1.65; color: #374151; margin: 0 0 6px; }
.fb-trainer-bio-expanded p:last-child { margin: 0; }
.fb-select-from-bio { display: inline-block; margin-top: 10px; background: #667eea; color: #fff; border: none; border-radius: 6px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.fb-select-from-bio:hover { opacity: .85; }

/* Date & slots */
.fb-date-picker { margin-bottom: 20px; }
.fb-date-picker label { display: block; font-weight: 600; margin-bottom: 6px; }
.fb-input { width: 100%; padding: 10px 14px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 15px; transition: border .2s; box-sizing: border-box; }
.fb-input:focus { outline: none; border-color: #667eea; }
.fb-slots-container { margin-bottom: 20px; }
.fb-slots-container h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.fb-slots-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-slot { padding: 8px 16px; border: 2px solid #e5e7eb; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all .15s; background: #fff; }
.fb-slot:hover { border-color: #667eea; color: #667eea; }
.fb-slot.selected { background: #667eea; border-color: #667eea; color: #fff; }
.fb-no-slots { color: #6b7280; font-size: 14px; padding: 12px 0; }
.fb-loading { color: #9ca3af; font-size: 14px; }

/* Details form */
.fb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.fb-full { grid-column: 1/-1; }
.fb-form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #374151; }
.fb-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 20px; cursor: pointer; }
.fb-checkbox input { accent-color: #667eea; }

/* Booking preview */
.fb-booking-preview { background: #f8f9ff; border: 1px solid #e0e3ff; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; font-size: 14px; }
.fb-summary-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #e5e7eb; }
.fb-summary-row:last-child { border: none; }
.fb-price-big { font-size: 22px; color: #667eea; }

/* Buttons */
.fb-btn { display: inline-block; padding: 12px 28px; background: linear-gradient(135deg,#667eea,#764ba2); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: opacity .2s; margin-top: 8px; }
.fb-btn:hover:not(:disabled) { opacity: .88; }
.fb-btn:disabled { opacity: .45; cursor: not-allowed; }
.fb-btn-pay { width: 100%; padding: 16px; font-size: 18px; margin-top: 12px; }
.fb-error { color: #dc2626; background: #fee2e2; padding: 10px 16px; border-radius: 8px; }

/* Success / Return */
.fb-success-box, .fb-pending-box { text-align: center; padding: 32px 20px; }
.fb-success-icon { font-size: 48px; margin-bottom: 12px; }
.fb-success-box h2 { color: #065f46; font-size: 24px; }
.fb-email-note { color: #6b7280; font-size: 13px; margin-top: 16px; }

/* Responsive */
@media (max-width: 600px) {
    .fb-form-grid { grid-template-columns: 1fr; }
    .fb-service-grid { grid-template-columns: 1fr; }
    .fb-trainer-grid { grid-template-columns: 1fr; }
    .fb-step-dot small { display: none; }
}

/* =====================================================
   ELEMENTOR WIDGETS — Fitness Booking Pro
   ===================================================== */

/* Services Grid */
.fb-el-services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.fb-el-services-list { display:flex; flex-direction:column; gap:12px; }
.fb-el-service-card  { border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; transition:box-shadow .2s,transform .2s; background:#fff; }
.fb-el-service-card:hover { box-shadow:0 8px 24px rgba(0,0,0,.08); transform:translateY(-2px); }
.fb-el-service-stripe { height:5px; }
.fb-el-service-inner { padding:18px 20px; }
.fb-el-service-inner h4 { margin:8px 0 6px; font-size:17px; }
.fb-el-desc  { font-size:13px; color:#6b7280; margin:0 0 10px; }
.fb-el-tag   { background:#ede9fe; color:#5b21b6; font-size:11px; padding:2px 8px; border-radius:99px; font-weight:600; }
.fb-el-service-meta  { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; font-size:13px; color:#6b7280; }
.fb-el-service-price { font-weight:700; color:#667eea; font-size:16px; }
.fb-el-duration { font-size:13px; }
.fb-el-cta { display:inline-block; padding:8px 18px; background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; border-radius:8px; text-decoration:none; font-size:14px; font-weight:600; transition:opacity .2s; }
.fb-el-cta:hover { opacity:.85; color:#fff; }

/* Schedule */
.fb-el-schedule { display:flex; gap:10px; overflow-x:auto; padding-bottom:8px; }
.fb-el-day-col  { min-width:160px; flex:0 0 160px; border:1px solid #e5e7eb; border-radius:10px; overflow:hidden; }
.fb-el-today    { border-color:#667eea; box-shadow:0 0 0 2px rgba(102,126,234,.25); }
.fb-el-day-header { background:#667eea; color:#fff; padding:10px 12px; display:flex; align-items:center; justify-content:space-between; }
.fb-el-day-name { font-weight:700; font-size:13px; }
.fb-el-today-badge { background:rgba(255,255,255,.25); border-radius:99px; padding:2px 8px; font-size:11px; }
.fb-el-day-slots { padding:8px; display:flex; flex-direction:column; gap:8px; }
.fb-el-slot { background:#f8f9ff; border-radius:8px; padding:10px 12px; font-size:13px; }
.fb-el-slot-time { font-weight:700; color:#374151; }
.fb-el-slot-name { color:#667eea; font-weight:600; font-size:12px; margin:2px 0; }
.fb-el-slot-trainer { color:#6b7280; font-size:12px; }
.fb-el-slot-price { color:#10b981; font-weight:700; font-size:12px; margin-top:2px; }
.fb-el-slot-cta { display:block; margin-top:8px; text-align:center; padding:6px; background:#667eea; color:#fff; border-radius:6px; text-decoration:none; font-size:12px; font-weight:600; transition:opacity .2s; }
.fb-el-slot-cta:hover { opacity:.85; color:#fff; }

/* Customer Panel */
.fb-el-customer-panel { }
.fb-el-cp-title { font-size:22px; font-weight:700; margin:0 0 16px; }
.fb-el-cp-search { display:flex; gap:10px; margin-bottom:20px; }
.fb-el-cp-search .fb-input { flex:1; }
.fb-el-cp-btn { white-space:nowrap; }
.fb-el-cp-list { display:flex; flex-direction:column; gap:10px; }
.fb-el-booking-row { background:#f8f9ff; border-radius:10px; padding:14px 18px; }
.fb-el-br-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; flex-wrap:wrap; gap:6px; }
.fb-el-br-meta { display:flex; flex-wrap:wrap; gap:12px; font-size:13px; color:#6b7280; }
.fb-el-empty { color:#9ca3af; font-size:14px; }

@media(max-width:640px){
    .fb-el-services-grid { grid-template-columns:1fr; }
    .fb-el-cp-search { flex-direction:column; }
}

/* Back navigation */
.fb-nav { display:flex; gap:12px; align-items:center; margin-top:20px; flex-wrap:wrap; }
.fb-btn-back { background:transparent; color:#667eea; border:2px solid #667eea; padding:10px 20px; border-radius:8px; font-size:15px; font-weight:600; cursor:pointer; transition:all .15s; }
.fb-btn-back:hover { background:#f0f0ff; }

/* Location cards */
.fb-location-grid { display:flex; flex-direction:column; gap:10px; margin-bottom:8px; }
.fb-location-card { display:flex; align-items:flex-start; gap:14px; border:2px solid #e5e7eb; border-radius:10px; padding:16px 18px; cursor:pointer; transition:all .15s; }
.fb-location-card:hover { border-color:#667eea; background:#f8f9ff; }
.fb-location-card.fb-location-selected { border-color:#667eea; background:#f0f4ff; box-shadow:0 0 0 3px rgba(102,126,234,.2); }
.fb-location-card.fb-location-selected strong { color:#4338ca; }
.fb-location-icon { font-size:22px; line-height:1; margin-top:2px; flex-shrink:0; }
.fb-location-card strong { display:block; font-size:15px; margin-bottom:2px; }
.fb-location-card p { font-size:13px; color:#6b7280; margin:2px 0 0; }
.fb-location-phone { color:#667eea !important; }

/* Disabled Next button */
.fb-btn:disabled { opacity:.4; cursor:not-allowed; }
