/* ============================================================
   MedScribe AI — Pricing / Subscription Plans page
   ai-medical-scribe-pricing.css
   Page-specific styles ONLY. Reuses the existing HospiSmart
   Bootstrap 5.0.2 setup, icons and brand colours.
   Fonts: Playfair Display (headings) + Noto Serif (body)
   ============================================================ */

:root {
  --pr-navy: #16294d;
  --pr-heading: #16294d;
  --pr-body: #55606f;
  --pr-muted: #8a94a3;

  --pr-blue: #2b5dce;
  --pr-link: #2156d9;
  --pr-red: #d1471f;
  --pr-orange: #f36f28;
  --pr-orange-2: #e8751a;
  --pr-green: #1a7a55;
  --pr-dark: #14213b;

  --pr-page-bg: #f6fbff;
  --pr-card: #ffffff;
  --pr-box: #f4f7fc;
  --pr-border: #e9eef6;
  --pr-border-soft: #eef2f8;

  --pr-shadow-sm: 0 2px 12px rgba(22, 41, 77, .06);
  --pr-shadow-md: 0 14px 38px rgba(22, 41, 77, .09);
  --pr-shadow-lg: 0 22px 55px rgba(22, 41, 77, .14);
  --pr-radius: 16px;
  --pr-radius-lg: 22px;
}

/* ------------------------------------------------------------
   Base scope
   ------------------------------------------------------------ */
body {
  font-family: 'Noto Serif', Georgia, serif;
  color: var(--pr-body);
  background: var(--pr-page-bg);
  overflow-x: hidden;
}

.pricing-hero h1,
.pricing-cards-sec h3,
.compare-sec h2,
.pc-amount,
.pc-amount-custom {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ============================================================
   1. HERO
   ============================================================ */
.pricing-hero {
  position: relative;
  padding: 130px 0 46px;
  background:
    radial-gradient(900px 460px at 92% 0%, #e8f1ff 0%, rgba(232, 241, 255, 0) 60%),
    radial-gradient(760px 520px at 4% 120%, #fdeee2 0%, rgba(253, 238, 226, 0) 60%),
    var(--pr-page-bg);
  overflow: hidden;
}

.pricing-title {
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}

.pricing-title .tx-blue { color: var(--pr-blue); }
.pricing-title .tx-red { color: var(--pr-red); }
.pricing-title .tx-navy { color: var(--pr-navy); }

.pricing-sub {
  max-width: 760px;
  margin: 0 auto 26px;
  font-size: clamp(.98rem, 1.4vw, 1.12rem);
  color: var(--pr-body);
  line-height: 1.7;
}

/* Trust / compliance pills */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--pr-border);
  color: var(--pr-navy);
  font-size: .9rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 40px;
  box-shadow: var(--pr-shadow-sm);
}

.trust-pill i { font-size: 1rem; }
.trust-pill .tp-green { color: #16a34a; }
.trust-pill .tp-red { color: #e0532b; }
.trust-pill .tp-blue { color: var(--pr-blue); }

/* ============================================================
   2. PRICING CARDS
   ============================================================ */
.pricing-cards-sec {
  padding: 26px 0 70px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pr-card);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius-lg);
  padding: 34px 28px 30px;
  box-shadow: var(--pr-shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pr-shadow-lg);
}

/* Featured (Most Popular) */
.price-card.featured {
  border: 2px solid var(--pr-orange);
  box-shadow: 0 24px 60px rgba(226, 117, 26, .18);
}

.price-card.featured .pc-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (min-width: 992px) {
  .price-card.featured {
    transform: scale(1.03);
  }
  .price-card.featured:hover {
    transform: scale(1.03) translateY(-6px);
  }
}

/* Badges */
.pc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 6px 12px;
  border-radius: 30px;
  line-height: 1;
}

.badge-blue {
  position: absolute;
  top: 26px;
  right: 26px;
  background: #e9f1ff;
  color: var(--pr-link);
}

.badge-indigo {
  position: absolute;
  top: 26px;
  right: 26px;
  background: #ecebfb;
  color: #5b4bd6;
}

.badge-popular {
  align-self: center;
  margin: -46px auto 14px;
  background: linear-gradient(90deg, #f7861f 0%, #ef5f2a 100%);
  color: #fff;
  font-size: .74rem;
  padding: 8px 18px;
  box-shadow: 0 8px 18px rgba(233, 106, 30, .35);
}

.badge-popular i { font-size: .8rem; }

/* Name + description */
.pc-name {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--pr-navy);
  line-height: 1.2;
  margin: 6px 0 10px;
  padding-right: 90px;
}

.price-card.featured .pc-name { padding-right: 0; }
.badge-indigo + .pc-name { padding-right: 0; }

.pc-desc {
  color: var(--pr-muted);
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 48px;
}

/* Price box */
.pc-price-box {
  background: var(--pr-box);
  border-radius: 14px;
  padding: 22px 22px;
  margin-bottom: 22px;
}

.pc-amount {
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--pr-navy);
  line-height: 1;
  letter-spacing: -1px;
}

.pc-amount .rupee { font-size: 2rem; }

.pc-amount-custom {
  font-size: 2.4rem;
  letter-spacing: -.5px;
}

.pc-per {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--pr-muted);
  letter-spacing: 0;
  margin-left: 4px;
}

.pc-amount-note {
  margin-top: 8px;
  font-size: .84rem;
  color: var(--pr-muted);
}

/* Feature list */
.pc-feat-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pr-muted);
  margin-bottom: 14px;
}

.pc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1 1 auto;
}

.pc-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: #3f4a5a;
  line-height: 1.45;
  margin-bottom: 14px;
}

.pc-features li i {
  flex: 0 0 auto;
  font-size: 1.05rem;
  margin-top: 1px;
}

.feat-blue li i { color: var(--pr-blue); }
.feat-orange li i { color: var(--pr-orange); }

/* CTA buttons */
.pc-cta { margin-top: auto; }

.pc-btn {
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s ease;
}

.pc-btn i { transition: transform .2s ease; }
.pc-btn:hover i { transform: translateX(4px); }

.btn-outline-blue {
  background: #fff;
  color: var(--pr-blue);
  border: 1.6px solid #cdd9f5;
}
.btn-outline-blue:hover {
  background: var(--pr-blue);
  border-color: var(--pr-blue);
  color: #fff;
}

.btn-solid-orange {
  background: linear-gradient(90deg, #f7861f 0%, #ef5f2a 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 22px rgba(233, 106, 30, .32);
}
.btn-solid-orange:hover {
  color: #fff;
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(233, 106, 30, .42);
}

.btn-solid-dark {
  background: var(--pr-dark);
  color: #fff;
  border: none;
}
.btn-solid-dark:hover {
  background: #0c1730;
  color: #fff;
}

/* ------------------------------------------------------------
   2b. Billing duration switch (CSS-only)
   ------------------------------------------------------------ */
.bs-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.billing-select { margin-bottom: 22px; }

.bs-title {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pr-navy);
  margin-bottom: 10px;
}

.bs-tabs {
  display: flex;
  gap: 6px;
  background: #eef1f7;
  border-radius: 12px;
  padding: 6px;
}

.bs-tab {
  flex: 1 1 0;
  text-align: center;
  border-radius: 9px;
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all .18s ease;
  border: 1px solid transparent;
}

.bs-tab-name {
  font-size: .8rem;
  font-weight: 700;
  color: #5a6473;
  line-height: 1.15;
}

.bs-tab-price {
  font-size: .68rem;
  color: var(--pr-muted);
}

.bs-tab:hover { background: #e3e8f2; }

/* Amounts + terms: hidden by default, revealed by the checked radio */
.amt { display: none; }
.bs-term { display: none; }

.bs-term {
  font-size: .82rem;
  color: #7a6a2f;
  background: #fdf6e3;
  border: 1px solid #f3e6bf;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
  line-height: 1.4;
}
.bs-term i { color: #e0a325; margin-right: 4px; }
.bs-term b { color: #6d5c22; }

/* 1 Month selected */
#bill-1m:checked ~ .pc-inner .amt-1m { display: inline; }
#bill-1m:checked ~ .pc-inner .term-1m { display: flex; }
#bill-1m:checked ~ .pc-inner .bs-tab[for="bill-1m"] {
  background: #fff;
  border-color: #d7e0f2;
  box-shadow: 0 2px 6px rgba(22, 41, 77, .08);
}
#bill-1m:checked ~ .pc-inner .bs-tab[for="bill-1m"] .bs-tab-name { color: var(--pr-link); }

/* 3 Months selected */
#bill-3m:checked ~ .pc-inner .amt-3m { display: inline; }
#bill-3m:checked ~ .pc-inner .term-3m { display: block; }
#bill-3m:checked ~ .pc-inner .bs-tab[for="bill-3m"] {
  background: #fff;
  border-color: #d7e0f2;
  box-shadow: 0 2px 6px rgba(22, 41, 77, .08);
}
#bill-3m:checked ~ .pc-inner .bs-tab[for="bill-3m"] .bs-tab-name { color: var(--pr-link); }

/* 6 Months selected */
#bill-6m:checked ~ .pc-inner .amt-6m { display: inline; }
#bill-6m:checked ~ .pc-inner .term-6m { display: block; }
#bill-6m:checked ~ .pc-inner .bs-tab[for="bill-6m"] {
  background: #fff;
  border-color: #d7e0f2;
  box-shadow: 0 2px 6px rgba(22, 41, 77, .08);
}
#bill-6m:checked ~ .pc-inner .bs-tab[for="bill-6m"] .bs-tab-name { color: var(--pr-link); }

/* Keyboard focus visibility on tabs */
.bs-radio:focus-visible ~ .pc-inner .bs-tabs {
  outline: 2px solid #bcd0ff;
  outline-offset: 2px;
  border-radius: 12px;
}

/* ============================================================
   3. COMPARISON TABLE
   ============================================================ */
.compare-sec {
  padding: 20px 0 80px;
}

.compare-title {
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--pr-navy);
  letter-spacing: -.5px;
  margin-bottom: 34px;
}

.compare-wrap {
  background: #fff;
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius-lg);
  box-shadow: var(--pr-shadow-md);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: middle;
}

.compare-table thead th {
  border-bottom: 1px solid var(--pr-border);
}

.ct-feature {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--pr-muted);
  width: 34%;
}

.ct-plan {
  text-align: center;
  width: 22%;
}

.ct-plan-name {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: var(--pr-navy);
  letter-spacing: .3px;
}

.ct-plan-note {
  display: block;
  font-size: .78rem;
  color: var(--pr-muted);
  margin-top: 2px;
}

/* Highlighted practitioner column */
.ct-plan-hi .ct-plan-name { color: var(--pr-orange); }
.ct-plan-hi .ct-plan-name i { font-size: .8rem; }

.compare-table thead .ct-plan-hi {
  background: #fff6ef;
}

.compare-table td.ct-hi {
  background: #fff9f4;
  text-align: left;
  font-weight: 600;
  color: var(--pr-navy);
}

.compare-table td:not(.ct-feature):not(.ct-hi) {
  text-align: left;
  color: #3f4a5a;
}

/* Category rows */
.ct-cat td {
    background: #eff4fd;
    color: var(--pr-link)!important;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .8px;
    padding: 11px 18px;
}

/* Body row separators */
.compare-table tbody tr:not(.ct-cat) td {
  border-bottom: 1px solid var(--pr-border-soft);
}

.ct-feature {
  color: #2f3a49;
  font-weight: 500;
  font-size: .95rem;
}

.compare-table tbody .ct-feature { font-weight: 500; color: #37414f; }

.ct-i {
  color: #b8c1cf;
  font-size: .85rem;
  margin-left: 4px;
  display: none;
}

.ct-link {
  color: var(--pr-link) !important;
  font-weight: 600;
}

.ct-yes { color: #16a34a; font-size: 1.15rem; font-weight: 700; }
.ct-no { color: #c2cad6; font-size: 1rem; }

/* Closing note */
.compare-note {
  margin-top: 40px;
}

.compare-note p {
  color: var(--pr-muted);
  font-size: 1rem;
  margin-bottom: 18px;
}

.contact-btn {
  background: linear-gradient(90deg, #2a63e0 0%, #2350c8 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 26px rgba(37, 86, 217, .3);
  transition: all .2s ease;
}
.contact-btn:hover {
  color: #fff;
  filter: brightness(1.06);
  box-shadow: 0 16px 32px rgba(37, 86, 217, .4);
}
.contact-btn i:last-child { transition: transform .2s ease; }
.contact-btn:hover i:last-child { transform: translateX(4px); }

/* ============================================================
   4. RESPONSIVE
   ============================================================ */

/* Large tablet / small laptop */
@media (max-width: 1199px) {
  .pc-name { font-size: 1.35rem; }
  .pc-amount { font-size: 2.3rem; }
}

/* Tablet */
@media (max-width: 991px) {
  .pricing-hero { padding: 112px 0 40px; }

  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-6px); }

  .badge-popular { margin-top: -44px; }

  .pc-desc { min-height: 0; }
}

/* Landscape phones — stack cards single column */
@media (max-width: 767px) {
  .pricing-hero { padding: 100px 0 34px; }

  .trust-pill { font-size: .82rem; padding: 8px 13px; }

  .price-card { padding: 30px 22px 26px; }

  .badge-blue,
  .badge-indigo { top: 22px; right: 22px; }

  .pc-name { padding-right: 80px; }

  /* --- Comparison table becomes stacked cards --- */
  .compare-wrap {
    overflow-x: visible;
    padding: 6px;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .compare-table { min-width: 0; }

  .compare-table thead { display: none; }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tbody tr:not(.ct-cat) {
    background: #fff;
    border: 1px solid var(--pr-border);
    border-radius: 14px;
    box-shadow: var(--pr-shadow-sm);
    margin-bottom: 16px;
    padding: 6px 4px 10px;
    overflow: hidden;
  }

  .compare-table tbody tr:not(.ct-cat) td:first-child {
    background: #f6f9fe;
    font-weight: 700;
    color: var(--pr-navy);
    border-radius: 10px;
    margin: 4px 6px 8px;
  }

  .compare-table tbody tr:not(.ct-cat) td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    text-align: right;
    border-bottom: 1px solid var(--pr-border-soft) !important;
    padding: 11px 14px;
  }

  .compare-table tbody tr:not(.ct-cat) td:last-child { border-bottom: none !important; }

  .compare-table td.ct-hi { background: #fff9f4; }

  .compare-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: .74rem;
    letter-spacing: .4px;
    color: var(--pr-muted);
    text-transform: uppercase;
    text-align: left;
    flex: 0 0 auto;
    margin-right: 10px;
  }

  /* First cell (feature name) has no label prefix */
  .compare-table tbody tr:not(.ct-cat) td:first-child { justify-content: flex-start; text-align: left; }
  .compare-table tbody tr:not(.ct-cat) td:first-child::before { content: none; }

  .ct-cat td {
    border-radius: 10px;
    margin-bottom: 14px;
    text-align: left;
  }
  .ct-cat td::before { content: none; }
}

/* Small phones */
@media (max-width: 480px) {
  .pricing-title { font-size: 1.7rem; }
  .pricing-sub { font-size: .95rem; }

  .price-card { padding: 26px 18px 24px; }
  .pc-name { font-size: 1.25rem; padding-right: 70px; }
  .pc-amount { font-size: 2.1rem; }
  .pc-amount-custom { font-size: 2rem; }

  .bs-tab-name { font-size: .72rem; }
  .bs-tab-price { font-size: .62rem; }

  .badge-blue,
  .badge-indigo { font-size: .64rem; padding: 5px 9px; }

  .contact-btn { padding: 12px 22px; font-size: .92rem; }

  .compare-table td[data-label]::before { font-size: .68rem; }
}
