/* ---------- FORMULÁRIOS ---------- */

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 600;
  color: #1e293b;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30,64,175,0.15);
  outline: none;
}

button,
input[type="submit"] {
  background: #1e40af;
  color: #fff;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}

button:hover,
input[type="submit"]:hover {
  background: #1e3a8a;
}

.testimonials-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: #f8fafc;
  padding: 1.4rem;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  text-align: left;
}

.testimonial-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.testimonial-card-header strong {
  font-size: 1rem;
  color: #1e3a8a;
}

.testimonial-card-header span {
  font-size: 0.95rem;
  color: #475569;
  white-space: nowrap;
}

.testimonial-card p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
}

.testimonial-form-card {
  margin-top: 2rem;
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 14px;
  border: 1px solid #c7d2fe;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.testimonial-form-card h3 {
  margin-bottom: 1rem;
  color: #1e40af;
}

.pagination-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.pagination-button {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1e293b;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.pagination-button:hover {
  background: #e2e8f0;
}

.pagination-button.active {
  background: #1e40af;
  color: #fff;
  border-color: #1e40af;
}

.form-message {
  margin-top: 0.75rem;
  color: #0f172a;
  font-weight: 600;
}

.form-message.is-hidden {
  display: none;
}

.form-message.error {
  color: #b91c1c;
}

.form-message.success {
  color: #065f46;
}

@media (min-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
