* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
  margin: 0;
  background: #f5f6f8;
  color: #222;
}

.site-header {
  background: #1f6feb;
  color: #fff;
  padding: 1rem 1.5rem;
}

.site-header h1 {
  margin: 0;
  font-size: 1.3rem;
}

.container {
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.container.container-wide {
  max-width: 96%;
}

.banner {
  line-height: 0;
  background: #1a3f6b;
}

.banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}

.form-title {
  margin-top: 1.5rem;
}

.event-link {
  margin: 0.25rem 0 1.5rem;
  color: #444;
}

.event-link a {
  color: #1f6feb;
}

.form-section {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.form-section h3 {
  margin-top: 0;
}

.hint-block {
  color: #444;
  line-height: 1.6;
  font-weight: 400;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form label.field,
.form div.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.field-label {
  font-weight: 600;
}

.hint {
  margin: 0;
  color: #777;
  font-weight: 400;
  font-size: 0.9rem;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="date"],
.form select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 400;
}

.radio-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.checkbox-field .checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
}

.form input[type="radio"],
.form input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
}

.form button {
  padding: 0.6rem;
  border: none;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  align-self: flex-start;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.form button:hover {
  background: #333;
}

.error {
  color: #c0392b;
  font-weight: 600;
}

.flash-messages {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: #fdecea;
  color: #c0392b;
  border-radius: 4px;
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.button-link {
  background: #1f6feb;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}

.button-link:hover {
  background: #185ec7;
}

.button-danger {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.button-danger:hover {
  background: #a53125;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 0.9rem;
}

.table th {
  background: #f0f2f5;
}
