/* File: /public/css/testimonial-style.css */

/* ==== Frontend Styles ==== */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');*/

body, .ctp-testimonial {
  font-family: 'Segoe UI', 'Helvetica Neue', 'Arial', sans-serif;
}

body {
  font-family: 'Poppins', sans-serif;
}

.ctp-text {
  position: relative;
  font-style: italic;
  color: #333;
  padding: 1.5rem 2rem;
  line-height: 1.6;
}

.ctp-text::before,
.ctp-text::after {
  font-family: serif;
  font-size: 3rem;
  color: #ccc;
  position: absolute;
}

.ctp-text::before {
  content: "❝";
  top: -0.5rem;
  left: -1.2rem;
  margin-left: 14px;
}

.ctp-text::after {
  content: "❞";
}
p.ctp-meta {
    text-align: right;
    font-size: 0.8em;
    font-style: italic;
    font-weight: 500;
}
#ctp-testimonial-form label.required::after {
  content: ' *';
  color: red;
  font-weight: bold;
}
span.field-required::before{
  content: ' *';
  color: red;
  font-weight: bold;
  font-size: 16px;
}
.video-testimonial-wrapper {
    text-align: center;
	padding: 19px 0;
    padding-top: 15px;
}
.video-testimonial-wrapper div {
    color: #727680;
}
.video-testimonial-wrapper h{
	padding-bottom: 10px
}
.ctp-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid #fff;
  border-top: 2px solid #3182ce;
  border-radius: 50%;
  animation: ctp-spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes ctp-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.ctp-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
    font-style: italic;
    font-weight: normal;
	padding-left: 15px;
}

/*******/
.ctp-testimonial-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding: 1rem;
}

.ctp-photo {
    height: 100%;
    align-items: center;
    display: flex;
}
.ctp-photo img {
  max-height: 100%;
  max-width: 100%;
}

.ctp-testimonial {
  background-color: #f7fcff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 8px 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: 0.3s;
}

.ctp-testimonial:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ctp-photo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
  padding: 2px;
}

.ctp-content {
  flex: 1;
}

.ctp-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #333;
}

.ctp-text {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.ctp-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.5rem;
}
/*
.ctp-rating {
  font-size: 1.2rem;
  color: #f5b301;
}
*/
.ctp-video a {
  color: #0073aa;
  text-decoration: none;
}

.ctp-video a:hover {
  text-decoration: underline;
}

.ctp-pagination {
  text-align: center;
  margin-top: 2rem;
}

.ctp-pagination a {
  padding: 0.4rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin: 0 0.25rem;
  text-decoration: none;
  color: #0073aa;
  font-weight: bold;
}

.ctp-pagination a.current {
  background-color: #0073aa;
  color: #fff;
  pointer-events: none;
  border-color: #0073aa;
}
/* File: /assets/css/testimonial-style.css */

.ctp-success-message {
  display: none;
  background-color: #e6ffed;
  border: 1px solid #38a169;
  color: #22543d;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.2);
  transition: all 0.3s ease;
}
/* File: /assets/css/testimonial-style.css */

#ctp-testimonial-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.03);
  max-width: 1040px;
  margin: 2rem auto;
}

#ctp-testimonial-form label {
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
	margin: 10px 0 3px 3px;
	margin: 10px 0 3px 3px;
}
#ctp-testimonial-form .ctp-element {
    padding: 10px 0 2px 0;
}

#ctp-testimonial-form div.ctp-consent label{
	display: inline-block;
    margin-right: 10px;
}
#ctp-testimonial-form select{
  display: block;	
  min-width: 320px;
}
#ctp-testimonial-form input[type="text"],
#ctp-testimonial-form input[type="file"],
#ctp-testimonial-form input[type="email"],
#ctp-testimonial-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #cbd5e0;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

#ctp-testimonial-form textarea {
  resize: vertical;
}

#ctp-rating-stars {
  font-size: 1.6rem;
  cursor: pointer;
  user-select: none;
}

#ctp-testimonial-form button {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0.6rem 1.5rem;
  background-color: #3182ce;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

#ctp-testimonial-form button:hover {
  background-color: #2b6cb0;
}
#ctp-rating-stars {
  display: inline-flex;
  direction: ltr;
}

.ctp-star {
  font-size: 1.8rem;
  cursor: pointer;
  display: inline-block;
  margin: 0;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

/* Default state */
.ctp-star::before {
  content: '☆';
}

/* Hover effect — fill stars to the left of the hovered one */
.ctp-star.hovered::before,
.ctp-star.hovered ~ .ctp-star::before {
  content: '★';
  color: #f5b301;
}

/* Clicked (selected) stars */
.ctp-star.selected::before,
.ctp-star.selected ~ .ctp-star::before {
  content: '★';
  color: #f5b301;
}

/* Reset stars after selected/hovered */
.ctp-star:not(.selected):not(.hovered)::before {
  content: '☆';
  color: #f6ad55;
}
.ctp-message {
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
}
.ctp-success {
  background-color: #e6ffed;
  color: #2f8132;
  border: 1px solid #2f8132;
}
.ctp-error {
  background-color: #ffecec;
  color: #cc0000;
  border: 1px solid #cc0000;
}
.ctp-rating {
  display: inline-block;
  position: relative;
  font-size: 1.4rem;
  color: #ddd; /* base color for empty stars */
  letter-spacing: 2px;
  white-space: nowrap;
}

.ctp-rating::before {
  content: '★★★★★';
  color: #ddd;
}

.ctp-rating::after {
  content: '★★★★★';
  color: #f5b301;
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--stars) * 20%);
  overflow: hidden;
  pointer-events: none;
}
/*---- for larger screens - placed after ----*/
@media (min-width: 630px){
   p.ctp-meta {
	   padding: 0 140px 10px 0;
	   font-size: 1.1em;
   }
   	.ctp-photo img{
		width: 80px;
		height: 80px;
	}
	.ctp-text{
		font-size: 1.1rem;
	}
}

