/* House Service Booking - Frontend Styles */
.hsb-booking-wrap, .hsb-dashboard { max-width: 900px; margin: 0 auto; font-family: inherit; }

.hsb-steps { display: flex; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; }
.hsb-step { padding: 8px 14px; border-radius: 20px; background: #f1f1f1; color: #777; font-size: 13px; font-weight: 600; }
.hsb-step.active { background: #2271b1; color: #fff; }

.hsb-panel h3 { margin-top: 0; }

.hsb-service-select-grid, .hsb-services-grid, .hsb-worker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }

.hsb-service-option, .hsb-worker-option { display: block; border: 2px solid #e2e2e2; border-radius: 8px; padding: 14px; cursor: pointer; position: relative; }
.hsb-service-option input, .hsb-worker-option input { position: absolute; top: 12px; right: 12px; }
.hsb-service-option:has(input:checked), .hsb-worker-option:has(input:checked) { border-color: #2271b1; background: #f0f6fc; }
.hsb-service-option-name, .hsb-worker-name { display: block; font-weight: 600; margin-bottom: 4px; }
.hsb-service-option-price { color: #2271b1; font-weight: 700; }
.hsb-worker-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.hsb-worker-rating, .hsb-worker-exp { display: block; font-size: 12px; color: #666; }

.hsb-service-card { border: 1px solid #e2e2e2; border-radius: 8px; padding: 16px; }
.hsb-service-category { display: inline-block; font-size: 11px; text-transform: uppercase; background: #eef3f8; color: #2271b1; padding: 2px 8px; border-radius: 10px; margin-bottom: 6px; }
.hsb-service-meta { display: flex; justify-content: space-between; margin: 10px 0; font-size: 14px; }

.hsb-datetime-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.hsb-slots-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.hsb-slot-btn { padding: 8px 14px; border: 1px solid #ccc; background: #fff; border-radius: 6px; cursor: pointer; }
.hsb-slot-btn.selected, .hsb-slot-btn:hover { background: #2271b1; color: #fff; border-color: #2271b1; }

.hsb-input, textarea.hsb-input { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; margin: 4px 0 14px; box-sizing: border-box; }
.hsb-radio-row { display: flex; gap: 20px; margin-bottom: 14px; }

.hsb-btn { display: inline-block; padding: 10px 18px; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; text-decoration: none; margin-right: 8px; margin-top: 8px; }
.hsb-btn-primary { background: #2271b1; color: #fff; }
.hsb-btn-secondary { background: #eee; color: #333; }
.hsb-btn-danger { background: #d63638; color: #fff; }
.hsb-btn-small { padding: 5px 10px; font-size: 12px; margin-top: 0; }

.hsb-summary-table { width: 100%; border-collapse: collapse; }
.hsb-summary-table th, .hsb-summary-table td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; }

.hsb-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.hsb-notice-info { background: #eef6fc; border: 1px solid #b6dcf2; }
.hsb-notice-warning { background: #fff8e5; border: 1px solid #f0d78c; }

.hsb-form-message { margin-top: 10px; font-weight: 600; }
.hsb-form-message.hsb-success { color: #237a3f; }
.hsb-form-message.hsb-error { color: #d63638; }

.hsb-tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 2px solid #eee; }
.hsb-tab-btn { background: none; border: none; padding: 10px 16px; cursor: pointer; font-weight: 600; color: #666; border-bottom: 3px solid transparent; }
.hsb-tab-btn.active { color: #2271b1; border-bottom-color: #2271b1; }

.hsb-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.hsb-table th, .hsb-table td { text-align: left; padding: 10px; border-bottom: 1px solid #eee; font-size: 14px; }

.hsb-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; background: #eee; }
.hsb-badge-pending, .hsb-badge-awaiting_worker { background: #fff3cd; color: #8a6d00; }
.hsb-badge-accepted { background: #d1ecf1; color: #0c5460; }
.hsb-badge-on_the_way { background: #cfe2ff; color: #084298; }
.hsb-badge-started { background: #e2d9f3; color: #4b2e83; }
.hsb-badge-completed { background: #d4edda; color: #155724; }
.hsb-badge-cancelled, .hsb-badge-rejected { background: #f8d7da; color: #721c24; }

.hsb-review-form { margin-top: 8px; }
.hsb-review-form textarea { width: 100%; min-height: 60px; margin: 6px 0; }

.hsb-loading-text { color: #999; font-style: italic; }

/* Worker availability calendar */
.hsb-calendar-legend { display: flex; gap: 16px; align-items: center; font-size: 13px; margin-bottom: 10px; }
.hsb-legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.hsb-legend-available { background: #d4edda; }
.hsb-legend-full { background: #f8d7da; }
.hsb-legend-off { background: #eee; }

.hsb-calendar-scroll { overflow-x: auto; margin-bottom: 14px; }
.hsb-worker-calendar { border-collapse: collapse; width: 100%; min-width: 720px; }
.hsb-worker-calendar th, .hsb-worker-calendar td { border: 1px solid #e2e2e2; text-align: center; padding: 6px; font-size: 12px; }
.hsb-worker-calendar th { background: #f7f7f7; font-weight: 600; white-space: nowrap; }
.hsb-cal-worker-cell { text-align: left !important; min-width: 150px; }
.hsb-cal-worker-cell .hsb-worker-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 6px; }
.hsb-cal-worker-cell .hsb-worker-name { font-weight: 600; display: inline; }
.hsb-cal-worker-cell .hsb-worker-rating, .hsb-cal-worker-cell .hsb-worker-exp { display: block; font-size: 11px; color: #777; }

.hsb-cal-cell { font-weight: 700; }
.hsb-cal-available { background: #d4edda; color: #155724; cursor: pointer; }
.hsb-cal-full { background: #f8d7da; color: #721c24; }
.hsb-cal-off { background: #f5f5f5; color: #bbb; }
.hsb-cal-clickable:hover { outline: 2px solid #2271b1; outline-offset: -2px; }
.hsb-cal-selected { background: #2271b1 !important; color: #fff !important; }

.hsb-materials-list { margin: 10px 0; }
.hsb-materials-heading { font-weight: 600; margin-bottom: 4px; }
.hsb-materials-ul { margin: 0 0 10px 18px; padding: 0; font-size: 13px; color: #555; }

.hsb-extra-materials-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 16px; }
.hsb-extra-material-option { font-size: 14px; }
.hsb-extra-price { color: #2271b1; font-weight: 600; }

.hsb-service-option-packages { display: block; font-size: 11px; color: #2271b1; margin-top: 4px; }

@media (max-width: 640px) {
	.hsb-datetime-grid { grid-template-columns: 1fr; }
	.hsb-steps { font-size: 11px; }
}
