@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-background-color: #fefefa;
  --primary-text-color: #242f40;
  --secondary-background-color: #242f40;
  --secondary-text-color: #fefefa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins";
}

/* ------------------------------------------------- Form ------------------------------------------------------------ */

.feedback-form {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;

  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);

  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feedback-form label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-text-color);
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;

  border-radius: 8px;
  border: 1px solid #ccc;

  font-size: 0.95rem;
  font-family: inherit;

  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.feedback-form textarea {
  min-height: 120px;
  resize: vertical;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--secondary-background-color);
  box-shadow: 0 0 0 3px rgba(107, 124, 255, 0.15);
}

.feedback-form button {
  margin-top: 1rem;
  padding: 0.8rem;

  border: none;
  border-radius: 10px;

  background-color: var(--secondary-background-color);
  color: white;

  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;

  transition:
    background 0.2s,
    transform 0.3s;
}

.feedback-form button:hover {
  filter: brightness(1.2);
  transform: translateY(-5px);
}

.feedback-form button:active {
  transform: scale(0.98);
}

.form-error {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #c0392b;
}

.form-success {
  font-size: 0.9rem;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
}

@media (max-width: 500px) {
  main {
    padding: 20px;
  }

  .feedback-form {
    margin: 10px;
    padding: 1.8rem 1.5rem;
    gap: 0.5rem;
  }
}
