/* General Styles */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff8f0;
}

header { background-color: #e8734a; color: white; }

.header-inner {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.back-btn {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}
.back-btn:hover, .back-btn:active { background: rgba(255,255,255,0.35); }

.header-inner h1 {
  margin: 0;
  font-size: clamp(1rem, 4vw, 1.5rem);
  flex: 1;
  text-align: center;
}

@media (max-width: 400px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .header-inner h1 { text-align: left; }
}

.registration-form, .attendee-list {
  max-width: 540px;
  width: calc(100% - 24px);
  margin: 16px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-align: left;
}

form { display: flex; flex-direction: column; }
label { font-weight: bold; margin-top: 12px; }

input, select {
  width: 100%;
  margin-bottom: 6px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: white;
}

button {
  margin-top: 10px;
  padding: 14px;
  background-color: #e8734a;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  width: 100%;
  touch-action: manipulation;
}
button:disabled { background-color: #ccc; cursor: not-allowed; }
button:hover:not(:disabled), button:active:not(:disabled) { background-color: #d45f34; }

.error { color: red; font-size: 13px; margin-bottom: 6px; display: none; }

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
}

table { width: 100%; border-collapse: collapse; min-width: 380px; }
th, td { border: 1px solid #e0d4cc; padding: 10px 12px; text-align: left; white-space: nowrap; font-size: 0.9rem; }
th { background-color: #e8734a; color: white; }
tr:nth-child(even) td { background-color: #fff3ee; }
