/* Section background */
.testimonial-wrapper {
  padding: 40px 20px;
}

/* Grid layout */
.testimonial-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* Testimonial card */
.testimonial-box {
  background: #fdecec;
  border: 2px solid #e63946;
  border-radius: 18px;
  padding: 30px;
  height: 320px; /* FIXED HEIGHT */
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: 0.4s ease;
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.15);
}

/* Expanded state */
.testimonial-box.expanded {
  height: auto;
}

/* Quote icon */
.quote-icon {
  font-size: 42px;
  color: #e63946;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Testimonial text (clamped) */
.testimonial-text {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;

  overflow: hidden;
}

/* Expanded text */
.testimonial-box.expanded .testimonial-text {
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

/* ===============================
   READ MORE – LEFT ALIGNED
   =============================== */

.read-more-btn {
  background: none;
  border: none;
  color: #e63946;
  font-weight: 600;
  cursor: pointer;
  padding: 0;

  margin-top: auto;        /* keeps it near bottom */
  margin-bottom: 12px;
  align-self: flex-start;  /* LEFT alignment */
}

/* REMOVE all hover / focus effects */
.read-more-btn:hover,
.read-more-btn:focus,
.read-more-btn:active {
  background: none !important;
  color: #e63946 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* User section */
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Avatar */
.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #e63946;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e63946;
  font-size: 18px;
}

/* Name & role */
.testimonial-user h4 {
  margin: 0;
  font-size: 15px;
  color: #222;
}

.testimonial-user span {
  font-size: 13px;
  color: #777;
}

/* ------------------ form design ------------------ */

.testimonial-form-wrapper {
  background: #fdecec;
  padding: 80px 20px;
}

.testimonial-form-wrapper h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #e63946;
}

.testimonial-form {
  max-width: 500px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  border: 2px solid #e63946;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #222;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e63946;
}

/* Required field asterisk */
label.required::after {
  content: " *";
  color: #e63946;
  font-weight: bold;
}

button {
  width: 100%;
  padding: 12px;
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #c92f3c;
}
