/* 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-worker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.hsb-services-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hsb-service-category-group {
  margin-bottom: 32px;
}
.hsb-service-category-title {
  font-size: 20px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--hsb-accent, #e8622c);
}

.hsb-category-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.hsb-category-card {
  flex: 1 1 400px;
  max-width: 400px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  padding: 16px;
  background: #fff;
}
.hsb-category-card-image {
  margin: -16px -16px 14px;
}
.hsb-category-card-image img {
  width: 100%;
  height: 220px!important;
  object-fit: cover;
  display: block;
}
.hsb-category-card-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  text-transform: capitalize !important;
  min-height: 35px !important;
}
.hsb-category-card-desc {
  color: #555;
  margin: 0 0 16px;
}

.hsb-services-grid .hsb-service-card {
    width: 32%;
}


.hsb-services-grid .hsb-service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top center;
} 

.hsb-services-grid .hsb-service-card a.hsb-btn.hsb-btn-primary {
    background-color: #F87918;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: var(--e-global-color-primary);
    border-radius: 5px 5px 5px 5px;
    transition-duration: .3s;
    transition-property: transform;
    transition-timing-function: ease-out;
}

.hsb-services-grid .hsb-service-card a.hsb-btn.hsb-btn-primary:hover {
    transform: translateY(-8px);
    color: #fff;
}




.hsb-services-grid .hsb-service-card h3.hsb-service-name {
    font-size: 20px;
    font-weight: 600;
    color: #000;
}
.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),
.hsb-service-option.hsb-selected {
  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-service-option-desc {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  line-height: 18px;
    margin-bottom: 10px;
    min-height: 65px;
}

.hsb-category-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.hsb-category-option {
  display: block;
  border: 2px solid #e2e2e2;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  position: relative;
  text-align: center;
}
.hsb-category-option input {
  position: absolute;
  opacity: 0;
}
.hsb-category-option:has(input:checked),
.hsb-category-option.hsb-selected {
  border-color: var(--hsb-accent, #e8622c);
  background: #fff8f3;
}
.hsb-category-option-image {
  width: 100%;
  height: 140px;
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
}
.hsb-category-option-image img {
  width: 100% !important;
  height: 140px !important;
  max-width: 100% !important;
  max-height: 140px !important;
  object-fit: cover !important;
  display: block !important;
}
.hsb-category-option-name {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 20px;
  text-transform: capitalize;
   text-align: left;
}
.hsb-category-option-desc {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}
.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-package-cards {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}
.hsb-package-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  flex: 1;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.hsb-package-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  color: var(--hsb-accent, #e8622c);
  flex-shrink: 0;
}
.hsb-package-icon svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  display: block !important;
}
.hsb-package-info {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline;
  gap: 6px;
  flex: 1;
  line-height: 1.3;
}
.hsb-package-info strong {
  font-size: 13px;
  color: #222;
  white-space: nowrap;
}
.hsb-package-info small {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}
.hsb-package-price {
  margin-left: auto;
  font-weight: 700;
  font-size: 15px;
  color: var(--hsb-accent, #e8622c);
  white-space: nowrap;
}

.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,.hsb-btn-primary:hover {
  background: #f87918;
  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-notice-error {
  background: #fdecea;
  border: 1px solid #f5b3ac;
  color: #8a1f11;
}

.hsb-register-wrap {
  margin-top: 16px;
}
.hsb-register-form .hsb-required {
  color: #c0392b;
}
.hsb-field-hint {
  color: #666;
  display: block;
  margin-top: 2px;
}
.hsb-login-wrap {
  max-width: 420px;
}
.hsb-login-lost-pass {
  margin-left: 12px;
  font-size: 0.9em;
}
.hsb-login-switch {
  margin-top: 14px;
}

.hsb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.hsb-modal-box {
  background: #fff;
  border-radius: 8px;
  max-width: 460px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.hsb-modal-box h4 {
  margin-top: 0;
}
.hsb-modal-box .hsb-btn {
  margin-top: 16px;
}

.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;
  }
}
@media (max-width: 767px){
.hsb-services-grid {
    flex-direction: column;
}

.hsb-services-grid .hsb-service-card {
    width: 100%;
}
}
	
