/* ========================================================
   HealthyZM – Test Details page (td- namespace)
   Modern, minimal, conversion-focused layout
   Primary: #0FB9B1  (teal)
   ======================================================== */

:root {
    --td-primary: #0FB9B1;
    --td-primary-dark: #0E9C95;
    --td-primary-soft: #E6F7F6;
    --td-text: #1B2A3A;
    --td-text-muted: #5A6B7B;
    --td-border: #E6EBEF;
    --td-bg: #F7FAFB;
    --td-success: #10B981;
    --td-warn: #F59E0B;
    --td-danger: #EF4444;
    --td-radius: 14px;
    --td-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --td-shadow: 0 4px 14px rgba(16, 24, 40, .08);
}

body.hzm-test-details { background: #fff; }

.td-wrap { color: var(--td-text); font-size: 15px; line-height: 1.55; }
.td-wrap h1, .td-wrap h2, .td-wrap h3, .td-wrap h4 { color: var(--td-text); }

/* Breadcrumb */
.td-crumb {
    padding: 14px 0 6px;
    font-size: 13px;
    color: var(--td-text-muted);
}
.td-crumb a { color: var(--td-text-muted); text-decoration: none; }
.td-crumb a:hover { color: var(--td-primary); }
.td-crumb .sep { margin: 0 6px; opacity: .5; }
.td-crumb .cur { color: var(--td-text); font-weight: 500; }

/* ==================== HERO ==================== */
.td-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-top: 8px;
}
@media (max-width: 991.98px) {
    .td-hero { grid-template-columns: 1fr; }
}

.td-hero-info {
    background: #fff;
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    padding: 24px;
    box-shadow: var(--td-shadow-sm);
}
.td-hero-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.td-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
    line-height: 1;
}
.td-tag.tag-best { background: #FFF4E5; color: #B45309; }
.td-tag.tag-nabl { background: var(--td-primary-soft); color: var(--td-primary-dark); }
.td-tag.tag-new  { background: #E0F2FE; color: #0369A1; }
.td-tag.tag-hot  { background: #FEE2E2; color: #B91C1C; }

.td-hero-title {
    font-size: 26px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em;
}
@media (max-width: 575.98px) { .td-hero-title { font-size: 22px; } }

.td-hero-sub {
    font-size: 14.5px; color: var(--td-text-muted); margin: 0 0 16px;
}

/* Price row */
.td-price-row {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px;
}
.td-price-current {
    font-size: 30px; font-weight: 800; color: var(--td-text);
}
.td-price-old {
    font-size: 16px; color: var(--td-text-muted); text-decoration: line-through;
}
.td-price-off {
    background: var(--td-primary-soft); color: var(--td-primary-dark);
    padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 700;
}
.td-save-line {
    color: var(--td-success); font-size: 13.5px; font-weight: 600; margin-bottom: 14px;
}

/* Highlight chips */
.td-highlights {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    margin-top: 16px;
}
@media (max-width: 575.98px) { .td-highlights { grid-template-columns: repeat(2, 1fr); } }

.td-hl {
    border: 1px solid var(--td-border); border-radius: 10px; padding: 12px;
    background: #fff; text-align: left;
}
.td-hl-ic {
    width: 34px; height: 34px; border-radius: 8px; background: var(--td-primary-soft);
    color: var(--td-primary-dark); display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; margin-bottom: 8px;
}
.td-hl-label { font-size: 11.5px; color: var(--td-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.td-hl-value { font-size: 14px; font-weight: 700; color: var(--td-text); margin-top: 2px; }

/* Trust row */
.td-trust-row {
    display: flex; flex-wrap: wrap; gap: 14px 20px;
    margin-top: 18px; padding-top: 16px;
    border-top: 1px dashed var(--td-border);
    font-size: 13px; color: var(--td-text-muted);
}
.td-trust-row .ti { display: inline-flex; align-items: center; gap: 6px; }
.td-trust-row .ti i { color: var(--td-primary); font-size: 16px; }

/* ==================== BOOKING CARD ==================== */
.td-book-card {
    background: #fff;
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    padding: 20px;
    box-shadow: var(--td-shadow);
    position: sticky; top: 90px;
    align-self: start;
}
.td-book-card .bc-header {
    display: flex; justify-content: space-between; align-items: baseline;
    border-bottom: 1px solid var(--td-border); padding-bottom: 12px; margin-bottom: 14px;
}
.td-book-card .bc-header h3 { font-size: 16px; font-weight: 700; margin: 0; }
.td-book-card .bc-header .bc-price {
    font-size: 20px; font-weight: 800; color: var(--td-primary-dark);
}
.td-book-card .bc-offer {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3C4 100%);
    border: 1px dashed #E0B43A;
    color: #8B6508; font-size: 12.5px; font-weight: 600;
    padding: 8px 10px; border-radius: 8px; margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.td-book-card label {
    font-size: 13px; font-weight: 600; color: var(--td-text); margin-bottom: 4px; display: block;
}
.td-book-card label .required { color: var(--td-danger); }
.td-book-card .form-control {
    height: 44px; border-radius: 8px; border: 1.5px solid var(--td-border); font-size: 14px;
}
.td-book-card .form-control:focus {
    border-color: var(--td-primary); box-shadow: 0 0 0 3px rgba(15,185,177,.15);
}
.td-book-card .td-btn {
    width: 100%; height: 48px; border-radius: 10px; font-weight: 700; font-size: 15px;
    border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 10px; transition: all .15s ease;
}
.td-btn-primary { background: var(--td-primary); color: #fff; }
.td-btn-primary:hover { background: var(--td-primary-dark); color: #fff; }
.td-btn-whatsapp { background: #25D366; color: #fff; }
.td-btn-whatsapp:hover { background: #1EBE5D; color: #fff; }
.td-btn-ghost { background: #F2F5F7; color: var(--td-text); }
.td-btn-ghost:hover { background: #E6EBEF; color: var(--td-text); }
.td-book-card .terms {
    font-size: 12px; color: var(--td-text-muted); text-align: center; margin-top: 12px; margin-bottom: 0;
}
.td-book-card .terms a { color: var(--td-primary-dark); }

/* ==================== SECTION ==================== */
.td-section {
    margin-top: 28px; background: #fff; border: 1px solid var(--td-border);
    border-radius: var(--td-radius); padding: 24px; box-shadow: var(--td-shadow-sm);
}
.td-section h2.td-sec-title {
    font-size: 20px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em;
}
.td-section .td-sec-sub {
    color: var(--td-text-muted); font-size: 14px; margin-bottom: 20px;
}

/* Benefits grid */
.td-benefits {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (max-width: 575.98px) { .td-benefits { grid-template-columns: 1fr; } }
.td-benefit {
    display: flex; gap: 12px; padding: 14px;
    border: 1px solid var(--td-border); border-radius: 10px;
    background: #fff; transition: all .15s ease;
}
.td-benefit:hover { border-color: var(--td-primary); box-shadow: var(--td-shadow-sm); }
.td-benefit .bi {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
    background: var(--td-primary-soft); color: var(--td-primary-dark);
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.td-benefit .bt { font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.td-benefit .bd { font-size: 13px; color: var(--td-text-muted); line-height: 1.5; }

/* Top parameters chips */
.td-topparams {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (max-width: 767.98px) { .td-topparams { grid-template-columns: 1fr; } }
.td-topparam {
    border: 1px solid var(--td-border); border-radius: 10px; padding: 12px 14px;
    background: #fff; display: flex; align-items: center; gap: 10px;
}
.td-topparam .pc {
    width: 28px; height: 28px; border-radius: 8px; background: var(--td-primary-soft);
    color: var(--td-primary-dark); display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.td-topparam .pn { font-weight: 600; font-size: 14px; }

/* Accordion (full list) */
.td-accordion .accordion-item {
    border: 1px solid var(--td-border) !important; border-radius: 10px !important;
    margin-bottom: 10px; overflow: hidden;
}
.td-accordion .accordion-button {
    padding: 14px 16px; font-weight: 600; background: #fff; box-shadow: none;
    font-size: 14.5px;
}
.td-accordion .accordion-button:not(.collapsed) {
    background: var(--td-primary-soft); color: var(--td-primary-dark);
}
.td-accordion .accordion-button:focus { box-shadow: none; }
.td-accordion .accordion-button .count {
    margin-left: auto; margin-right: 14px; font-size: 12px; color: var(--td-text-muted); font-weight: 500;
}
.td-accordion .accordion-body {
    padding: 14px 16px; background: #FBFCFC; font-size: 14px;
}
.td-accordion .accordion-body ul { margin: 0; padding-left: 16px; }
.td-accordion .accordion-body li { margin-bottom: 6px; }

/* Trust promise */
.td-promise {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 767.98px) { .td-promise { grid-template-columns: repeat(2, 1fr); } }
.td-promise-item {
    text-align: center; padding: 14px;
    border: 1px solid var(--td-border); border-radius: 10px;
    background: linear-gradient(180deg, #fff 0%, #F7FBFB 100%);
}
.td-promise-item .pi {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--td-primary-soft); color: var(--td-primary-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 8px;
}
.td-promise-item .pt { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.td-promise-item .pd { font-size: 12.5px; color: var(--td-text-muted); line-height: 1.4; }

/* FAQ */
.td-faq .accordion-item {
    border: 1px solid var(--td-border) !important; border-radius: 10px !important;
    margin-bottom: 10px; overflow: hidden;
}
.td-faq .accordion-button {
    padding: 16px; font-weight: 600; background: #fff; box-shadow: none; font-size: 14.5px;
}
.td-faq .accordion-button:not(.collapsed) {
    background: var(--td-primary-soft); color: var(--td-primary-dark);
}
.td-faq .accordion-button:focus { box-shadow: none; }
.td-faq .accordion-body { padding: 0 16px 16px; font-size: 14px; color: var(--td-text-muted); }

/* Cross-sell */
.td-related-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 991.98px) { .td-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .td-related-grid { grid-template-columns: 1fr; } }
.td-related-card {
    border: 1px solid var(--td-border); border-radius: 12px; padding: 14px;
    background: #fff; display: flex; flex-direction: column; gap: 6px;
    text-decoration: none; color: var(--td-text); transition: all .15s ease;
}
.td-related-card:hover {
    border-color: var(--td-primary); box-shadow: var(--td-shadow); transform: translateY(-2px);
    color: var(--td-text); text-decoration: none;
}
.td-related-card .rc-name {
    font-weight: 700; font-size: 14px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 36px;
}
.td-related-card .rc-count { font-size: 12.5px; color: var(--td-text-muted); }
.td-related-card .rc-price-row {
    display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px;
    border-top: 1px dashed var(--td-border);
}
.td-related-card .rc-price { font-weight: 800; font-size: 16px; color: var(--td-text); }
.td-related-card .rc-old { font-size: 12.5px; color: var(--td-text-muted); text-decoration: line-through; }
.td-related-card .rc-off { font-size: 12px; color: var(--td-primary-dark); font-weight: 700; margin-left: auto; }

/* SEO location block */
.td-seoblock {
    background: linear-gradient(135deg, #F0FBFA 0%, #FFFFFF 100%);
    border: 1px solid var(--td-border);
}
.td-seoblock h3 { font-size: 16px; font-weight: 700; margin: 14px 0 6px; }
.td-seoblock p { color: var(--td-text-muted); font-size: 14px; margin: 0 0 10px; }
.td-seo-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.td-seo-cities a {
    display: inline-block; padding: 6px 12px; border: 1px solid var(--td-border);
    border-radius: 999px; font-size: 12.5px; color: var(--td-text); text-decoration: none; background: #fff;
}
.td-seo-cities a:hover { border-color: var(--td-primary); color: var(--td-primary-dark); }

/* Sticky mobile CTA bar */
.td-mobile-cta {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: #fff; border-top: 1px solid var(--td-border);
    padding: 10px 14px; box-shadow: 0 -4px 16px rgba(16,24,40,.1);
}
.td-mobile-cta .mc-inner {
    display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
}
.td-mobile-cta .mc-price { font-weight: 800; font-size: 18px; color: var(--td-text); line-height: 1.1; }
.td-mobile-cta .mc-price small { display: block; font-size: 11px; font-weight: 500; color: var(--td-text-muted); text-decoration: line-through; }
.td-mobile-cta .td-btn { margin: 0; height: 46px; }
@media (max-width: 991.98px) { .td-mobile-cta { display: block; } body.hzm-test-details { padding-bottom: 80px; } }

/* Error / success messages (reuse existing) */
.error-message { color: var(--td-danger); font-size: 12.5px; margin-top: 4px; display: none; }
.success-message { color: var(--td-success); font-size: 12.5px; margin-top: 4px; display: none; }

/* Utility */
.td-muted { color: var(--td-text-muted); }
.td-small { font-size: 13px; }
