/* ==========================================================================
   DYGO DIAGNOSTICS — CONCEPT 1: APPLE HEALTH MINIMALIST STAGE
   No repetitive boxed cards • Frosted glass booking dock • Smooth animations
   ========================================================================== */

:root {
  --ah-red: #C22127;
  --ah-red-hover: #9E1318;
  --ah-red-subtle: #FFF1F2;
  --ah-red-border: #FECDD3;
  --ah-navy: #0F172A;
  --ah-slate: #1E293B;
  --ah-text-muted: #64748B;
  --ah-border: #E2E8F0;
  --ah-border-light: #F1F5F9;
  --ah-bg: #FAFBFD;
  --ah-white: #FFFFFF;
  --ah-green: #059669;
  --ah-green-bg: #ECFDF5;
  --ah-green-border: #A7F3D0;
  --ah-blue: #2563EB;
  --ah-blue-bg: #EFF6FF;
  --ah-amber: #D97706;
  --ah-amber-bg: #FFFBEB;
  --ah-purple: #7C3AED;
  --ah-purple-bg: #F5F3FF;
}

/* ── ANIMATIONS ────────────────────────────────────────────────────────── */
@keyframes ahFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ahPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ── PAGE CONTAINER (SNUG CLEARANCE UNDER NAVBAR) ─────────────────────── */
.pk-page {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ah-slate);
  background-color: var(--ah-bg);
  background-image: radial-gradient(at 10% 0%, rgba(254, 242, 242, 0.45) 0px, transparent 40%),
                    radial-gradient(at 90% 0%, rgba(239, 246, 255, 0.35) 0px, transparent 40%);
  min-height: 100vh;
  /* Snug, tight padding below navbar without empty void */
  padding-top: 68px;
  padding-bottom: 50px;
  animation: ahFadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 991.98px) {
  .pk-page {
    padding-top: 62px;
    padding-bottom: 80px;
  }
}

/* ── BREADCRUMB ────────────────────────────────────────────────────────── */
.ah-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--ah-text-muted);
  margin-bottom: 10px;
}
.ah-breadcrumb a {
  color: var(--ah-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.ah-breadcrumb a:hover {
  color: var(--ah-red);
}
.ah-bc-sep {
  color: #CBD5E1;
  font-size: 0.65rem;
}
.ah-bc-current {
  color: var(--ah-navy);
  font-weight: 600;
}

/* ── STAGE HEADER (NO BOXES, PURE EDITORIAL CLARITY) ───────────────────── */
.ah-stage-header {
  margin-bottom: 16px;
}

.ah-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.ah-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 9999px;
  line-height: 1.2;
}
.ah-chip--lab {
  background: var(--ah-white);
  color: var(--ah-slate);
  border: 1px solid var(--ah-border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.ah-chip--discount {
  background: var(--ah-red-subtle);
  color: var(--ah-red);
  border: 1px solid var(--ah-red-border);
  font-weight: 600;
}

/* Title: Clean, Refined Weight — Never Aggressive Heavy Bold */
.ah-stage-title {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 600;
  color: var(--ah-navy);
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.ah-desc-container {
  margin-bottom: 12px;
}
.ah-stage-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 820px;
}
.ah-stage-desc.ah-desc-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ah-desc-toggle-btn {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ah-red);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  transition: color 0.15s ease;
}
.ah-desc-toggle-btn:hover {
  color: var(--ah-red-hover);
  text-decoration: underline;
}

/* ── SPECS CAPSULE STRIP (APPLE WIDGET PILL STYLE) ────────────────────── */
.ah-specs-capsule {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  margin-bottom: 18px;
}
@media (max-width: 575.98px) {
  .ah-specs-capsule {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 0;
  }
}

.ah-spec-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px;
  border-right: 1px solid var(--ah-border-light);
}
.ah-spec-item:last-child {
  border-right: none;
}
@media (max-width: 575.98px) {
  .ah-spec-item:nth-child(2) {
    border-right: none;
  }
}

.ah-spec-glyph {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.ah-glyph-red    { background: var(--ah-red-subtle); color: var(--ah-red); }
.ah-glyph-blue   { background: var(--ah-blue-bg);   color: var(--ah-blue); }
.ah-glyph-amber  { background: var(--ah-amber-bg);  color: var(--ah-amber); }
.ah-glyph-purple { background: var(--ah-purple-bg); color: var(--ah-purple); }

.ah-spec-label {
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ah-text-muted);
  display: block;
}
.ah-spec-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ah-navy);
  display: block;
  white-space: nowrap;
}

/* ── INCLUDED TESTS DIRECTORY (BORDERLESS, NO DABBA GRID!) ────────────── */
.ah-tests-directory {
  background: var(--ah-white);
  border: 1px solid var(--ah-border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.ah-directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ah-directory-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ah-navy);
  margin-bottom: 0;
}
.ah-directory-badge {
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--ah-red-subtle);
  color: var(--ah-red);
  border: 1px solid var(--ah-red-border);
  padding: 3px 9px;
  border-radius: 9999px;
}

/* Sleek search bar */
.ah-search-wrap {
  position: relative;
  margin-bottom: 12px;
}
.ah-search-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  font-size: 0.82rem;
  border-radius: 9999px;
  border: 1px solid var(--ah-border);
  background: var(--ah-bg);
  color: var(--ah-slate);
  transition: all 0.2s ease;
}
.ah-search-input:focus {
  background: var(--ah-white);
  border-color: var(--ah-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(194, 33, 39, 0.08);
}
.ah-search-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ah-text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Flat directory list (NO BOXES, CLEAN ZEBRA HOVER) */
.ah-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}
@media (max-width: 640px) {
  .ah-directory-grid {
    grid-template-columns: 1fr;
  }
}

.ah-directory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ah-directory-row:hover {
  background: rgba(241, 245, 249, 0.8);
}

.ah-dir-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ah-dir-num {
  font-size: 0.68rem;
  font-weight: 600;
  font-family: monospace;
  color: #94A3B8;
  flex-shrink: 0;
}
.ah-dir-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ah-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ah-dir-check {
  color: var(--ah-green);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ah-toggle-all-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ah-red);
  background: var(--ah-white);
  border: 1px solid var(--ah-red-border);
  border-radius: 9999px;
  padding: 6px 20px;
  transition: all 0.15s ease;
  cursor: pointer;
}
.ah-toggle-all-btn:hover {
  background: var(--ah-red-subtle);
  border-color: var(--ah-red);
  color: var(--ah-red-hover);
}

/* ── RIGHT COLUMN: FROSTED GLASS FLOATING BOOKING DOCK ────────────────── */
.ah-sticky-dock-wrap {
  position: -webkit-sticky;
  position: sticky;
  top: 80px;
  z-index: 15;
}

.ah-glass-dock {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ah-dock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ah-dock-lab-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ah-slate);
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid var(--ah-border);
  padding: 3px 9px;
  border-radius: 9999px;
}
.ah-dock-discount-pill {
  background: var(--ah-red);
  color: var(--ah-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  animation: ahPulse 3s infinite ease-in-out;
}

.ah-dock-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.ah-dock-curr-price {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ah-red);
  line-height: 1;
}
.ah-dock-mrp-cut {
  font-size: 0.92rem;
  color: #94A3B8;
  text-decoration: line-through;
  font-family: monospace;
}
.ah-dock-save-badge {
  background: var(--ah-green-bg);
  color: var(--ah-green);
  border: 1px solid var(--ah-green-border);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: monospace;
  margin-left: auto;
}

.ah-dock-inclusive-text {
  font-size: 0.72rem;
  color: var(--ah-text-muted);
  margin-bottom: 16px;
}

/* Primary Glass Booking Button */
.ah-btn-booking {
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--ah-red) 0%, var(--ah-red-hover) 100%);
  color: var(--ah-white);
  border: none;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 6px 18px rgba(194, 33, 39, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  margin-bottom: 16px;
}
.ah-btn-booking:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 33, 39, 0.38);
  color: var(--ah-white);
}
.ah-btn-booking:active {
  transform: translateY(1px);
}

/* Benefits list */
.ah-dock-benefits {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.ah-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #334155;
  font-weight: 500;
}
.ah-benefit-ico {
  color: var(--ah-green);
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Integrated Pincode */
.ah-dock-pincode {
  padding-top: 12px;
  border-top: 1px dashed rgba(226, 232, 240, 0.9);
}
.ah-pin-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ah-slate);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ah-pin-group {
  display: flex;
  border: 1px solid var(--ah-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ah-white);
  transition: border-color 0.2s ease;
}
.ah-pin-group:focus-within {
  border-color: var(--ah-red);
}
.ah-pin-field {
  flex: 1;
  border: none;
  background: transparent;
  padding: 7px 10px;
  font-size: 0.8rem;
  font-family: monospace;
  outline: none;
}
.ah-pin-btn {
  border: none;
  background: var(--ah-red);
  color: var(--ah-white);
  padding: 7px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ah-pin-btn:hover {
  background: var(--ah-red-hover);
}
#pk-pincode-msg {
  font-size: 0.72rem;
  margin-top: 6px;
}

/* ── RELATED PACKAGES ─────────────────────────────────────────────────── */
.ah-related-card {
  background: var(--ah-white);
  border: 1px solid var(--ah-border);
  border-radius: 12px;
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.ah-related-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

/* ── MOBILE STICKY BOTTOM BAR ─────────────────────────────────────────── */
.ah-mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--ah-border);
  padding: 8px 16px;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.06);
}
