* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  min-height: 100vh;
  background: #f6f4ee;
  color: #2c2c2c;
}
header {
  background: #2e4036;
  color: #fffdf8;
  padding: 22px 20px 18px;
  border-radius: 0 0 24px 24px;
}
header .brand { font-size: 13px; letter-spacing: 3px; opacity: .8; }
header .room-tag { margin-top: 8px; font-size: 16px; font-weight: 600; }
main { max-width: 480px; margin: 0 auto; padding: 24px 20px 40px; }
main h1 { font-size: 19px; margin-bottom: 20px; color: #2e4036; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: #6b6b60; margin-bottom: 8px; }
.field input[type="text"],
.field input[type="number"],
.field input[type="time"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #ddd6c8;
  border-radius: 10px;
  background: #fff;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #46604f; }
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #2c2c2c; }
button[type="submit"] {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fffdf8;
  background: #2e4036;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
button[type="submit"]:disabled { opacity: .6; }
.error, .success, .hint {
  display: none;
  margin-top: 16px;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 8px;
  line-height: 1.6;
}
.error { color: #a4372e; background: #fdf0ee; border: 1px solid #f0d4d0; }
.success { color: #2e4036; background: #eaf1ea; border: 1px solid #cfe0cf; }
.hint { color: #8a6d1f; background: #fbf3e0; border: 1px solid #ecdcb2; }
.error.show, .success.show, .hint.show { display: block; }
.back-link {
  display: block;
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #8a8a80;
  text-decoration: none;
}
table { width: 100%; border-collapse: collapse; background: #fffdf8; border-radius: 12px; overflow: hidden; }
th, td { padding: 12px 10px; font-size: 13px; text-align: left; border-bottom: 1px solid #ece6d8; }
th { color: #8a8a80; font-weight: 500; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; }
.status-pending { background: #fbf3e0; color: #8a6d1f; }
.status-processing { background: #e5eef5; color: #2c5a8a; }
.status-completed { background: #eaf1ea; color: #2e6b3e; }
.status-cancelled { background: #f0f0f0; color: #999; }
.empty { text-align: center; color: #b0b0a4; padding: 40px 0; font-size: 13px; }
.cancel-btn {
  padding: 5px 12px;
  font-size: 12px;
  color: #a4372e;
  background: #fdf0ee;
  border: 1px solid #f0d4d0;
  border-radius: 20px;
  cursor: pointer;
}
.cancel-btn:disabled { opacity: .5; }

/* 提交成功后的模态弹窗：遮罩层 + 居中卡片，必须客人主动点击按钮才关闭，不自动消失 */
.success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 20, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.success-modal-card {
  width: 100%;
  max-width: 340px;
  background: #fffdf8;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.success-modal-title { font-size: 17px; font-weight: 700; color: #2e4036; margin-bottom: 12px; }
.success-modal-message { font-size: 14px; color: #4a4a40; line-height: 1.6; margin-bottom: 22px; }
.success-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.success-modal-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}
.success-modal-btn.primary { background: #2e4036; color: #fffdf8; }
.success-modal-btn.secondary { background: #eaf1ea; color: #2e4036; border: 1px solid #cfe0cf; }
