/* ============================================================
   Highmark Painters & Handymen — Conversion Framework CSS
   Phase 12 Wave 5 Implementation
   ============================================================ */

/* ---- Jobber Form Wrapper ---- */
.form-wrapper {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px 24px;
  margin: 30px 0;
  text-align: center;
}

.form-wrapper__headline {
  font-size: 22px;
  font-weight: 700;
  color: #102A43;
  margin: 0 0 6px;
}

.form-wrapper__subheadline {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
}

.form-wrapper iframe {
  width: 100%;
  min-height: 400px;
  border: none;
}

.form-wrapper__phone-fallback {
  font-size: 14px;
  color: #666;
  margin-top: 16px;
}

.form-wrapper__phone-fallback a {
  color: #7A2E2E;
  font-weight: 700;
  text-decoration: none;
}

.form-wrapper__phone-fallback a:hover {
  text-decoration: underline;
}

/* ---- Trust Cluster (enhanced) ---- */
.trust-cluster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.trust-cluster.trust-compact {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 14px;
  justify-content: center;
}

.trust-item {
  padding: 15px;
  background: #f9f9f9;
  border-left: 3px solid #D5A249;
}

.trust-item strong {
  display: block;
  margin-bottom: 5px;
  color: #102A43;
}

.trust-item span {
  font-size: 13px;
  color: #666;
}

.trust-compact .trust-item {
  padding: 0;
  background: none;
  border-left: none;
  color: #333;
}

/* ---- Review Badge (inline) ---- */
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
}

.review-badge__stars {
  color: #D5A249;
  font-size: 16px;
  letter-spacing: 1px;
}

.review-badge a {
  color: #7A2E2E;
  text-decoration: none;
}

.review-badge a:hover {
  text-decoration: underline;
}

/* ---- Sticky Mobile CTA Bar ---- */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: none; /* JS controls visibility */
  z-index: 998;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.12);
}

.sticky-cta-bar.is-visible {
  display: flex;
}

.sticky-cta-bar__estimate {
  flex: 0 0 60%;
  background: #D5A249;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #102A43;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  min-height: 48px;
}

.sticky-cta-bar__estimate:hover {
  background: #c49340;
}

.sticky-cta-bar__phone {
  flex: 0 0 40%;
  background: #102A43;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  min-height: 48px;
}

.sticky-cta-bar__phone:hover {
  background: #1a3b5c;
}

.sticky-cta-bar__phone svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Hide sticky bar on desktop */
@media (min-width: 769px) {
  .sticky-cta-bar { display: none !important; }
}

/* Add bottom padding to body so sticky bar doesn't obscure content */
body.has-sticky-cta {
  padding-bottom: 56px;
}

@media (min-width: 769px) {
  body.has-sticky-cta { padding-bottom: 0; }
}

/* ---- Exit-Intent Overlay ---- */
.exit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.exit-overlay.is-active {
  display: flex;
}

.exit-overlay__card {
  background: #102A43;
  color: #fff;
  border-radius: 10px;
  padding: 40px 36px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.exit-overlay__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.exit-overlay__close:hover {
  color: #fff;
}

.exit-overlay__heading {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}

.exit-overlay__text {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
  line-height: 1.5;
}

.exit-overlay__cta {
  display: inline-block;
  background: #D5A249;
  color: #102A43;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 16px;
}

.exit-overlay__cta:hover {
  background: #c49340;
}

.exit-overlay__phone {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.exit-overlay__phone a {
  color: #D5A249;
  text-decoration: none;
  font-weight: 700;
}

.exit-overlay__phone a:hover {
  text-decoration: underline;
}

/* Hide exit-intent on mobile (not supported) */
@media (max-width: 768px) {
  .exit-overlay { display: none !important; }
}
