/* Table Reservation Reserver - 前端样式 */

.trr-form {
  max-width: 480px;
  margin: 20px auto;
  padding: 16px 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 15px;
  line-height: 1.6;
}

.trr-form div {
  margin-bottom: 12px;
}

.trr-form label {
  display: inline-block;
  width: 130px;
  font-weight: 600;
  color: #333;
}

.trr-form input,
.trr-form select {
  width: calc(100% - 140px);
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  background-color: #fff;
  transition: border-color 0.2s;
}

.trr-form input:focus,
.trr-form select:focus {
  outline: none;
  border-color: #2271b1;
}

.trr-form button {
  padding: 8px 14px;
  margin-right: 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

.trr-form .button-primary {
  background-color: #2271b1;
  color: #fff;
  border: none;
}

.trr-form .button-primary:hover {
  background-color: #1d5a8b;
}

.trr-form small {
  margin-left: 8px;
  color: #555;
  font-size: 13px;
}

.trr-form #trr-msg {
  text-align: center;
  font-weight: 600;
}

.trr-form input,
.trr-form select,
.trr-form textarea,
.trr-fp-frontend input,
.trr-fp-frontend select,
.trr-fp-frontend textarea {
  color: #212121 !important;
  background-color: #ffffff !important;
  -webkit-text-fill-color: #212121 !important;
  opacity: 1;
}

.trr-form input::placeholder,
.trr-form textarea::placeholder,
.trr-fp-frontend input::placeholder,
.trr-fp-frontend textarea::placeholder {
  color: #6b7280 !important;
  -webkit-text-fill-color: #6b7280 !important;
  opacity: 1;
}

.trr-form select,
.trr-form select option,
.trr-form select optgroup,
.trr-fp-frontend select,
.trr-fp-frontend select option,
.trr-fp-frontend select optgroup {
  color: #212121 !important;
  background-color: #ffffff !important;
  -webkit-text-fill-color: #212121 !important;
}

.trr-form input[type="date"],
.trr-form input[type="time"],
.trr-form input[type="month"],
.trr-form input[type="week"],
.trr-form input[type="datetime-local"],
.trr-fp-frontend input[type="date"],
.trr-fp-frontend input[type="time"],
.trr-fp-frontend input[type="month"],
.trr-fp-frontend input[type="week"],
.trr-fp-frontend input[type="datetime-local"] {
  color: #212121 !important;
  background-color: #ffffff !important;
  -webkit-text-fill-color: #212121 !important;
  color-scheme: light;
}

.trr-form input[type="date"]::-webkit-datetime-edit,
.trr-form input[type="time"]::-webkit-datetime-edit,
.trr-form input[type="month"]::-webkit-datetime-edit,
.trr-form input[type="week"]::-webkit-datetime-edit,
.trr-form input[type="datetime-local"]::-webkit-datetime-edit,
.trr-form input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.trr-form input[type="time"]::-webkit-datetime-edit-fields-wrapper,
.trr-form input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
.trr-fp-frontend input[type="date"]::-webkit-datetime-edit,
.trr-fp-frontend input[type="time"]::-webkit-datetime-edit,
.trr-fp-frontend input[type="month"]::-webkit-datetime-edit,
.trr-fp-frontend input[type="week"]::-webkit-datetime-edit,
.trr-fp-frontend input[type="datetime-local"]::-webkit-datetime-edit,
.trr-fp-frontend input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.trr-fp-frontend input[type="time"]::-webkit-datetime-edit-fields-wrapper,
.trr-fp-frontend input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
  color: #212121 !important;
  -webkit-text-fill-color: #212121 !important;
}

.trr-form input[type="date"]::-webkit-calendar-picker-indicator,
.trr-form input[type="time"]::-webkit-calendar-picker-indicator,
.trr-form input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.trr-fp-frontend input[type="date"]::-webkit-calendar-picker-indicator,
.trr-fp-frontend input[type="time"]::-webkit-calendar-picker-indicator,
.trr-fp-frontend input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
}

.trr-form input:disabled,
.trr-form select:disabled,
.trr-form textarea:disabled,
.trr-fp-frontend input:disabled,
.trr-fp-frontend select:disabled,
.trr-fp-frontend textarea:disabled {
  color: #666666 !important;
  background-color: #eeeeee !important;
  -webkit-text-fill-color: #666666 !important;
  opacity: 1;
}
