/* EA Testimonials front-end styles */
.ea-testimonials-panel{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:28px;
  padding:40px 38px;
  box-shadow:0 12px 34px rgba(17,24,39,0.07);
  margin:0 auto 40px;
  width:100%;
  max-width:none;
  box-sizing:border-box;
}

.ea-testimonials-title{
  margin:0;
  text-align:center;
}

.ea-testimonials-intro{
  color:#374151;
  font-size:1.05rem;
  line-height:1.65;
  text-align:center;
  margin:12px auto 0;
  max-width:72ch;
}

.ea-testimonials-carousel{
  position:relative;
  width:100%;
  max-width:none;
  margin:18px auto 0;
  overflow:hidden;
}

.ea-testimonials-track{
  display:flex;
  gap:0;
  align-items:flex-start;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -ms-overflow-style:none;
  scrollbar-width:none;
  padding:0;
  margin:0;
  transition:height .34s ease;
  will-change:height;
}
.ea-testimonials-track::-webkit-scrollbar{
  display:none;
}

.ea-testimonials-slide{
  flex:0 0 100%;
  min-width:100%;
  max-width:100%;
  box-sizing:border-box;
  scroll-snap-align:center;
  scroll-snap-stop:always;
  padding:4px 4px 8px;
}

.ea-testimonials-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:18px;
}

.ea-testimonials-arrow{
  width:38px;
  height:38px;
  padding:0;
  border-radius:999px;
  border:1px solid #d1d5db;
  background:#ffffff;
  color:#0b2a4a;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  touch-action:manipulation;
  appearance:none;
  -webkit-appearance:none;
  box-shadow:0 10px 24px rgba(17,24,39,0.08);
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.ea-testimonials-arrow-icon{
  width:14px;
  height:14px;
  display:block;
  flex:0 0 auto;
}
.ea-testimonials-arrow:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(17,24,39,0.12);
}
.ea-testimonials-arrow:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.ea-testimonials-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.ea-testimonials-dot{
  width:10px;
  height:10px;
  padding:0;
  border:none;
  border-radius:999px;
  background:#cbd5e1;
  cursor:pointer;
  transition:transform .18s ease, opacity .18s ease, background .18s ease;
}
.ea-testimonials-dot:hover{
  transform:scale(1.08);
}
.ea-testimonials-dot.is-active{
  background:var(--global-palette2, #f36f21);
  transform:scale(1.18);
}

.ea-testimonials-grid{
  display:grid;
  gap:16px;
  margin-top:18px;
  width:100%;
  justify-items:center;
}
.ea-testimonials-grid.cols-1{ grid-template-columns:1fr; }
.ea-testimonials-grid.cols-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.ea-testimonials-grid.cols-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.ea-testimonials-grid.is-single{ max-width:none; margin-left:auto; margin-right:auto; }

.ea-testimonial-card{
  position:relative;
  width:100%;
  min-height:0;
  height:auto;
  box-sizing:border-box;
  border:1px solid #e5e7eb;
  border-radius:22px;
  padding:28px 24px 22px;
  background:linear-gradient(180deg, rgba(11,42,74,0.045) 0%, #ffffff 72%);
  box-shadow:0 12px 28px rgba(17,24,39,0.08);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.ea-testimonial-card::before{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  top:0;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--global-palette2, #f36f21), var(--global-palette1, #0b2a4a));
  opacity:.24;
}

.ea-testimonial-photo-wrap{
  margin:4px 0 10px;
}
.ea-testimonial-photo{
  width:96px;
  height:96px;
  object-fit:cover;
  border-radius:999px;
  display:block;
  border:4px solid #ffffff;
  box-shadow:0 14px 28px rgba(17,24,39,0.12);
}

.ea-testimonial-content{
  position:relative;
  width:100%;
  color:#374151;
  font-size:clamp(.97rem, .955rem + .08vw, 1.02rem);
  line-height:1.72;
  padding:16px 8px 8px;
}
.ea-testimonial-content.has-quotes{
  padding:28px 16px 22px;
}
.ea-testimonial-quote-text{
  max-width:62ch;
  margin:0 auto;
}
.ea-testimonial-quote-text.is-long{
  max-width:60ch;
  font-size:.985em;
  line-height:1.68;
}
.ea-testimonial-quote-text.is-very-long{
  max-width:58ch;
  font-size:.93em;
  line-height:1.6;
}
.ea-testimonial-quote-text p{
  margin:0 0 12px;
}
.ea-testimonial-quote-text p:last-child{
  margin-bottom:0;
}
.ea-testimonial-quote-mark{
  position:absolute;
  font-family:Georgia, "Times New Roman", serif;
  font-size:74px;
  line-height:.72;
  color:rgba(11,42,74,0.15);
  font-weight:700;
  pointer-events:none;
}
.ea-testimonial-quote-mark-open{
  top:-4px;
  left:0;
}
.ea-testimonial-quote-mark-close{
  right:0;
  bottom:-8px;
}

.ea-testimonial-attribution{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid #e5e7eb;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  width:100%;
}
.ea-testimonial-name{
  color:#111827;
  font-weight:800;
}
.ea-testimonial-business{
  color:#374151;
  font-size:.98rem;
  font-weight:600;
  line-height:1.45;
}
.ea-testimonial-subtitle{
  color:#6b7280;
  font-size:.95rem;
  line-height:1.5;
}

.ea-testimonials-footer{
  margin-top:20px;
  text-align:center;
}
.ea-testimonials-more-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  text-decoration:none;
}
.ea-testimonials-more-link::after{
  content:"→";
}

/* Request form */
.ea-testimonial-request-panel{
  max-width:860px;
  margin:32px auto;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:28px;
  padding:36px 32px;
  box-shadow:0 12px 34px rgba(17,24,39,0.07);
}
.ea-testimonial-request-title{
  margin:0 0 14px;
  text-align:center;
}
.ea-testimonial-request-intro{
  color:#374151;
  font-size:1.03rem;
  line-height:1.65;
  margin:0 0 18px;
}
.ea-testimonial-request-form p{
  margin:0 0 16px;
}
.ea-testimonial-request-form label{
  display:block;
  margin-bottom:6px;
}
.ea-testimonial-request-form input[type="text"],
.ea-testimonial-request-form input[type="email"],
.ea-testimonial-request-form textarea{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:12px;
  padding:12px 14px;
  font-size:16px;
  box-sizing:border-box;
}
.ea-testimonial-request-form input[type="file"]{
  width:100%;
  border:1px dashed #d1d5db;
  border-radius:12px;
  padding:12px 14px;
  font-size:15px;
  background:#f8fafc;
  box-sizing:border-box;
}
.ea-testimonial-request-form textarea{
  resize:vertical;
}
.ea-testimonial-field-help{
  display:block;
  margin-top:6px;
  color:#6b7280;
  font-size:.92rem;
  line-height:1.5;
}
.ea-testimonial-request-consent label{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.ea-testimonial-request-consent input{
  margin-top:3px;
}
.ea-testimonial-request-message{
  border-radius:14px;
  padding:14px 16px;
  margin:0 0 18px;
}
.ea-testimonial-request-message p{
  margin:0;
}
.ea-testimonial-request-message.is-info{
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1e3a8a;
}
.ea-testimonial-request-message.is-error{
  background:#fef2f2;
  border:1px solid #fecaca;
  color:#991b1b;
}
.ea-testimonial-request-message.is-success{
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  color:#065f46;
}

/* Dark mode compatibility for sites using html.ea-darkmode */
html.ea-darkmode .ea-testimonials-panel,
html.ea-darkmode .ea-testimonial-request-panel{
  background:var(--ea-dm-surface, #0f172a);
  border-color:var(--ea-dm-border, #334155);
}
html.ea-darkmode .ea-testimonials-title,
html.ea-darkmode .ea-testimonial-name,
html.ea-darkmode .ea-testimonial-request-title{
  color:var(--ea-dm-text, #e5e7eb);
}
html.ea-darkmode .ea-testimonials-intro,
html.ea-darkmode .ea-testimonial-content,
html.ea-darkmode .ea-testimonial-business,
html.ea-darkmode .ea-testimonial-subtitle,
html.ea-darkmode .ea-testimonial-request-intro,
html.ea-darkmode .ea-testimonial-request-form label,
html.ea-darkmode .ea-testimonial-field-help{
  color:var(--ea-dm-muted, #cbd5e1);
}
html.ea-darkmode .ea-testimonial-card,
html.ea-darkmode .ea-testimonials-arrow{
  background:var(--ea-dm-surface-2, #1e293b);
  border-color:var(--ea-dm-border, #334155);
}
html.ea-darkmode .ea-testimonial-attribution{
  border-top-color:var(--ea-dm-border, #334155);
}
html.ea-darkmode .ea-testimonial-quote-mark{
  color:rgba(255,255,255,0.14);
}
html.ea-darkmode .ea-testimonial-photo{
  border-color:var(--ea-dm-surface, #0f172a);
}
html.ea-darkmode .ea-testimonial-request-form input[type="text"],
html.ea-darkmode .ea-testimonial-request-form input[type="email"],
html.ea-darkmode .ea-testimonial-request-form textarea,
html.ea-darkmode .ea-testimonial-request-form input[type="file"]{
  background:var(--ea-dm-surface-2, #1e293b);
  border-color:var(--ea-dm-border, #334155);
  color:var(--ea-dm-text, #e5e7eb);
}
html.ea-darkmode .ea-testimonials-dot{
  background:rgba(203,213,225,0.45);
}
html.ea-darkmode .ea-testimonials-dot.is-active{
  background:var(--global-palette2, #f36f21);
}
html.ea-darkmode .ea-testimonials-more-link{
  color:var(--ea-dm-text, #e5e7eb);
}

@media (max-width:1024px){
  .ea-testimonials-panel{
    padding:32px 24px;
  }
  .ea-testimonial-request-panel{
    padding:28px 22px;
  }
}
@media (max-width:820px){
  .ea-testimonials-grid.cols-2,
  .ea-testimonials-grid.cols-3{
    grid-template-columns:1fr;
  }
  .ea-testimonial-card{
    padding:24px 18px 20px;
  }
  .ea-testimonial-content.has-quotes{
    padding:28px 12px 20px;
  }
}
@media (max-width:600px){
  .ea-testimonials-panel,
  .ea-testimonial-request-panel{
    padding:24px 16px;
    border-radius:20px;
    margin-bottom:26px;
  }
  .ea-testimonials-nav{
    gap:10px;
  }
  .ea-testimonials-arrow{
    width:36px;
    height:36px;
  }
  .ea-testimonials-arrow-icon{
    width:13px;
    height:13px;
  }
  .ea-testimonial-photo{
    width:84px;
    height:84px;
  }
  .ea-testimonial-quote-mark{
    font-size:60px;
  }
}

@media (max-width: 767px){
  .ea-testimonials-panel{
    padding:28px 18px;
    border-radius:22px;
  }

  .ea-testimonial-card{
    padding:24px 18px 20px;
    border-radius:20px;
  }

  .ea-testimonial-photo{
    width:82px;
    height:82px;
  }

  .ea-testimonial-content.has-quotes{
    padding:24px 10px 20px;
  }

  .ea-testimonial-quote-mark{
    font-size:60px;
  }
}
