/* contact page */
/* General Form Styling */
.contact-form {
  max-width: 100%;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-form label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}
.contact-form input[readonly] {
  background: #f5f5f5;
  color: #555;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form button {
  background: #1976d2;
  color: white;
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 0.5rem;
}
.contact-form button:hover {
  background: #1565c0;
}
/* Responsive Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
th, td {
  padding: .75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
thead th {
  background: #e3f2fd;
  position: sticky;
  top: 0;
  z-index: 1;
}
tbody tr:hover {
  background: #f9f9f9;
}
/* Sortable header styles */
th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 28px !important;
}
th.sortable:hover {
  background: #bbdefb !important;
}
th.sortable::after {
  content: "↕";
  position: absolute;
  right: 8px;
  opacity: 0.4;
  font-size: 0.9em;
}
th.sortable.asc::after {
  content: "↑";
  opacity: 1;
  font-weight: bold;
}
th.sortable.desc::after {
  content: "↓";
  opacity: 1;
  font-weight: bold;
}
/* Message column width on desktop */
@media (min-width: 641px) {
  td.message-cell {
    max-width: 400px;
    word-wrap: break-word;
  }
}
/* Success / Error */
.success {
  color: green;
  font-weight: bold;
}
.error {
  color: red;
  font-weight: bold;
}
/* Back link */
main a {
  color: #1976d2;
  text-decoration: none;
}
main a:hover {
  text-decoration: underline;
}
