/* =================================================================== */
/*  RTEH PLUGIN FRONTEND STYLES - v2.3 FINAL MOBILE FIXED
/* =================================================================== */

/* --- Testimonial Slider Styles --- */
.rteh-testimonial-slider {
  max-width: 750px;
  margin: 30px auto;
  position: relative;
  overflow: hidden;
  padding: 15px;
  border-radius: 8px;
}
.rteh-testimonial-slide-item {
  background-color: #ffffff;
  color: #444444;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  text-align: left;
  display: none;
  animation: rtehFadeInStrongView 0.6s ease-out;
  position: relative;
}
@keyframes rtehFadeInStrongView {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- FLEX WRAPPER FOR AVATAR + NAME --- */
.rteh-testimonial-avatar-name-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

/* --- AVATAR (Reduced Size) --- */
.rteh-testimonial-avatar {
  margin-right: 15px;
  flex-shrink: 0;
  width: 60px;  /* Reduced width */
  height: 60px; /* Reduced height */
}
.rteh-testimonial-avatar img,
.rteh-testimonial-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 2px solid #f0f0f0;
}

/* --- AUTHOR NAME (Reduced Font Size) --- */
.rteh-testimonial-author {
  font-size: 1em; /* Reduced from 1.2em */
  font-weight: 700;
  color: #222222;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: break-word; /* Prevents cutting off */
}

.rteh-testimonial-ratings-container {
  margin-bottom: 15px;
  text-align: left;
}
.rteh-testimonial-rating-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.9em;
}
.rteh-testimonial-rating-item .rteh-rating-label {
  display: none;
}

/* --- STAR SELECTORS (Yellow/Gold) --- */
.rteh-testimonial-slider span.dashicons {
  font-family: "dashicons"!important;
  font-size: 19px!important;
  line-height: 1!important;
  vertical-align: middle!important;
  margin: 0 1px!important;
  display: inline-block!important;
  width: auto !important;
  height: auto !important;
}

/* Force Yellow/Gold Color */
.rteh-testimonial-slider span.dashicons-star-filled {
  color: #FFD700 !important; /* Gold/Yellow */
}

/* Empty Stars Grey */
.rteh-testimonial-slider span.dashicons-star-empty {
  color: #dcdcdc !important;
}
/* ---------------------------------- */

.rteh-testimonial-slider blockquote {
  margin: 0;
  padding: 0;
  font-style: normal;
  color: #444;
  line-height: 1.7;
  position: relative;
}
.rteh-testimonial-slider blockquote p {
  font-size: 0.95em;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* --- Form Container Styles --- */
.rteh-form-container {
  max-width: 650px;
  margin: 40px auto;
  padding: 2.5em;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}
.rteh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.rteh-form-group {
  margin-bottom: 22px;
}
.rteh-testimonial-form label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
}
.rteh-testimonial-form label .required {
  color: #d9534f;
  font-weight: normal;
  margin-left: 2px;
}
.rteh-testimonial-form input[type="text"],
.rteh-testimonial-form input[type="email"],
.rteh-testimonial-form textarea,
.rteh-testimonial-form select {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  color: #333;
  background-color: #f9f9f9;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}
.rteh-testimonial-form input:focus,
.rteh-testimonial-form textarea:focus,
.rteh-testimonial-form select:focus {
  border-color: #0073aa;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
  outline: none;
}
.rteh-testimonial-form textarea {
  resize: vertical;
  min-height: 140px;
}
.rteh-testimonial-form input[type="submit"] {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: #0073aa;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rteh-testimonial-form input[type="submit"]:hover {
  background-color: #005a87;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

/* --- Label + Select inline --- */
.rteh-form-group.inline-label-select {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rteh-form-group.inline-label-select label {
  margin-bottom: 0;
  white-space: nowrap;
}
.rteh-form-group.inline-label-select select {
  flex: 1;
  min-width: 150px;
}

/* --- Success & Error Messages --- */
.rteh-popup-message {
  position: relative;
  padding: 15px 30px 15px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.rteh-testimonial-success.rteh-popup-message {
  color: #3c763d;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
}
.rteh-testimonial-success.rteh-popup-message p {
  font-size: 1.1em;
  line-height: 1.4;
  color: #3c763d;
  margin: 0;
}
.rteh-testimonial-error {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 3px;
  border: 1px solid #ebccd1;
}
.rteh-testimonial-error ul {
  margin: 0;
  padding-left: 20px;
  list-style-position: inside;
}

/* --- Form Submission Spinner --- */
.rteh-form-submit-wrapper {
  position: relative;
  margin-top: 10px;
}
.rteh-spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
}
.rteh-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border-left-color: #0073aa;
  animation: rteh-spin 1s linear infinite;
}
@keyframes rteh-spin {
  to { transform: rotate(360deg); }
}

/* --- Mobile Responsive Fixes --- */
@media (max-width: 600px) {
  .rteh-form-container {
    width: auto !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .rteh-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .rteh-testimonial-form input[type="submit"] {
    font-size: 15px;
    padding: 12px 10px;
  }
}