/* Diagnostics storefront */

.dx-page {
  --dx-navy: #034680;
  --dx-navy-deep: #022a4d;
  --dx-ink: #142433;
  --dx-muted: #5f7288;
  --dx-line: #d9e4ef;
  --dx-surface: #f5f8fb;
  --dx-white: #ffffff;
  --dx-accent: #d96500;
  --dx-soft: #fff5ef;
  --dx-display: "Lora", Georgia, serif;
  --dx-sans: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(1100px 420px at 8% -8%, rgba(3, 70, 128, 0.07), transparent 58%),
    radial-gradient(900px 380px at 100% 0%, rgba(217, 101, 0, 0.08), transparent 52%),
    var(--dx-surface);
  color: var(--dx-ink);
  font-family: var(--dx-sans);
}

.dx-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.dx-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dx-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: dx-hero-pan 16s ease-in-out infinite alternate;
}

.dx-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(2, 26, 48, 0.86) 0%, rgba(2, 42, 77, 0.58) 46%, rgba(2, 42, 77, 0.28) 100%),
    linear-gradient(180deg, rgba(2, 26, 48, 0.28) 0%, rgba(2, 26, 48, 0.78) 100%);
}

.dx-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 110px;
  padding-bottom: 56px;
}

.dx-hero-brand {
  margin: 0 0 8px;
  font-family: var(--dx-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  animation: dx-rise 0.65s ease both;
}

.dx-hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--dx-sans);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  max-width: 28ch;
  animation: dx-rise 0.7s ease 0.05s both;
}

.dx-hero-lead {
  margin: 0 0 22px;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  animation: dx-rise 0.7s ease 0.1s both;
}

.dx-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: dx-rise 0.7s ease 0.15s both;
}

.dx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dx-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.dx-btn-primary {
  background: var(--dx-accent);
  color: #fff;
  border: 1px solid transparent;
}

.dx-btn-primary:hover {
  background: #c05500;
  color: #fff;
}

.dx-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.dx-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.dx-btn-outline {
  background: var(--dx-white);
  color: var(--dx-navy);
  border: 1px solid var(--dx-line);
}

.dx-btn-outline:hover {
  border-color: var(--dx-navy);
  color: var(--dx-navy-deep);
}

.dx-store {
  padding: 36px 0 72px;
}

.dx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.dx-tab {
  appearance: none;
  border: 1px solid var(--dx-line);
  background: var(--dx-white);
  color: var(--dx-muted);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dx-tab:hover {
  color: var(--dx-navy);
  border-color: #b9cce0;
}

.dx-tab.is-active {
  background: var(--dx-navy);
  border-color: var(--dx-navy);
  color: #fff;
}

.dx-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.dx-search,
.dx-select {
  min-height: 46px;
  border: 1px solid var(--dx-line);
  border-radius: 12px;
  background: var(--dx-white);
  color: var(--dx-ink);
  padding: 0 14px;
  font-size: 0.95rem;
}

.dx-search {
  flex: 1 1 240px;
}

.dx-select {
  flex: 0 1 220px;
}

.dx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dx-card {
  display: flex;
  flex-direction: column;
  background: var(--dx-white);
  border: 1px solid var(--dx-line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: dx-rise 0.55s ease both;
}

.dx-card:hover {
  transform: translateY(-3px);
  border-color: #b7cce1;
  box-shadow: 0 18px 40px -28px rgba(3, 70, 128, 0.55);
  text-decoration: none;
  color: inherit;
}

.dx-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, rgba(3, 70, 128, 0.12), rgba(217, 101, 0, 0.1)),
    var(--dx-soft);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.dx-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dx-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
}

.dx-card-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dx-accent);
}

.dx-card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dx-navy-deep);
  line-height: 1.3;
}

.dx-card-title a {
  color: inherit;
  text-decoration: none;
}

.dx-card-title a:hover {
  color: var(--dx-navy);
}

.dx-card-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--dx-muted);
  line-height: 1.45;
}

.dx-card-price {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--dx-navy);
}

.dx-card-price .old {
  margin-left: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dx-muted);
  text-decoration: line-through;
}

.dx-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}

.dx-card-actions .dx-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}
}

.dx-empty {
  grid-column: 1 / -1;
  padding: 42px 20px;
  text-align: center;
  border: 1px dashed var(--dx-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--dx-muted);
}

.dx-pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.dx-detail {
  padding: 36px 0 72px;
}

.dx-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.dx-detail-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--dx-line);
  background: var(--dx-soft);
  aspect-ratio: 4 / 3;
}

.dx-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dx-detail-panel {
  background: var(--dx-white);
  border: 1px solid var(--dx-line);
  border-radius: 22px;
  padding: 24px;
}

.dx-detail-panel h1 {
  margin: 6px 0 12px;
  font-family: var(--dx-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--dx-navy-deep);
  line-height: 1.15;
}

.dx-detail-price {
  margin: 0 0 16px;
  font-size: 1.45rem;
  font-weight: 750;
  color: var(--dx-navy);
}

.dx-detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dx-detail-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--dx-line);
  font-size: 0.95rem;
}

.dx-detail-list strong {
  flex: 0 0 140px;
  color: var(--dx-muted);
  font-weight: 650;
}

.dx-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.dx-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--dx-soft);
  color: var(--dx-navy-deep);
  font-size: 0.82rem;
  font-weight: 650;
}

@keyframes dx-hero-pan {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes dx-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dx-book {
  padding: 36px 0 72px;
}

.dx-book-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: start;
}

.dx-book-summary,
.dx-book-form {
  background: var(--dx-white);
  border: 1px solid var(--dx-line);
  border-radius: 22px;
  padding: 22px;
}

.dx-book-summary h2,
.dx-book-form h3 {
  margin: 4px 0 8px;
  color: var(--dx-navy-deep);
  font-family: var(--dx-display);
}

.dx-book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.dx-book-grid label,
.dx-terms {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--dx-muted);
}

.dx-book-grid input,
.dx-book-grid select,
.dx-book-grid textarea {
  min-height: 44px;
  border: 1px solid var(--dx-line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dx-ink);
  background: #fff;
}

.dx-book-grid textarea {
  min-height: 92px;
  resize: vertical;
}

.dx-span-2 {
  grid-column: 1 / -1;
}

.dx-terms {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-weight: 500;
  color: var(--dx-ink);
}

.dx-terms input {
  margin-top: 3px;
}

.dx-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dx-muted, #64748b);
  line-height: 1.35;
}

.dx-book-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.92rem;
}

.dx-book-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.dx-patient-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.dx-field-spacer {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.2;
  visibility: hidden;
}

.dx-btn-compact {
  min-height: 44px;
  width: 100%;
  padding: 0 14px;
  font-size: 0.9rem;
}

.dx-success-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--dx-white);
  border: 1px solid var(--dx-line);
  border-radius: 22px;
  padding: 36px 28px;
  animation: dx-rise 0.55s ease both;
}

.dx-success-card h1 {
  margin: 10px 0 12px;
  font-family: var(--dx-display);
  color: var(--dx-navy-deep);
}

.dx-success-code {
  display: inline-flex;
  margin: 8px 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--dx-soft);
  color: var(--dx-navy);
  font-weight: 750;
  letter-spacing: 0.04em;
}

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

  .dx-detail-grid,
  .dx-book-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dx-hero-inner {
    padding-top: 96px;
    padding-bottom: 40px;
  }

  .dx-grid {
    grid-template-columns: 1fr;
  }

  .dx-select {
    flex: 1 1 100%;
  }
}
