.testimonial-box {
  color: #5c584c;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #eed9cd;
  border-radius: 8px;
  padding: 24px;
  text-align: left;
  box-shadow: 0 10px 26px rgba(44, 42, 36, .06);
}

.testimonial-card .stars {
  color: #c1502e;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-card blockquote {
  margin: 0 0 16px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.55;
}

.testimonial-card strong,
.testimonial-card small {
  display: block;
}

.testimonial-card small {
  color: #8a8371;
}

.testimonial-submit {
  margin-top: 22px;
  border: 0;
  cursor: pointer;
}

.testimonial-modal[hidden] {
  display: none;
}

.testimonial-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.testimonial-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(25, 20, 17, .72);
  cursor: pointer;
}

.testimonial-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: #fdf7f0;
  border-radius: 12px;
  padding: 34px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

.testimonial-panel h3 {
  margin: 0 42px 6px 0;
  color: #8a3a1f;
  font-size: 25px;
}

.testimonial-panel > p {
  margin-bottom: 22px;
  color: #5c584c;
}

.testimonial-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid #e3b39e;
  border-radius: 50%;
  background: #fff;
  color: #8a3a1f;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.testimonial-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.testimonial-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.testimonial-form input,
.testimonial-form select,
.testimonial-form textarea {
  width: 100%;
  border: 1px solid #d9baa9;
  border-radius: 6px;
  background: #fff;
  color: #2c2a24;
  padding: 12px 13px;
  font: inherit;
}

.testimonial-form textarea {
  min-height: 130px;
  resize: vertical;
}

.form-full {
  grid-column: 1 / -1;
}

.testimonial-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 600;
}

.testimonial-form .consent input {
  width: auto;
  margin-top: 5px;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  font-weight: 700;
}

.form-status.error {
  color: #a12424;
}

.form-status.success {
  color: #27745a;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 780px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .testimonial-panel {
    padding: 26px 20px;
  }

  .testimonial-form {
    grid-template-columns: 1fr;
  }

  .form-full {
    grid-column: auto;
  }
}
