/* TH-14 GOAT Upgrade — completefamilytelehealth.com
 * 12 conversion elements injected on the bridge page.
 */

:root {
  --th14-orange: #ff6b35;
  --th14-green-dark: #1b4332;
  --th14-green-mid: #2d6a4f;
  --th14-green-light: #40916c;
  --th14-green-pale: #95d5b2;
  --th14-red: #d62828;
}

/* ============================================================
 * 1. URGENCY BAR (top of page)
 * ============================================================ */
.th14-urgency-bar {
  position: relative;
  z-index: 1000;
  background: var(--th14-orange);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  padding: 10px 14px;
  text-align: center;
  letter-spacing: 0.2px;
}
.th14-urgency-bar .th14-ub-count {
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  padding: 1px 8px;
  border-radius: 4px;
  margin: 0 2px;
}
.th14-urgency-bar .th14-ub-cta {
  display: inline-block;
  margin-left: 14px;
  background: #fff;
  color: var(--th14-orange);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.th14-urgency-bar .th14-ub-cta:hover { background: #ffe5d6; }
.th14-urgency-bar .th14-ub-timer { font-variant-numeric: tabular-nums; opacity: 0.92; margin-left: 6px; }
@media (max-width: 600px) {
  .th14-urgency-bar { font-size: 12px; padding: 8px 10px; }
  .th14-urgency-bar .th14-ub-cta { display: block; margin: 6px auto 0; max-width: 220px; }
}

/* ============================================================
 * 2. SOCIAL PROOF TICKER
 * ============================================================ */
.th14-ticker {
  background: #f1faee;
  border-top: 1px solid #d8f3dc;
  border-bottom: 1px solid #d8f3dc;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  position: relative;
}
.th14-ticker .th14-tk-track {
  display: flex;
  white-space: nowrap;
  padding: 14px 0;
  animation: th14-tk-scroll 60s linear infinite;
  will-change: transform;
}
.th14-ticker .th14-tk-item {
  display: inline-flex;
  align-items: center;
  margin: 0 26px;
  color: var(--th14-green-dark);
  font-size: 14px;
  font-weight: 500;
}
.th14-ticker .th14-tk-item::before {
  content: "✓";
  display: inline-block;
  background: var(--th14-green-light);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}
@keyframes th14-tk-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.th14-ticker:hover .th14-tk-track { animation-play-state: paused; }

/* ============================================================
 * 3. ROI CALCULATOR
 * ============================================================ */
.th14-roi {
  background: linear-gradient(135deg, #f8fdf6 0%, #e9f5db 100%);
  padding: 60px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.th14-roi-inner { max-width: 760px; margin: 0 auto; }
.th14-roi h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--th14-green-dark);
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.2;
}
.th14-roi .th14-roi-sub {
  text-align: center;
  font-size: 16px;
  color: #52796f;
  margin: 0 0 32px;
}
.th14-roi-grid {
  background: #fff;
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 8px 28px rgba(27, 67, 50, 0.10);
}
.th14-roi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}
.th14-roi-row label {
  flex: 0 0 200px;
  font-weight: 600;
  color: var(--th14-green-dark);
  font-size: 14px;
}
.th14-roi-row input[type="range"] { flex: 1; accent-color: var(--th14-green-light); }
.th14-roi-row .th14-roi-val {
  flex: 0 0 80px;
  text-align: right;
  font-weight: 700;
  font-size: 16px;
  color: var(--th14-green-mid);
  font-variant-numeric: tabular-nums;
}
.th14-roi-result {
  background: var(--th14-green-dark);
  color: #fff;
  padding: 22px 24px;
  border-radius: 12px;
  margin-top: 18px;
  text-align: center;
  font-size: 16px;
  line-height: 1.65;
}
.th14-roi-result strong { color: #ffd166; font-weight: 800; }
.th14-roi-result .th14-roi-savings { font-size: 22px; display: block; margin: 8px 0; }
.th14-roi-cta {
  display: inline-block;
  background: var(--th14-orange);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 32px;
  border-radius: 8px;
  margin-top: 18px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}
.th14-roi-cta:hover { background: #e8541d; color: #fff; }
@media (max-width: 600px) {
  .th14-roi h2 { font-size: 24px; }
  .th14-roi-row { flex-wrap: wrap; }
  .th14-roi-row label { flex: 0 0 100%; }
}

/* ============================================================
 * 4. BEFORE / AFTER COMPARISON
 * ============================================================ */
.th14-compare {
  background: #081c15;
  color: #d8f3dc;
  padding: 60px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.th14-compare-inner { max-width: 1080px; margin: 0 auto; }
.th14-compare h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 36px;
  line-height: 1.2;
}
.th14-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.th14-compare-col {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.th14-compare-col.th14-bad { border-left: 4px solid var(--th14-red); }
.th14-compare-col.th14-good { border-left: 4px solid var(--th14-green-light); }
.th14-compare-col h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.th14-compare-col h3 .th14-pre {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: none;
  display: block;
  opacity: 0.7;
  margin-bottom: 2px;
}
.th14-compare-col ul { list-style: none; padding: 0; margin: 0; }
.th14-compare-col li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  line-height: 1.55;
  font-size: 15px;
  color: #d8f3dc;
}
.th14-compare-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
}
.th14-compare-col.th14-bad li::before {
  content: "✕";
  background: var(--th14-red);
  color: #fff;
}
.th14-compare-col.th14-good li::before {
  content: "✓";
  background: var(--th14-green-light);
  color: #fff;
}
@media (max-width: 720px) {
  .th14-compare-grid { grid-template-columns: 1fr; }
  .th14-compare h2 { font-size: 24px; }
}

/* ============================================================
 * 5. TRUST BADGES
 * ============================================================ */
.th14-trust {
  background: #f3f4f1;
  padding: 26px 20px;
  border-top: 1px solid #e6e8e1;
  border-bottom: 1px solid #e6e8e1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.th14-trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
}
.th14-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--th14-green-dark);
  white-space: nowrap;
}
.th14-trust-badge .th14-tb-icon { font-size: 18px; }

/* ============================================================
 * 6. HOW IT WORKS (3 steps)
 * ============================================================ */
.th14-steps {
  background: #fff;
  padding: 60px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.th14-steps-inner { max-width: 1080px; margin: 0 auto; }
.th14-steps h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--th14-green-dark);
  margin: 0 0 36px;
  line-height: 1.2;
}
.th14-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.th14-step {
  text-align: center;
  padding: 24px 18px;
  background: #f8fdf6;
  border-radius: 14px;
  border: 1px solid #d8f3dc;
}
.th14-step .th14-step-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: var(--th14-green-light);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
}
.th14-step .th14-step-icon { font-size: 36px; display: block; margin-bottom: 8px; }
.th14-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--th14-green-dark);
  margin: 0 0 8px;
}
.th14-step p { color: #52796f; font-size: 15px; line-height: 1.5; margin: 0; }
@media (max-width: 720px) {
  .th14-steps-grid { grid-template-columns: 1fr; }
  .th14-steps h2 { font-size: 24px; }
}

/* ============================================================
 * 7. EXIT INTENT POPUP
 * ============================================================ */
.th14-exit {
  position: fixed;
  inset: 0;
  background: rgba(8, 28, 21, 0.78);
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.th14-exit.th14-show { display: flex; }
.th14-exit-card {
  background: #fff;
  max-width: 480px;
  width: 100%;
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.th14-exit-card h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--th14-green-dark);
  margin: 0 0 12px;
}
.th14-exit-card p { color: #495057; font-size: 16px; line-height: 1.55; margin: 0 0 20px; }
.th14-exit-cta {
  display: inline-block;
  background: var(--th14-orange);
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font-size: 16px;
}
.th14-exit-cta:hover { background: #e8541d; color: #fff; }
.th14-exit-dismiss {
  display: block;
  margin-top: 14px;
  background: none;
  border: 0;
  color: #868e96;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.th14-exit-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  font-size: 24px;
  color: #adb5bd;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
 * 9. STICKY MOBILE CTA
 * ============================================================ */
.th14-sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--th14-orange);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 14px;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.th14-sticky .th14-st-btn {
  display: inline-block;
  background: #fff;
  color: var(--th14-orange);
  padding: 6px 14px;
  border-radius: 6px;
  margin-left: 10px;
  font-weight: 800;
}
@media (max-width: 768px) {
  .th14-sticky { display: block; }
  body.th14-has-sticky { padding-bottom: 64px; }
}

/* ============================================================
 * 10. FAQ EXTENSION
 * ============================================================ */
.th14-faq-extra { max-width: 880px; margin: 0 auto; padding: 0 20px 20px; }
.th14-faq-extra .th14-faq-item {
  border: 1px solid #d8f3dc;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
}
.th14-faq-extra .th14-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--th14-green-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.th14-faq-extra .th14-faq-q::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--th14-green-light);
  transition: transform 0.2s;
}
.th14-faq-extra .th14-faq-item.th14-open .th14-faq-q::after { content: "−"; }
.th14-faq-extra .th14-faq-a {
  padding: 0 20px 16px;
  color: #495057;
  font-size: 15px;
  line-height: 1.6;
  display: none;
}
.th14-faq-extra .th14-faq-item.th14-open .th14-faq-a { display: block; }

/* ============================================================
 * 11. FOOTER UPGRADE (4-col) — overrides minimal th-bridge-footer
 * ============================================================ */
.th14-footer {
  background: #081c15;
  color: #b7e4c7;
  padding: 50px 20px 26px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
.th14-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}
.th14-footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.th14-footer a { color: #74c69d; text-decoration: none; display: block; padding: 3px 0; }
.th14-footer a:hover { color: #fff; text-decoration: underline; }
.th14-footer .th14-footer-tag { color: #95d5b2; font-size: 13px; margin-top: 6px; line-height: 1.55; }
.th14-footer .th14-footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0 0 6px;
}
.th14-footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 12px;
  color: #74c69d;
}
.th14-footer-disclaimer {
  max-width: 880px;
  margin: 14px auto 0;
  font-size: 11px;
  color: #95d5b2;
  line-height: 1.55;
  opacity: 0.8;
}
@media (max-width: 760px) {
  .th14-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .th14-footer-inner { grid-template-columns: 1fr; }
}

/* Hide the legacy minimal footer once TH14 footer is rendered */
.th14-footer-active .th-bridge-footer { display: none !important; }

/* TH-22: hide the Elementor th10foot0 disclaimer block — its content is
 * already inside the TH-14 4-column footer, so showing both creates a
 * duplicate footer above the real one. */
.th14-footer-active [data-id="th10foot0"],
[data-id="th10foot0"].elementor-section { display: none !important; }
