/* ==========================================================================
   Phase 4.2: Specialist Care Services & Service Request Wizard Styles
   (/services & /request-service)
   ========================================================================== */

/* 1. Services Hero & 3-Step Flow */
.hp-services-hero {
  background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 100%);
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--hp-border);
}

.hp-services-hero-inner {
  max-width: 880px;
  margin: 12px auto 0;
  text-align: center;
}

.hp-services-hero-title {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 800;
  color: var(--hp-purple-dark);
  margin: 0 0 10px;
  line-height: 1.22;
}

.hp-services-hero-subtitle {
  font-size: 16px;
  color: var(--hp-text-secondary);
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.hp-services-steps-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-pill);
  padding: 10px 22px;
  box-shadow: var(--hp-shadow-sm);
  margin-bottom: 24px;
}

.hp-services-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-text-primary);
}

.hp-services-step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hp-purple);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hp-services-step-arrow {
  font-size: 11px;
  color: var(--hp-text-muted);
}

.hp-services-type-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hp-services-type-pill {
  padding: 8px 16px;
  border-radius: var(--hp-radius-pill);
  border: 1px solid var(--hp-border-strong);
  background: #ffffff;
  color: var(--hp-text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hp-services-type-pill:hover {
  border-color: var(--hp-purple);
  color: var(--hp-purple);
}

.hp-services-type-pill.is-active {
  background: var(--hp-purple);
  border-color: var(--hp-purple);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(97, 46, 149, 0.2);
}

/* 2. Service Cards Grid (#ajax_listing) */
.hp-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hp-service-detail-card {
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: var(--hp-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-service-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hp-shadow-md);
}

.hp-service-card-img {
  position: relative;
  height: 210px;
  background: #f3f4f6;
  overflow: hidden;
}

.hp-service-card-img > a {
  display: block;
  width: 100%;
  height: 100%;
}

.hp-service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hp-service-detail-card:hover .hp-service-card-img img {
  transform: scale(1.04);
}

.hp-service-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(97, 46, 149, 0.92);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--hp-radius-pill);
  pointer-events: none;
}

.hp-service-mode-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(17, 24, 39, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--hp-radius-sm);
  pointer-events: none;
}

.hp-service-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hp-service-card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 12px;
}

.hp-service-card-title a {
  color: var(--hp-text-primary);
  text-decoration: none;
}

.hp-service-card-title a:hover {
  color: var(--hp-purple);
}

.hp-service-inclusions {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.hp-service-inclusions li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--hp-text-secondary);
  line-height: 1.45;
}

.hp-service-inclusions li i {
  color: #10b981;
  margin-top: 3px;
  flex-shrink: 0;
}

.hp-service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--hp-border);
  margin-top: auto;
}

.hp-service-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--hp-purple-dark);
}

/* ==========================================================================
   3. Multi-Step Service Request Wizard (/request-service)
   ========================================================================== */

.hp-service-wizard-section {
  background: linear-gradient(180deg, #fdf4f8 0%, #ffffff 100%);
  padding: 28px 0 64px;
}

.hp-wizard-container {
  max-width: 680px;
  margin: 16px auto 0;
}

.hp-wizard-header {
  text-align: center;
  margin-bottom: 24px;
}

.hp-wizard-progress {
  margin-bottom: 22px;
}

.hp-wizard-progress-bar {
  height: 8px;
  background: #e9d8fd;
  border-radius: var(--hp-radius-pill);
  overflow: hidden;
  margin-bottom: 10px;
}

.hp-wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hp-purple) 0%, #6b59d3 100%);
  transition: width 0.25s ease;
}

.hp-wizard-step-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}

.hp-wiz-step-dot {
  font-size: 12px;
  font-weight: 700;
  color: var(--hp-text-muted);
}

.hp-wiz-step-dot.is-active {
  color: var(--hp-purple);
}

.hp-wizard-card {
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  padding: 28px 30px;
  box-shadow: var(--hp-shadow-md);
}

.hp-wizard-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.hp-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  margin-top: 8px;
  border-top: 1px solid var(--hp-border);
}

@media (max-width: 991px) {
  .hp-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hp-services-grid,
  .hp-wizard-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-services-steps-bar {
    border-radius: var(--hp-radius-md);
    padding: 14px;
  }

  .hp-wizard-card {
    padding: 20px;
  }

  .hp-wizard-step-labels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
