/* Common CTA button shared with testimonials and error pages */
.ec-btn {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ec-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.25);
}

.ec-btn.secondary {
  background: #e5e7eb;
  color: #111827;
}

.ec-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Testimonials modal & widget styles */
#ec-testimonial-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); display:none; z-index: 99998; }
#ec-testimonial-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 95%; max-width: 540px; background: #fff; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); display:none; z-index: 99999; }
#ec-testimonial-modal .ec-header { padding: 14px 18px; background: #022728; color: #fff; border-top-left-radius: 12px; border-top-right-radius: 12px; display:flex; align-items:center; justify-content: space-between; }
#ec-testimonial-modal .ec-body { padding: 16px 18px; }
#ec-testimonial-modal .ec-footer { padding: 14px 18px; display:flex; justify-content:flex-end; gap:10px; }
#ec-testimonial-modal .ec-close { background: transparent; border: none; color: #fff; font-size: 20px; cursor: pointer; }
.ec-input, .ec-textarea, .ec-select { width:100%; padding:10px 12px; border:1px solid #e5e7eb; border-radius:8px; font-size:14px; }
.ec-textarea { min-height: 120px; resize: vertical; }
.ec-row { display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.ec-label { font-weight:600; color:#334155; font-size:13px; margin-bottom:6px; display:block; }
.ec-btn { background: linear-gradient(135deg, #0f766e, #0d9488); color: white; border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; display:inline-flex; align-items:center; gap:8px; }
.ec-btn.secondary { background: #e5e7eb; color: #111827; }
.ec-btn:disabled { opacity: .75; cursor: not-allowed; }
.ec-stars { display:flex; gap:6px; }
.ec-star { cursor:pointer; font-size: 22px; color: #d1d5db; }
.ec-star.active { color: #f59e0b; }

/* spinner inside button */
.ec-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.6); border-top-color: #fff; border-radius: 50%; display:inline-block; animation: ecSpin 0.8s linear infinite; }
@keyframes ecSpin { to { transform: rotate(360deg); } }

/* Public testimonials list */
.ec-testimonials { display:grid; gap:16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ec-testimonial-card { border:1px solid #e5e7eb; border-radius: 12px; padding:16px; background:#fff; box-shadow: 0 4px 10px rgba(2,39,40,0.05); }
.ec-testimonial-title { font-weight:700; color:#022728; margin:0 0 6px; }
.ec-testimonial-name { color:#475569; font-size: 13px; margin-bottom: 8px; }
.ec-stars-inline { color:#f59e0b; margin-bottom: 8px; }
.ec-empty { color:#64748b; }

/* Slim horizontal ticker for hero */
.ec-ticker { position: relative; overflow: hidden; width: 100%; height: 36px; }
.ec-ticker-track { position: absolute; white-space: nowrap; will-change: transform; animation: ecTickerScroll 28s linear infinite; }
.ec-ticker-item { display: inline-flex; align-items: center; gap: 8px; margin-right: 28px; padding: 6px 10px; border-radius: 9999px; background: rgba(255,255,255,0.85); color:#022728; border:1px solid rgba(2,39,40,0.08); transform: translateZ(0); transition: transform .2s ease; }
.ec-ticker-item:hover { transform: scale(1.05); }
.ec-ticker-stars { color:#f59e0b; font-size: 12px; }
@keyframes ecTickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Compact review chip */
.ec-chip { display:inline-flex; align-items:center; gap:6px; padding:8px 10px; border:1px solid #e5e7eb; border-radius:12px; background:#fff; }

/* Inline alert styles for modal feedback */
.ec-alert-success { margin: 8px 0 12px; padding: 10px 12px; border-radius: 8px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; font-weight: 600; }
.ec-alert-error { margin: 8px 0 12px; padding: 10px 12px; border-radius: 8px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; font-weight: 600; }