/* ========================================================
   HELPERBEE – SERVICE DETAIL PAGE STYLESHEET
   Matches official app screens with web responsiveness
======================================================== */

.detail-page-body {
  background-color: #F8F9FA;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.detail-main-wrapper {
  padding: 32px 0 60px 0;
}

.detail-container {
  max-width: 1180px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb-bar a {
  color: var(--main-green);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-bar a:hover {
  text-decoration: underline;
}

.breadcrumb-bar .active-crumb {
  color: var(--text-dark);
  font-weight: 700;
}

/* 2-Column Layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}

/* ---------------- Main App Screen Card ---------------- */
.app-screen-card {
  background: #FFFFFF;
  border: 1px solid rgba(7, 78, 24, 0.12);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Screen Top Header */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid #ECECEC;
  margin-bottom: 24px;
}

.screen-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
  margin: 0 16px;
  flex: 1;
}

.screen-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: #1F2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.screen-icon-btn:hover {
  background: #E5E7EB;
  color: var(--main-green);
}

.screen-header-actions {
  display: flex;
  gap: 10px;
}

/* Service Visual Hero Banner */
.service-detail-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #F0F9F2 0%, #FFF9E6 100%);
  border: 1px solid rgba(7, 78, 24, 0.12);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.detail-hero-media {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-hero-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(7, 78, 24, 0.16));
}

.detail-hero-info {
  flex: 1;
}

.detail-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.detail-cat-pill {
  display: inline-block;
  background: var(--main-green);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
}

.detail-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #E8F5EC;
  color: #074E18;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.detail-hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.detail-hero-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #4B5563;
  font-weight: 600;
}

.rating-stars {
  color: #EAB308;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.dot-sep {
  color: #9CA3AF;
}

/* Sidebar Thumbnail Banner */
.sidebar-thumb-banner {
  background: linear-gradient(135deg, #F0F9F2 0%, #FFF9E6 100%);
  border-radius: 14px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(7, 78, 24, 0.08);
}

.sidebar-thumb-banner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(7, 78, 24, 0.14));
}

/* Tools Notice Banner */
.tools-notice-banner {
  background: #F4F3F9;
  border: 1px solid #E8E5F3;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFFFFF;
  color: #5B45A8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tools-notice-banner p {
  color: #374151;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* Block Headings */
.block-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
}

/* Overview */
.overview-block {
  margin-bottom: 32px;
}

.overview-text {
  font-size: 1rem;
  color: #4B5563;
  line-height: 1.65;
}

/* ---------------- Variants (Single Door / 1 BHK / 1 Fan etc.) ---------------- */
.variants-block {
  margin-bottom: 36px;
}

.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.variant-card {
  background: #F9F8FC;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.variant-card:hover {
  background: #F3F0FA;
  transform: translateY(-2px);
}

.variant-card.active {
  background: #FFFFFF;
  border-color: var(--main-green);
  box-shadow: 0 6px 16px rgba(7, 78, 24, 0.12);
}

.variant-icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px auto;
  border-radius: 14px;
  background: #EDE8F7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #5B45A8;
  transition: all 0.2s ease;
}

.variant-card.active .variant-icon-box {
  background: #E8F5E9;
  color: var(--main-green);
}

.variant-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 6px;
}

.variant-time-pill {
  display: inline-block;
  background: #F1EDFA;
  color: #6C52BA;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.variant-card.active .variant-time-pill {
  background: #E8F5E9;
  color: var(--main-green);
}

/* ---------------- Checklist Sections (What We Do / What We Don't Do) ---------------- */
.checklist-block {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #ECECEC;
}

.checklist-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.checklist-title.green-heading {
  color: #111827;
}

.checklist-title.green-heading i {
  color: #16A34A;
  font-size: 1.3rem;
}

.checklist-title.red-heading {
  color: #111827;
}

.checklist-title.red-heading i {
  color: #DC2626;
  font-size: 1.3rem;
}

.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist-items li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: #374151;
  font-weight: 500;
  line-height: 1.5;
}

.checklist-items li i {
  color: #16A34A;
  font-size: 1.15rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.checklist-items.red-cross li i {
  color: #DC2626;
}

/* ---------------- How It Works Section ---------------- */
.how-it-works-detail-block {
  margin-bottom: 32px;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-step-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #F9F8FC;
  border-radius: 14px;
  padding: 16px 20px;
  border: 1px solid #ECE8F5;
}

.step-num-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--main-green);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-info h4 {
  font-size: 1.02rem;
  color: #111827;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-info p {
  color: #4B5563;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Safety Card */
.safety-assurance-card {
  background: linear-gradient(135deg, #E8F5E9 0%, #FFFDE7 100%);
  border: 1px solid rgba(7, 78, 24, 0.2);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.safety-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--main-green);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.safety-assurance-card h3 {
  font-size: 1.05rem;
  color: var(--main-green);
  font-weight: 800;
  margin-bottom: 4px;
}

.safety-assurance-card p {
  font-size: 0.88rem;
  color: #4B5563;
  line-height: 1.4;
  margin: 0;
}

/* ---------------- Right Sticky Sidebar ---------------- */
.booking-sidebar {
  position: relative;
}

.sticky-booking-box {
  position: sticky;
  top: 100px;
  background: #FFFFFF;
  border: 1px solid rgba(7, 78, 24, 0.15);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(7, 78, 24, 0.08);
}

.booking-service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8F5E9;
  color: var(--main-green);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.sidebar-service-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--main-green);
  margin-bottom: 14px;
}

.sidebar-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #ECECEC;
  margin-bottom: 16px;
}

.sidebar-price-box {
  color: var(--main-green);
  display: flex;
  align-items: baseline;
}

.sidebar-price-box .currency {
  font-size: 1.1rem;
  font-weight: 700;
}

.sidebar-price-box .amount {
  font-size: 2.2rem;
  font-weight: 800;
}

.tax-tag {
  color: #6B7280;
  font-size: 0.8rem;
  font-weight: 600;
}

.sidebar-variant-info {
  background: #F9F8FC;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #4B5563;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-variant-info strong {
  color: #111827;
}

.full-width {
  width: 100%;
}

.open-app-btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
  margin-bottom: 12px;
}

.whatsapp-alt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.whatsapp-alt-btn:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

.booking-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: #4B5563;
  padding-top: 14px;
  border-top: 1px solid #ECECEC;
  margin-bottom: 18px;
}

.booking-features-list i {
  color: #16A34A;
  margin-right: 6px;
}

.app-download-pills {
  text-align: center;
}

.app-download-pills small {
  color: #9CA3AF;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 8px;
}

.pills-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pills-row span {
  background: #F3F4F6;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ---------------- Mobile Sticky Bottom Bar ---------------- */
.mobile-sticky-booking {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  padding: 12px 20px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  border-top: 2px solid var(--yellow);
  align-items: center;
  justify-content: space-between;
}

.mobile-price-col {
  display: flex;
  flex-direction: column;
}

.mobile-price-label {
  font-size: 0.75rem;
  color: #6B7280;
  font-weight: 600;
}

.mobile-price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--main-green);
}

.mobile-book-btn {
  padding: 10px 24px;
  font-size: 0.95rem;
}

/* ---------------- App Open / Download Modal ---------------- */
.app-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.app-modal-backdrop.open {
  display: flex;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.app-modal-card {
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border-top: 6px solid var(--yellow);
}

.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #F3F4F6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: #4B5563;
  cursor: pointer;
}

.close-modal-btn:hover {
  background: #E5E7EB;
}

.modal-header-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #E8F5E9;
  color: var(--main-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px auto;
}

.app-modal-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--main-green);
  margin-bottom: 8px;
}

.app-modal-card p {
  color: #4B5563;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.whatsapp-btn-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  padding: 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.call-btn-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
  color: #1F2937;
  text-decoration: none;
  font-weight: 700;
  padding: 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.modal-note {
  color: #9CA3AF;
  font-size: 0.75rem;
  display: block;
}

/* ---------------- Responsive Styles ---------------- */
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    display: none;
  }

  .mobile-sticky-booking {
    display: flex;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)) 18px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .detail-page-body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .app-screen-card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .screen-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 600px) {
  .detail-main-wrapper {
    padding: 16px 0 36px 0;
  }

  .breadcrumb-bar {
    font-size: 0.82rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .breadcrumb-bar::-webkit-scrollbar {
    display: none;
  }

  .service-detail-hero {
    flex-direction: column;
    text-align: center;
    padding: 20px 14px;
    gap: 14px;
  }

  .detail-hero-media {
    width: 96px;
    height: 96px;
    margin: 0 auto;
  }

  .detail-hero-title {
    font-size: 1.3rem;
  }

  .detail-badge-row,
  .detail-hero-stats {
    justify-content: center;
  }
}

/* Specific iPhone 13 (390px) & Small Device Tuning */
@media (max-width: 480px) {
  .app-screen-card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .screen-header {
    padding-bottom: 14px;
    margin-bottom: 18px;
  }

  .screen-title {
    font-size: 1.15rem;
    margin: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .screen-icon-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  .service-detail-hero {
    padding: 16px 12px;
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .detail-hero-media {
    width: 82px;
    height: 82px;
  }

  .detail-hero-title {
    font-size: 1.2rem;
  }

  .tools-notice-banner {
    padding: 12px 14px;
    gap: 10px;
    border-radius: 12px;
    margin-bottom: 22px;
  }

  .notice-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .tools-notice-banner p {
    font-size: 0.84rem;
  }

  .block-heading {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  .overview-text {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .variants-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .variant-card {
    padding: 14px 8px;
    border-radius: 14px;
  }

  .variant-icon-box {
    width: 46px;
    height: 46px;
    font-size: 1.35rem;
    border-radius: 12px;
    margin-bottom: 8px;
  }

  .variant-name {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }

  .variant-time-pill {
    font-size: 0.68rem;
    padding: 2px 7px;
  }

  .checklist-block {
    margin-bottom: 26px;
    padding-bottom: 22px;
  }

  .checklist-title {
    font-size: 1.1rem;
    margin-bottom: 14px;
  }

  .checklist-items li {
    font-size: 0.88rem;
    gap: 10px;
  }

  .checklist-items li i {
    font-size: 1.05rem;
  }

  .workflow-step-card {
    padding: 12px 14px;
    gap: 12px;
    border-radius: 12px;
  }

  .step-num-icon {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
    border-radius: 8px;
  }

  .step-info h4 {
    font-size: 0.94rem;
  }

  .step-info p {
    font-size: 0.84rem;
  }

  .safety-assurance-card {
    padding: 16px 14px;
    gap: 12px;
    border-radius: 14px;
    flex-direction: column;
    text-align: center;
  }

  .safety-icon-wrapper {
    margin: 0 auto;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .safety-assurance-card h3 {
    font-size: 0.98rem;
  }

  .safety-assurance-card p {
    font-size: 0.82rem;
  }

  .mobile-sticky-booking {
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)) 14px;
  }

  .mobile-price-amount {
    font-size: 1.35rem;
  }

  .mobile-book-btn {
    padding: 9px 18px;
    font-size: 0.88rem;
    border-radius: 999px;
  }

  .app-modal-card {
    padding: 24px 16px;
    border-radius: 20px;
    max-width: 94vw;
  }

  .modal-header-icon {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
    border-radius: 16px;
    margin-bottom: 12px;
  }

  .app-modal-card h3 {
    font-size: 1.25rem;
  }

  .app-modal-card p {
    font-size: 0.86rem;
    margin-bottom: 18px;
  }
}
